[Dbix-class] RFC: DBIx::Class::Schema::Declare
Carl Franks
fireartist at gmail.com
Tue Apr 4 10:11:48 CEST 2006
> table {
> class 'One';
> column 'foo', -primary => 1;
> column 'bar', Text();
> }
Please, no!
I think CGI.pm should be hung, drawn and quartered for propogating the
ugly leading-dash hack.
The 'table' declaration seems a bit redundant, though the 'column'
identifier might be needed. How would the example in the OP handle
multi-column index declarations?
(Are there other non-column declarations that might need to be handled too?)
Also, logically, I prefer
not_null => 1
over
null => 0
Cheers,
Carl
More information about the Dbix-class
mailing list