1 package # hide from PAUSE
7 use DBICTest::Schema::Relationships;
10 my $db_file = "t/var/DBIxClass.db";
12 unlink($db_file) if -e $db_file;
13 unlink($db_file . "-journal") if -e $db_file . "-journal";
14 mkdir("t/var") unless -d "t/var";
16 my $dsn = $ENV{"DBICTEST_DSN"} || "dbi:SQLite:${db_file}";
17 my $dbuser = $ENV{"DBICTEST_DBUSER"} || '';
18 my $dbpass = $ENV{"DBICTEST_DBPASS"} || '';
20 my $schema = DBICTest::Schema->compose_connection('DBICTest' => $dsn, $dbuser, $dbpass);
22 $schema->auto_populate();