/usr/share/perl5/Class/DBI/Lite/RootMeta.pm is in libclass-dbi-lite-perl 1.026-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | package
Class::DBI::Lite::RootMeta;
use strict;
use warnings 'all';
our %instances = ( );
#==============================================================================
sub new
{
my ($s, $dsn) = @_;
my $key = join ':', @$dsn;
if( my $inst = $instances{$key} )
{
return $inst;
}
else
{
return $instances{$key} = bless {
dsn => $dsn, # Global
schema => $dsn->[0], # Global
}, $s;
}# end if()
}# end new()
sub dsn { my $s = shift; @_ ? $s->{dsn} = shift : $s->{dsn} }
sub schema { my $s = shift; @_ ? $s->{schema} = shift : $s->{schema} }
1;# return true:
|