[Catalyst] connecting to more than one database
Gerda Shank
gs364 at cornell.edu
Thu Jul 3 18:57:20 BST 2008
jagdish eashwar wrote:
> Putting all the tables in one database is a solution. I am afraid,
> however, that when I create a model using script/MyApp_create.pl for a
> specific Catalyst application, I'll get all the tables in the
> database into my DBIC schema. Is there a way of making
> MyApp_create.pl pick up only a subset of the tables?
I don't think you can do this with the Catalyst helper, but you can
write your own script to use DBIx::Class::Schema::Loader, and use the
"moniker_map" option of make_schema_at. Then it will only create files
for the tables that you list.
Gerda
More information about the Catalyst
mailing list