[Catalyst] Catalyst::Plugin::Authentication::Store::DBIC and config in auto

Matt S Trout dbix-class at trout.me.uk
Thu Mar 23 17:09:11 CET 2006


fayland wrote:
> we use something like livejournal. thus we need the $c->req->address to 
> select the database, I think.
> can I load the plugin after ->setup?

I think you'd be better off producing a DBIx;:Class::Storage::DBI subclass 
that selects which database to talk to based on context then. That or use
ACCEPT_CONTEXT in our M::DBIC::Schema subclass to pick from a set of connections.

-- 
      Matt S Trout       Offering custom development, consultancy and support
   Technical Director    contracts for Catalyst, DBIx::Class and BAST. Contact
Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more information

+ Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list