Re: [Catalyst] DBIC connecting to remote MySQL

2010-05-25 Thread Dan
On Sun, 2010-05-23 at 21:13 +0700, Ben van Staveren wrote: script/easysaver_create.pl model ESDB DBIC::Schema EasySaver::Schema dbi:mysql:EasySaver:archeopteryx 'user' 'pass' '{ AutoCommit = 1 }' We're getting closer now. Now I get an error that EasySaver::Schema isn't found ...

[Catalyst] Catalyst::Model::DBIC::Schema and dbh_maker

2010-05-25 Thread Bill Moseley
I would like my Catalyst::Model::DBIC::Schema model class to be able to inspect the configuration and modify connect_info. Specifically, based on a flag in the config either pass connect_info unmodified or replace dsn/user/password with a dbh_maker sub. What seems to work ok is to use before '

Re: [Catalyst] Catalyst::Model::DBIC::Schema and dbh_maker

2010-05-25 Thread Tomas Doran
On 25 May 2010, at 15:36, Bill Moseley wrote: I would like my Catalyst::Model::DBIC::Schema model class to be able to inspect the configuration and modify connect_info. Specifically, based on a flag in the config either pass connect_info unmodified or replace dsn/user/password with a