1 package # hide from PAUSE
2 DBICTest::Schema::Year1999CDs;
5 use base qw/DBICTest::BaseResult/;
6 use DBIx::Class::ResultSource::View;
8 __PACKAGE__->table_class('DBIx::Class::ResultSource::View');
10 __PACKAGE__->table('year1999cds');
11 __PACKAGE__->result_source_instance->is_virtual(1);
12 __PACKAGE__->result_source_instance->view_definition(
13 "SELECT cdid, artist, title FROM cd WHERE year ='1999'"
15 __PACKAGE__->add_columns(
17 data_type => 'integer',
18 is_auto_increment => 1,
21 data_type => 'integer',
24 data_type => 'varchar',
29 __PACKAGE__->set_primary_key('cdid');
30 __PACKAGE__->add_unique_constraint([ qw/artist title/ ]);