[Catalyst] Getting DBIC schema from outside Catalyst?

Dr. Jennifer Nussbaum bg271828 at yahoo.com
Thu Mar 9 17:34:45 GMT 2017

Thank you! This is very simple and enormously helpful.

      From: Eden Cardim <edencardim at gmail.com>
 To: The elegant MVC web framework <catalyst at lists.scsys.co.uk> 
 Sent: Thursday, March 9, 2017 7:16 AM
 Subject: Re: [Catalyst] Getting DBIC schema from outside Catalyst?
If you want to reuse the configuration from MyApp:

use MyApp;
my $schema = MyApp->model('DBICModelName')->schema;

You may need to adjust @INC accordingly, etc.
List: Catalyst at lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/catalyst/attachments/20170309/da80ca75/attachment.htm>

More information about the Catalyst mailing list