[Dbix-class] RFC: Syntactic sugar

Carl Franks fireartist at gmail.com
Thu Mar 30 10:18:51 CEST 2006


> package Foo::Schema;
> use base qw/DBIx::Class::Schema/;
>
> __PACKAGE__->declare( ... );
>
> 1;
>
> Where ... could be a data structure, a string, a filehandle, a
> filename, or undef to read from __DATA__

I like the sound of that, but how about having it point to a
"create_tables.sql" file?
/very/ DRY :)

Carl



More information about the Dbix-class mailing list