2 class SQL::Translator::Object::Index {
3 use MooseX::Types::Moose qw(ArrayRef HashRef Str);
4 use MooseX::AttributeHelpers;
5 use SQL::Translator::Types qw(Column Table);
6 extends 'SQL::Translator::Object';
22 metaclass => 'Collection::Hash',
24 isa => HashRef[Column],
26 exists => 'exists_column',
28 values => 'get_columns',
32 default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
53 around add_column(Column $column) { $self->$orig($column->name, $column) }
55 method get_fields { return $self->get_columns }
56 method fields { return $self->column_ids }