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/ ],
121 $schema->populate('Track', [
122 [ qw/trackid cd position title/ ],
123 [ 4, 2, 1, "Stung with Success"],
124 [ 5, 2, 2, "Stripy"],
125 [ 6, 2, 3, "Sticky Honey"],
126 [ 7, 3, 1, "Yowlin"],
127 [ 8, 3, 2, "Howlin"],
128 [ 9, 3, 3, "Fowlin"],
129 [ 10, 4, 1, "Boring Name"],
130 [ 11, 4, 2, "Boring Song"],
131 [ 12, 4, 3, "No More Ideas"],
133 [ 14, 5, 2, "Under The Weather"],
134 [ 15, 5, 3, "Suicidal"],
135 [ 16, 1, 1, "The Bees Knees"],
136 [ 17, 1, 2, "Apiary"],
137 [ 18, 1, 3, "Beehind You"],