5 my $schema = DBICTest->initialise;
7 $schema->storage->on_connect_do([ "PRAGMA synchronous = OFF" ]);
9 my $dbh = $schema->storage->dbh;
11 if ($ENV{"DBICTEST_SQLT_DEPLOY"}) {
14 open IN, "t/lib/sqlite.sql";
18 { local $/ = undef; $sql = <IN>; }
22 $dbh->do($_) for split(/\n\n/, $sql);
25 $schema->storage->dbh->do("PRAGMA synchronous = OFF");
27 $schema->populate('Artist', [
28 [ qw/artistid name/ ],
29 [ 1, 'Caterwauler McCrae' ],
30 [ 2, 'Random Boy Band' ],
34 $schema->populate('CD', [
35 [ qw/cdid artist title year/ ],
36 [ 1, 1, "Spoonful of bees", 1999 ],
37 [ 2, 1, "Forkful of bees", 2001 ],
38 [ 3, 1, "Caterwaulin' Blues", 1997 ],
39 [ 4, 2, "Generic Manufactured Singles", 2001 ],
40 [ 5, 3, "Come Be Depressed With Us", 1998 ],
43 $schema->populate('LinerNotes', [
44 [ qw/liner_id notes/ ],
45 [ 2, "Buy Whiskey!" ],
47 [ 5, "Kill Yourself!" ],
50 $schema->populate('Tag', [
63 $schema->populate('TwoKeys', [
70 $schema->populate('FourKeys', [
71 [ qw/foo bar hello goodbye/ ],
76 $schema->populate('OneKey', [
83 $schema->populate('SelfRef', [
89 $schema->populate('SelfRefAlias', [
90 [ qw/self_ref alias/ ],
94 $schema->populate('ArtistUndirectedMap', [
99 $schema->populate('Producer', [
100 [ qw/producerid name/ ],
101 [ 1, 'Matt S Trout' ],
102 [ 2, 'Bob The Builder' ],
103 [ 3, 'Fred The Phenotype' ],
106 $schema->populate('CD_to_Producer', [
113 $schema->populate('TreeLike', [
114 [ qw/id parent name/ ],