From: Justin Hunter Date: Wed, 15 Jul 2009 20:01:13 +0000 (-0700) Subject: add Parser and Producer class_types X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=36fda34385156f9060e33b323041f1c756078024;p=dbsrgits%2FSQL-Translator-2.0-ish.git add Parser and Producer class_types --- diff --git a/lib/SQL/Translator/Types.pm b/lib/SQL/Translator/Types.pm index ed89687..fad7979 100644 --- a/lib/SQL/Translator/Types.pm +++ b/lib/SQL/Translator/Types.pm @@ -1,6 +1,6 @@ package SQL::Translator::Types; use MooseX::Types::Moose qw(ArrayRef CodeRef Str); -use MooseX::Types -declare, [qw(Column Constraint ForeignKey Index PrimaryKey Procedure Schema Sequence Table Trigger View DBIHandle)]; +use MooseX::Types -declare, [qw(Column Constraint ForeignKey Index PrimaryKey Procedure Schema Sequence Table Trigger View DBIHandle Parser Producer)]; class_type Column, { class => 'SQL::Translator::Object::Column' }; class_type Constraint, { class => 'SQL::Translator::Object::Constraint' }; @@ -14,6 +14,9 @@ class_type Table, { class => 'SQL::Translator::Object::Table' }; class_type Trigger, { class => 'SQL::Translator::Object::Trigger' }; class_type View, { class => 'SQL::Translator::Object::View' }; +class_type Parser, { class => 'SQL::Translator::Parser' }; +class_type Producer, { class => 'SQL::Translator::Producer' }; + subtype DBIHandle, as 'DBI::db'; coerce DBIHandle,