From: Justin Hunter Date: Wed, 19 Aug 2009 10:06:44 +0000 (-0700) Subject: change parameters from HashRef to ArrayRef X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=579c2829cf10e771911168dc5096f8d753c4a01c;p=dbsrgits%2FSQL-Translator-2.0-ish.git change parameters from HashRef to ArrayRef --- diff --git a/lib/SQL/Translator/Object/Procedure.pm b/lib/SQL/Translator/Object/Procedure.pm index f53df08..1aceb20 100644 --- a/lib/SQL/Translator/Object/Procedure.pm +++ b/lib/SQL/Translator/Object/Procedure.pm @@ -2,9 +2,7 @@ use MooseX::Declare; class SQL::Translator::Object::Procedure { use namespace::autoclean; use Moose; - use MooseX::Types::Moose qw(HashRef Int Maybe Str); - use MooseX::AttributeHelpers; - use SQL::Translator::Types qw(); + use MooseX::Types::Moose qw(ArrayRef Int Maybe Str); use aliased 'SQL::Translator::Object::Schema'; extends 'SQL::Translator::Object'; @@ -14,22 +12,14 @@ class SQL::Translator::Object::Procedure { required => 1 ); - has 'contents' => ( + has 'contents ' => ( is => 'rw', isa => Str, - required => 1 ); has 'parameters' => ( - metaclass => 'Collection::Hash', is => 'rw', - isa => Maybe[HashRef[Int|Str]], - provides => { - exists => 'exists_parameter', - keys => 'parameter_ids', - get => 'get_parameter', - set => 'set_parameter', - }, + isa => ArrayRef, ); has 'owner' => (