Trailing WS crusade - got to save them bits
[dbsrgits/DBIx-Class.git] / t / cdbi / testlib / Actor.pm
CommitLineData
8273e845 1package # hide from PAUSE
c6d74d3e 2 Actor;
ea2e61bf 3
ea2e61bf 4use strict;
5use warnings;
6
97d61088 7use base 'DBIC::Test::SQLite';
ea2e61bf 8
9__PACKAGE__->set_table('Actor');
10
11__PACKAGE__->columns(Primary => 'id');
12__PACKAGE__->columns(All => qw/ Name Film Salary /);
13__PACKAGE__->columns(TEMP => qw/ nonpersistent /);
14__PACKAGE__->add_constructor(salary_between => 'salary >= ? AND salary <= ?');
15
05ccf064 16sub mutator_name_for { "set_$_[1]" }
ea2e61bf 17
18sub create_sql {
6a3bf251 19 return qq{
20 id INTEGER PRIMARY KEY,
21 name CHAR(40),
8273e845 22 film VARCHAR(255),
6a3bf251 23 salary INT
24 }
ea2e61bf 25}
26
271;
28