Alexander Hartmaier > DBIx-Class-0.08206 >
DBIx::Class::ResultSource    Annotate this POD    New  12 Open 
18 Stalled  11 View/Report Bugs Source   Latest Release: DBIx-
Class-0.082810   DBIx::Class::ResultSource - Result source
object     # Create a table based result source, in a result
class.    package MyApp::Schema::Result::Artist;
__PACKAGE__->add_columns(qw/ artistid name /);
__PACKAGE__->has_many(cds => 'MyApp::Schema::Result::CD');     #
Create a query (view) based result source, in a result class
package MyApp::Schema::Result::Year2000CDs;         "SELECT
cdid, artist, title FROM cd WHERE year ='2000'"   A ResultSource
is an object that represents a source of data for querying.
This class is a base class for various specialised types of
result sources, for example DBIx::Class::ResultSource::Table.
Table is the default result source type, so one is created for
you when defining a result class as described in the synopsis
above.  More specifically, the DBIx::Class::Core base class
pulls in the