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(((
In reply to Re^2: Catalyst and DBI
by Uragan
in thread Catalyst and DBI
by Uragan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |