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

 

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/

Reply via email to