1 package DBIx::Class::ResultSource::View;
6 use DBIx::Class::ResultSet;
8 use base qw/DBIx::Class/;
9 __PACKAGE__->load_components(qw/ResultSource/);
10 __PACKAGE__->mk_group_accessors('simple' => ' is_virtual');
14 DBIx::Class::ResultSource::Table - Table object
20 Table object that inherits from L<DBIx::Class::ResultSource>
26 Attribute to declare a view as virtual.
30 Returns the FROM entry for the table (i.e. the view name)
31 or the definition if this is a virtual view.
37 return \"(${\$self->view_definition})" if $self->is_virtual;
45 Matt S. Trout <mst@shadowcatsystems.co.uk>
47 With Contributions from:
49 Guillermo Roditi E<lt>groditi@cpan.orgE<gt>
53 You may distribute this code under the same terms as Perl itself.