[Catalyst] Filtering tables from model scaffolding

Eric Wright info at rapidsynergy.com
Tue Nov 11 14:09:10 GMT 2008


Eden this worked perfectly! Thanks again for steering me in the right
direction.

-Eric

On Fri, Nov 7, 2008 at 1:23 PM, Eden Cardim <edencardim at gmail.com> wrote:

> 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 n=
ot
> > 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 platfor=
m?
> http://edenc.vox.com/            http://www.shadowcat.co.uk/servers/
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



-- =

-----------------------------------------------------------
Eric Wright
Rapid Synergy LLC
Web Development, Software & Consulting
V: 203.758.9270  F: 203.725.0853
http://www.rapidsynergy.com
-----------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20081111/1fd75=
951/attachment.htm


More information about the Catalyst mailing list