in reply to Re: Catalyst and DBI
in thread Catalyst and DBI
I don't use DBIx. I use Catalyst::Model::DBI. When I create a model, I write next:
./app_create.pl model Name_of_Model DBI:mysql:auth username passwordIn this case dsn, username and password pass into the model configuration. So each model has it's own configuration (the same). Without this configuration model can not connect to database. I use DBI, because I must write live queries without any ORM. I now thar it's wrong write configuration in every model and when every model connects to DB separately, but I can not understand, how I can do only one connection and write connection params in one place(((
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Catalyst and DBI
by Solo (Deacon) on Aug 25, 2011 at 09:28 UTC | |
by brainbuz (Novice) on Sep 08, 2011 at 15:16 UTC |
In Section
Seekers of Perl Wisdom