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

John Li johnli at accessmedia.tv
Fri May 26 23:56:01 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





More information about the Dbix-class mailing list