1 package # hide from PAUSE
6 use base qw/DBIx::Class::Schema/;
9 my $db_file = "t/var/Plain.db";
11 unlink($db_file) if -e $db_file;
12 unlink($db_file . "-journal") if -e $db_file . "-journal";
13 mkdir("t/var") unless -d "t/var";
15 my $dsn = "dbi:SQLite:${db_file}";
17 __PACKAGE__->load_classes("Test");
18 my $schema = __PACKAGE__->compose_connection(__PACKAGE__, $dsn);
20 my $dbh = DBI->connect($dsn);
25 name VARCHAR(32) NOT NULL
28 INSERT INTO test (id, name) VALUES (1, 'DBIC::Plain is broken!');
32 $dbh->do($_) for split(/\n\n/, $sql);