[Catalyst] Schema::Result file question
Kenneth S Mclane
ksmclane at us.ibm.com
Mon Apr 30 20:10:15 GMT 2012
I have this statement in each result file for ny DB. I am currently
accessing a other than default schema on a DB2 server, which has no way to
set a different schema as default for a user.
__PACKAGE__->table("ACCOUNT_DETAILS");
To get my data out of the DB, I have been forced to change this to
__PACKAGE__->table("HCDB_TEST.ACCOUNT_DETAILS");
Specifying the schema. Unfortunately, anytime I need to re-create my model
all these edits will go away. I do not want to edit 52+ files everytime I
need to reload.
My question is, is there a way to have the string "HCDB_TEST>" prepended
when making a call to any model?
Whet would it look like and where should it be put?
Can I re-define the table below the "Do Not edit" line? Or would it be
better to add something more global in nature?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120430/342eebae/attachment.htm
More information about the Catalyst
mailing list