> 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
_______________________________________________
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/