[Catalyst] Switching between different databases during a session
Peter Karman
peter at peknet.com
Fri Nov 16 01:38:00 GMT 2007
Andrew Peebles wrote on 11/15/07 7:16 PM:
> I've been searching and experimenting and have not found a solution ...
>
> I have multiple instances of a database (each in a separate sqlite db
> file), same schema, different data. Each represents a snapshot of
> something at a particular time. During a session, user wants switch
> among these databases. I am trying to add a method to my Model
> (Catalyst::Model::DBIC::Schema) that takes a new connection string, and
> switches to that database ... all things otherwise remaining the same.
> Seems relatively simple, but I just ain't getting it. Lots of hints on
> the list, but nothing I can find that's helping.
>
why not have a different Model class for each db?
--
Peter Karman . http://peknet.com/ . peter at peknet.com
More information about the Catalyst
mailing list