SchemaView-Plus
view release on metacpan or search on metacpan
lib/DBIx/SystemCatalog.pm view on Meta::CPAN
and you can't disconnect that instance while you use this instance of
DBIx::SystemCatalog.
$catalog = new DBIx::SystemCatalog $dbh
=cut
sub new {
my $class = shift;
my $dbi = shift;
my $obj = bless { dbi => $dbi, class => $class, schema => '' },$class;
$obj->{Driver} = $obj->{dbi}->{Driver}->{Name};
# Only base class can dispatch to more specific class
if ($class eq 'DBIx::SystemCatalog') {
my $driver_name = 'DBIx::SystemCatalog::'.$obj->{Driver};
eval "package DBIx::SystemCatalog::_safe; require $driver_name";
unless ($@) { # found specific driver
$driver_name->import();
return $driver_name->new($dbi,@_);
}
( run in 0.343 second using v1.01-cache-2.11-cpan-65fba6d93b7 )