[Catalyst] Filtering tables from model scaffolding
edencardim at gmail.com
Fri Nov 7 18:23:22 GMT 2008
On Fri, Nov 7, 2008 at 12:46 PM, Rapid Synergy <info at rapidsynergy.com> wrote:
> We've recently started using Catalyst on one of our projects and so far I am
> very happy with its capabilities. One question I have is related to the
> scaffolding script used for generating a DBIC model. In particular, we have
> thousands of tables in our MySQL database that are auto generated but not
> core to our Catalyst application. Everytime a change is made to the schema,
> the scaffolding creates thousands of unneeded objects that I end up needing
> to delete. Is there a way to filter the tables generated by this script?
> Perhaps a better method exists for this sort of thing?
See DBIx::Class::Schema::Loader, particularly, the make_schema_at()
function and the "constraint" and "exclude" options.
Eden Cardim Need help with your Catalyst or DBIx::Class project?
Code Monkey http://www.shadowcat.co.uk/catalyst/
Shadowcat Systems Ltd. Want a managed development or deployment platform?
More information about the Catalyst