[Catalyst] how to reuse Catalyst Schema for non-web purposes?

kakimoto at tpg.com.au kakimoto at tpg.com.au
Wed Apr 22 04:41:34 GMT 2009


hi guys,
  I just looked at my app and found that I need to reuse the Schema
files found in my 'Schema' directory.
This is because i need to write some batch scripts which will read the
data in the databases and output to files in the server.


I tried writing a regression test and put in 'use
MyApp::Schema::SubscriptionPlans;'

The problem was that there was always a 'resolve' error that came up.

Basically, what I am doing is the opposite of "Using existing DBIC
(etc.) classes with Catalyst" found in
http://search.cpan.org/~hkclark/Catalyst-Manual-5.7020/lib/Catalyst/Manual/Cookbook.pod#___top.


any ideas?

thank you

K. akimoto




More information about the Catalyst mailing list