1Class::DBI::Loader::Pg(U3s)er Contributed Perl DocumentatCiloanss::DBI::Loader::Pg(3)
2
3
4
6 Class::DBI::Loader::Pg - Class::DBI::Loader Postgres Implementation.
7
9 use Class::DBI::Loader;
10
11 # $loader is a Class::DBI::Loader::Pg
12 my $loader = Class::DBI::Loader->new(
13 dsn => "dbi:Pg:dbname=dbname",
14 user => "postgres",
15 password => "",
16 namespace => "Data",
17 );
18 my $class = $loader->find_class('film'); # $class => Data::Film
19 my $obj = $class->retrieve(1);
20
22 See Class::DBI::Loader, Class::DBI::Loader::Generic.
23
25 Class::DBI::Loader, Class::DBI::Loader::Generic
26
27
28
29perl v5.12.0 2006-03-04 Class::DBI::Loader::Pg(3)