Hi all! I use Catalyst and DBI. I want to connect my database only in one place. But now every model has it's own connection and I must write in config file params(dsn, username, password) for every model, like this:
<Model::Name_of_model> dsn DBI:mysql:name_of_database user username password user_password </Model::Name_of_Model>
I must do it for every model. Is it possible to do it only once and in one place? And that each model would take these params.
In reply to Catalyst and DBI by Uragan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |