DBIx::DataModel::ConnectedSource - metasource and schema paired together
A connected source is a pair of a $meta_source and and a $schema. The meta_source holds information about the data structure, and the schema holds a connection to the database.
$meta_source
$schema
Connected sources are used mainly in multi-schema mode, for implementing calls such as
$schema->table($table_name)->select(...); $schema->join(qw/Table path1 path2 .../)->select(...);
Methods are documented in "CONNECTED SOURCES" in DBIx::DataModel::Doc::Reference Most methods are just delegated calls to $meta_source->class, passing along a reference to $schema through a fake object
$meta_source->class
my $connected_source = DBIx::DataModel::ConnectedSource->new($meta_source, $schema);
To install DBIx::DataModel, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::DataModel
CPAN shell
perl -MCPAN -e shell install DBIx::DataModel
For more information on module installation, please visit the detailed CPAN module installation guide.