|
NAMEDBIx::Inspector - Get information from $dbh 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";
}
}
DESCRIPTIONDBIx::Inspector is a inspector for $dbh. This is under development. Any API will change without notice. METHODS
AUTHORTokuhiro Matsuno <tokuhirom AAJKLFJEF@ GMAIL COM> SEE ALSODBI LICENSECopyright (C) Tokuhiro Matsuno This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|