exists => 'exists_column',
keys => 'column_ids',
get => 'get_column',
-# set => 'set_column',
},
curries => { set => { add_column => sub { my ($self, $body, $column) = @_; $self->$body($column->name, $column); } } },
default => sub { {} },
exists => 'exists_table',
keys => 'table_ids',
get => 'get_table',
-# set => 'add_table',
},
curries => { set => { add_table => sub { my ($self, $body, $table) = @_; $self->$body($table->name, $table); } } },
default => sub { {} },
exists => 'exists_view',
keys => 'view_ids',
get => 'get_view',
-# set => 'set_view',
},
curries => { set => { add_view => sub { my ($self, $body, $view) = @_; $self->$body($view->name, $view); } } },
default => sub { {} },
exists => 'exists_procedure',
keys => 'procedure_ids',
get => 'get_procedure',
- set => 'set_procedure',
},
+ curries => { set => { add_procedure => sub { my ($self, $body, $procedure) = @_; $self->$body($procedure->name, $procedure); } } },
default => sub { {} },
required => 0
);
exists => 'exists_column',
keys => 'column_ids',
get => 'get_column',
-# set => 'set_column',
},
curries => { set => { add_column => sub { my ($self, $body, $column) = @_; $self->$body($column->name, $column); } } },
default => sub { {} },
exists => 'exists_index',
keys => 'index_ids',
get => 'get_index',
-# set => 'set_index',
},
curries => { set => { add_index => sub { my ($self, $body, $index) = @_; $self->$body($index->name, $index); } } },
default => sub { {} },
exists => 'exists_constraint',
keys => 'constraint_ids',
get => 'get_constraint',
- set => 'set_constraint',
},
+ curries => { set => { add_constraint => sub { my ($self, $body, $constraint) = @_; $self->$body($constraint->name, $constraint); } } },
default => sub { {} },
required => 0
);
-=cut
-has 'schema' => (
- is => 'rw',
- isa => Schema,
- required => 0,
- default => sub { SQL::Translator::Object::Schema->new }
-);
-=cut
no Moose;
__PACKAGE__->meta()->make_immutable;