Name : perl-Catalyst-Model-DBIC-Schema
| |
Version : 0.65
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.1
| Date : 2017-06-21 14:08:25
|
Group : Development/Libraries/Perl
| Source RPM : perl-Catalyst-Model-DBIC-Schema-0.65-1.1.src.rpm
|
Size : 0.10 MB
| |
Packager : (none)
| |
Summary : DBIx::Class::Schema Model Class
|
Description :
This is a Catalyst Model for the DBIx::Class::Schema manpage-based Models. See the documentation for the Catalyst::Helper::Model::DBIC::Schema manpage for information on generating these Models via Helper scripts.
When your Catalyst app starts up, a thin Model layer is created as an interface to your DBIC Schema. It should be clearly noted that the model object returned by \'$c->model(\'FilmDB\')\' is NOT itself a DBIC schema or resultset object, but merely a wrapper proving /METHODS to access the underlying schema.
In addition to this model class, a shortcut class is generated for each source in the schema, allowing easy and direct access to a resultset of the corresponding type. These generated classes are even thinner than the model class, providing no public methods but simply hooking into Catalyst\'s model() accessor via the Catalyst::Component/ACCEPT_CONTEXT mechanism. The complete contents of each generated class is roughly equivalent to the following:
package MyApp::Model::FilmDB::Actor sub ACCEPT_CONTEXT { my ($self, $c) = AATT_; $c->model(\'FilmDB\')->resultset(\'Actor\'); }
In short, there are three techniques available for obtaining a DBIC resultset object:
my $rs = $c->model(\'FilmDB\')->schema->resultset(\'Actor\');
my $rs = $c->model(\'FilmDB\')->resultset(\'Actor\');
my $rs = $c->model(\'FilmDB::Actor\');
In order to add methods to a DBIC resultset, you cannot simply add them to the source (row, table) definition class; you must define a separate custom resultset class. This is just a matter of making a \'lib/MyApp/Schema/ResultSet/Actor.pm\' class that inherits from the DBIx::Class::ResultSet manpage, if you are using the DBIx::Class::Schema/load_namespaces manpage, the default for helper script generated schemas.
See the DBIx::Class::Manual::Cookbook/\"Predefined searches\" manpage for information on definining your own the DBIx::Class::ResultSet manpage classes for use with the DBIx::Class::Schema/load_classes manpage, the old default.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/SLE_12_SP3/noarch |
Hmm ... It's impossible ;-) This RPM doesn't exist on any FTP server
Provides :
perl(Catalyst::Helper::Model::DBIC::Schema)
perl(Catalyst::Model::DBIC::Schema)
perl(Catalyst::TraitFor::Model::DBIC::Schema::Caching)
perl(Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema)
perl(Catalyst::TraitFor::Model::DBIC::Schema::Replicated)
perl(Catalyst::TraitFor::Model::DBIC::Schema::SchemaProxy)
perl-Catalyst-Model-DBIC-Schema
Requires :