Hi Everyone,
I need help in deciding on the best practice for catalyst and DBIx::Class. I've been using Class::DBI for awhile and trying to convert to DBIx::Class for developing a web application.
In the past, I've been using Class::DBI as a separate application (as a library), so that it can be used for more than one application, but I've been reading the
catalyst manual docs for DBIx::Class that is suggesting that it is to be
stored within the catalyst application.
so my question is,
1) What is the best practice on matters like this?, is it better to separate it, create the DBIx::Class as a separate library, or just let it be in one application?.
2) If I wanted to go for the separate library route, is there a good documentation on how to integrate it with catalyst?, so that I can still access the database using the $c->model() function like below
$c->model('MyAppDB::Somethis')->search({id => $id})->delete_all;
Thank you so much for the help, Please let me know if anyone don't understand what I mean.