GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  DBIX::INSPECTOR (3)

.ds Aq ’

NAME

DBIx::Inspector - Get information from $dbh

CONTENTS

SYNOPSIS



    use DBIx::Inspector;

    my $dbh = DBI->connect(...) or die;
    my $inspector = DBIx::Inspector->new(dbh => $dbh);
    my @tables = $inspector->tables;
    for my $table (@tables) {
        print "  pk:\n";
        for my $pk ($table->primary_key) {
            print "    ", $pk->name, "\n";
        }
        print "  columns:\n";
        for my $column ($table->columns) {
            print "    ", $column->name, "\n";
        }
    }



DESCRIPTION

DBIx::Inspector is a inspector for $dbh.

This is under development. <B>Any API will change without notice.B>

METHODS

my $inspector = DBIx::Inspector->new(dbh => $dbh); Create new instance of DBIx::Inspector.
my @tables = $inspector->tables(); Retrieve table objects from $dbh. Every elements in @tables is instance of DBIx::Inspector::Table.
my $table = $inspector->table($table_name); Retrieve table object from $dbh. Return value is instance of DBIx::Inspector::Table.
my @views = $inspector->views(); Retrieve view objects from $dbh. Every elements in @views is instance of DBIx::Inspector::Table.
my $view = $inspector->view($view_name); Retrieve view object from $dbh. Return value is instance of DBIx::Inspector::Table.

AUTHOR

Tokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM>

SEE ALSO

DBI

LICENSE

Copyright (C) Tokuhiro Matsuno

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 DBIX::INSPECTOR (3) 2016-03-17

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.