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
--- /dev/null
+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;