just a tiny grammer fix to POD
[dbsrgits/DBIx-Class.git] / t / testlib / Film.pm
CommitLineData
c6d74d3e 1package # hide from PAUSE
2 Film;
ea2e61bf 3
4BEGIN { unshift @INC, './t/testlib'; }
5use base 'DBIx::Class::Test::SQLite';
6use strict;
7
8__PACKAGE__->set_table('Movies');
9__PACKAGE__->columns('Primary', 'Title');
10__PACKAGE__->columns('Essential', qw( Title ));
11__PACKAGE__->columns('Directors', qw( Director CoDirector ));
12__PACKAGE__->columns('Other', qw( Rating NumExplodingSheep HasVomit ));
13
14sub create_sql {
15 return qq{
16 title VARCHAR(255),
17 director VARCHAR(80),
18 codirector VARCHAR(80),
19 rating CHAR(5),
20 numexplodingsheep INTEGER,
21 hasvomit CHAR(1)
22 }
23}
24
25sub create_test_film {
26 return shift->create({
27 Title => 'Bad Taste',
28 Director => 'Peter Jackson',
29 Rating => 'R',
30 NumExplodingSheep => 1,
31 });
32}
33
34package DeletingFilm;
35
36use base 'Film';
37sub DESTROY { shift->delete }
38
391;
40