> The thing is I > realized that if I connect to this schema outside of the scope of > Catalyst via DBIx::Class::Schema->connect I have to pass in the > connection info separately which really bugs me because I've already > defined it via a configuration file for the Catalyst app (using > Config::General). I suppose I could just pass that info into the model > but that seems messy and redundant to me.
To me it doesn't seem messy to parse myapp.conf from your non-catalyst app using Config::General->getall, then pass the connect_info data to your DBIC::Schema class. Besides, you can use your MyApp::Schema classes from anywhere, in case you created them with DBIC::Schema::Loader. My 2c. -rodrigo
_______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
