Update to add myself to contributors and to hide Modules from the PAUSE Indexer.
[dbsrgits/DBIx-Class.git] / t / testlib / Actor.pm
CommitLineData
ea2e61bf 1package Actor;
2
3BEGIN { unshift @INC, './t/testlib'; }
4
5use strict;
6use warnings;
7
8use base 'DBIx::Class::Test::SQLite';
9
10__PACKAGE__->set_table('Actor');
11
12__PACKAGE__->columns(Primary => 'id');
13__PACKAGE__->columns(All => qw/ Name Film Salary /);
14__PACKAGE__->columns(TEMP => qw/ nonpersistent /);
15__PACKAGE__->add_constructor(salary_between => 'salary >= ? AND salary <= ?');
16
17sub mutator_name { "set_$_[1]" }
18
19sub create_sql {
20 return qq{
21 id INTEGER PRIMARY KEY,
22 name CHAR(40),
23 film VARCHAR(255),
24 salary INT
25 }
26}
27
281;
29