miguelele has asked for the wisdom of the Perl Monks concerning the following question:
My wise monks:
I have many databases for different clients in Catalyst. All of them with the same Schema. Even with a master user/password to rule them all.
So, the only value that changes from one client to another is the "dsn"
How can I change that dsn value in the model package from the controller at runtime?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Change DBI database on runtime
by zwon (Abbot) on Nov 13, 2011 at 04:13 UTC | |
by miguelele (Beadle) on Nov 13, 2011 at 15:55 UTC | |
by zwon (Abbot) on Nov 14, 2011 at 13:44 UTC | |
by miguelele (Beadle) on Nov 15, 2011 at 00:11 UTC | |
by zwon (Abbot) on Nov 15, 2011 at 02:43 UTC | |
| |
by miguelele (Beadle) on Nov 14, 2011 at 16:58 UTC | |
|
Re: Change DBI database on runtime
by keszler (Priest) on Nov 12, 2011 at 21:30 UTC | |
by miguelele (Beadle) on Nov 13, 2011 at 00:09 UTC |