Aaron James Trevena > Catalyst-TraitFor-Component-ConfigPerSite-0.12 > Catalyst::TraitFor::Model::DBIC::ConfigPerSite

Download:
Catalyst-TraitFor-Component-ConfigPerSite-0.12.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  2
View/Report Bugs
Source  

NAME ^

Catalyst::TraitFor::Model::DBIC::ConfigPerSite - Extend Catalyst DBIC Model to work with multiple DB connections

SYNOPSIS ^

    package MyApp::Model::DBIC;

    use Moose;

    extends 'Catalyst::Model::DBIC::Schema';

    with qw(Catalyst::TraitFor::Model::DBIC::ConfigPerSite);

DESCRIPTION ^

This Role or Trait allows you to share an application between sites, clients, etc with different configuration for databases. It extends Catalyst DBIC Model to work with multiple DB connections, one per site or configuration.

METHODS ^

build_per_context_instance

SEE ALSO ^

Catalyst::Component::InstancePerContext

Moose::Role

AUTHOR ^

Aaron Trevena, <aaron@aarontrevena.co.uk>

COPYRIGHT AND LICENSE ^

Copyright (C) 2010 by Aaron Trevena

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.

syntax highlighting: