Eliminate remaining uses of $self->dbh_do($self->can(...), ...) now that dbh_do can...
[dbsrgits/DBIx-Class.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