[Dbix-class] Specify tables for DBIx::Class::Schema::Loader

John Li johnli at accessmedia.tv
Sat May 27 00:19:40 CEST 2006


Hi,

 

Is there anyway that we can specify tables that we want/don't want in
DBIx::Class::Schema::Loader::make_schema_at? Preferably using regular
expressions or an arrayref of table names.

 

For example:

 

use DBIx::Class::Schema::Loader qw/ make_schema_at /; make_schema_at(

        'New::Schema::Name',

        { relationships => 1, 

          debug => 1, 

          dump_directory => './lib',

          tables => ['table1', 'table2', "<some_regex>"],       #

something like this.

        },

        [ 'dbi:Pg:dbname="foo"','postgres' ], );

 

 

Thanks,

 

John (Zhuang) Li

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/dbix-class/attachments/20060526/aa5ddde6/attachment.htm 


More information about the Dbix-class mailing list