debian man page for catalyst::traitfor::model::dbic::schema::perrequestschema

Query: catalyst::traitfor::model::dbic::schema::perrequestschema

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchemUsermContributed Perl DocumeCatalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema(3pm)

NAME
Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema - Clone the schema with attributes for each requests
SYNOPSIS
__PACKAGE__->config({ traits => ['PerRequestSchema'], }); sub per_request_schema_attributes { my ($self, $c) = @_; return (restricting_object => $c->user->obj); } ### OR ### sub per_request_schema { my ($self, $c) = @_; return $self->schema->schema_method($c->user->obj) }
DESCRIPTION
Clones the schema for each new request with the attributes retrieved from your "per_request_schema_attributes" method, which you must implement. This method is passed the context. Alternatively, you could also override the "per_request_schema" method if you need access to the schema clone and/or need to separate out the Model/Schema methods. (See examples above and the defaults in the code.)
SEE ALSO
Catalyst::Model::DBIC::Schema, DBIx::Class::Schema
AUTHOR
See "AUTHOR" in Catalyst::Model::DBIC::Schema and "CONTRIBUTORS" in Catalyst::Model::DBIC::Schema.
COPYRIGHT
See "COPYRIGHT" in Catalyst::Model::DBIC::Schema.
LICENSE
This program is free software, you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-06-12 Catalyst::TraitFor::Model::DBIC::Schema::PerRequestSchema(3pm)
Related Man Pages
dbix::class::storage::dbi::access(3) - mojave
dbix::class::storage::dbi::access5.18(3) - mojave
catalyst::model::cdbi(3pm) - debian
catalyst::traitfor::model::dbic::schema::perrequestschema(3pm) - debian
dbix::class::storage::dbi::access(3pm) - debian
Similar Topics in the Unix Linux Community
DEC 3000 Model 800/800S AXP (RAM Required)
AgileWiki 12.4.0 (Element Model branch)
Aix 5.3 or Linux?
Creating a table
Redhat Clone