use MooseX::Declare;
class SQL::Translator::Types {
- use MooseX::Types::Moose qw(ArrayRef CodeRef Int Maybe Str Undef);
+ use MooseX::Types::Moose qw(ArrayRef CodeRef HashRef Int Maybe Str Undef);
use MooseX::Types -declare, [qw(Column Constraint ForeignKey Index PrimaryKey Procedure Schema Sequence Table Trigger View
Bit DBIHandle ColumnSize Parser Producer Translator)];
class_type Producer, { class => 'SQL::Translator::Producer' };
class_type Translator, { class => 'SQL::Translator' };
+ coerce Column,
+ from HashRef, via { SQL::Translator::Object::Column->new($_) };
+
subtype Bit, as Int, where { $_ == 1 || $_ == 0 };
coerce Bit,
from Undef, via { 0 },