Catalyst::TraitFor::Model::DBIC::ConfigPerSite - Extend Catalyst DBIC Model to work with multiple DB connections
package MyApp::Model::DBIC; use Moose; extends 'Catalyst::Model::DBIC::Schema'; with qw(Catalyst::TraitFor::Model::DBIC::ConfigPerSite);
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.
Catalyst::Component::InstancePerContext
Moose::Role
Aaron Trevena, <aaron@aarontrevena.co.uk>
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.
To install Catalyst::TraitFor::Component::ConfigPerSite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::TraitFor::Component::ConfigPerSite
CPAN shell
perl -MCPAN -e shell install Catalyst::TraitFor::Component::ConfigPerSite
For more information on module installation, please visit the detailed CPAN module installation guide.