From: Guillermo Roditi Date: Mon, 25 Aug 2008 17:52:56 +0000 (+0000) Subject: perl -Ilib -It/lib -MDBICTest::Schema -e'1' X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a648ec7837aa9e44c2f187699b80e4007c58abbd;p=dbsrgits%2FDBIx-Class-Historic.git perl -Ilib -It/lib -MDBICTest::Schema -e'1' --- diff --git a/lib/DBIx/Class/ResultSource/View.pm b/lib/DBIx/Class/ResultSource/View.pm index 7d6ec12..61c22b9 100644 --- a/lib/DBIx/Class/ResultSource/View.pm +++ b/lib/DBIx/Class/ResultSource/View.pm @@ -8,12 +8,6 @@ use DBIx::Class::ResultSet; use base qw/DBIx::Class/; __PACKAGE__->load_components(qw/ResultSource/); - - _columns _primaries _unique_constraints name resultset_attributes - schema from _relationships column_info_from_storage source_info - source_name/); - - =head1 NAME DBIx::Class::ResultSource::Table - Table object diff --git a/t/lib/DBICTest/Schema.pm b/t/lib/DBICTest/Schema.pm index 22eddff..857c18c 100644 --- a/t/lib/DBICTest/Schema.pm +++ b/t/lib/DBICTest/Schema.pm @@ -16,6 +16,7 @@ __PACKAGE__->load_classes(qw/ #dummy Track Tag + Year2000CDs /, { 'DBICTest::Schema' => [qw/ LinerNotes diff --git a/t/lib/DBICTest/Schema/Year2000CDs.pm b/t/lib/DBICTest/Schema/Year2000CDs.pm new file mode 100644 index 0000000..863263b --- /dev/null +++ b/t/lib/DBICTest/Schema/Year2000CDs.pm @@ -0,0 +1,25 @@ +package # hide from PAUSE + DBICTest::Schema::Year2000CDs; + +use base 'DBIx::Class::Core::View'; + +__PACKAGE__->view('cd'); +__PACKAGE__->view_definition("SELECT cdid, artist, title FROM cd WHERE year ='2000'"); +__PACKAGE__->add_columns( + 'cdid' => { + data_type => 'integer', + is_auto_increment => 1, + }, + 'artist' => { + data_type => 'integer', + }, + 'title' => { + data_type => 'varchar', + size => 100, + }, + +); +__PACKAGE__->set_primary_key('cdid'); +__PACKAGE__->add_unique_constraint([ qw/artist title/ ]); + +1;