[Catalyst] Getting DBIC schema from outside Catalyst?
Dr. Jennifer Nussbaum
bg271828 at yahoo.com
Wed Mar 8 21:06:15 GMT 2017
Hi, I hope Im asking this correctly.
I have a full-blown Catalyst application that connects to many DBIC schemas with information
stored in the conf file, as per usual C::M::DBIC::Schema practices, and I access them with
again the usual practices, $c->model('Foo')->search() etc.
I need to get these schemas from outside the Cat application, e.g. to run cron scripts, etc.
I was going to write a utility method to parse the config file, connect to the database, etc.,
but I was wondering that if C::M::DBIC::Schema already does this, is there a way I can access
this from _outside_ of my Catalyst app, i.e. something I can call to return this from a script?
More information about the Catalyst