1 package # hide from PAUSE
5 use base 'DBIx::Class::CDBICompat';
7 my $db = $ENV{DBD_PG_DBNAME} || 'template1';
8 my $user = $ENV{DBD_PG_USER} || 'postgres';
9 my $pass = $ENV{DBD_PG_PASSWD} || '';
11 __PACKAGE__->connection("dbi:Pg:dbname=$db", $user, $pass,
16 my ($table, $sequence) = ($class->table, $class->sequence || "");
17 my $schema = $class->schema;
18 $class->db_Main->do("CREATE TEMPORARY SEQUENCE $sequence") if $sequence;
19 $class->db_Main->do("CREATE TEMPORARY TABLE $table ( $schema )");