From: Justin Hunter Date: Tue, 11 Aug 2009 04:48:14 +0000 (-0700) Subject: methods for compat X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=65061e1b4c84a0b469030a2e7265bbd1853e1594;p=dbsrgits%2FSQL-Translator-2.0-ish.git methods for compat --- diff --git a/lib/SQL/Translator/Object/Index.pm b/lib/SQL/Translator/Object/Index.pm index dd78b20..d0251b9 100644 --- a/lib/SQL/Translator/Object/Index.pm +++ b/lib/SQL/Translator/Object/Index.pm @@ -18,6 +18,7 @@ class SQL::Translator::Object::Index { provides => { exists => 'exists_column', keys => 'column_ids', + values => 'get_columns', get => 'get_column', }, curries => { @@ -36,4 +37,7 @@ class SQL::Translator::Object::Index { isa => Str, required => 1 ); + + method get_fields { return $self->get_columns } + method fields { return $self->column_ids } }