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