keys => 'column_ids',
values => 'get_columns',
get => 'get_column',
- },
- curries => {
- set => {
- add_column => sub {
- my ($self, $body, $column) = @_;
- $self->$body($column->name, $column);
- }
- }
+ set => 'add_column',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
auto_deref => 1,
);
+ around add_column(Column $column) { $self->$orig($column->name, $column) }
+
method get_fields { return $self->get_columns }
method fields { return $self->column_ids }
method field_names { return $self->column_ids }
keys => 'column_ids',
values => 'get_columns',
get => 'get_column',
- },
- curries => {
- set => {
- add_column => sub {
- my ($self, $body, $column) = @_;
- $self->$body($column->name, $column);
- }
- }
+ set => 'add_column',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
auto_deref => 1,
);
+ around add_column(Column $column) { $self->$orig($column->name, $column) }
+
method get_fields { return $self->get_columns }
method fields { return $self->column_ids }
}
keys => 'table_ids',
values => 'get_tables',
get => 'get_table',
- },
- curries => {
- set => {
- add_table => sub {
- my ($self, $body, $table) = @_;
- $self->$body($table->name, $table);
- }
- }
+ set => 'add_table',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
keys => 'view_ids',
values => 'get_views',
get => 'get_view',
- },
- curries => {
- set => {
- add_view => sub {
- my ($self, $body, $view) = @_;
- $self->$body($view->name, $view);
- }
- }
+ set => 'add_view',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
keys => 'procedure_ids',
values => 'get_procedures',
get => 'get_procedure',
- },
- curries => {
- set => {
- add_procedure => sub {
- my ($self, $body, $procedure) = @_;
- $self->$body($procedure->name, $procedure);
- }
- }
+ set => 'add_procedure',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
keys => 'trigger_ids',
values => 'get_triggers',
get => 'get_trigger',
- },
- curries => {
- set => {
- add_trigger => sub {
- my ($self, $body, $trigger) = @_;
- $self->$body($trigger->name, $trigger);
- }
- }
+ set => 'add_trigger',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
+ around add_table(Table $table) { $self->$orig($table->name, $table) }
+ around add_view(View $view) { $self->$orig($view->name, $view) }
+ around add_procedure(Procedure $procedure) { $self->$orig($procedure->name, $procedure) }
+ around add_trigger(Trigger $trigger) { $self->$orig($trigger->name, $trigger) }
+
method is_valid { 1 }
method order { }
keys => 'column_ids',
values => 'get_columns',
get => 'get_column',
- },
- curries => {
- set => {
- add_column => sub {
- my ($self, $body, $column) = @_;
- $self->$body($column->name, $column);
- }
- }
+ set => 'add_column',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
keys => 'index_ids',
values => 'get_indices',
get => 'get_index',
- },
- curries => {
- set => {
- add_index => sub {
- my ($self, $body, $index) = @_;
- $self->$body($index->name, $index);
- }
- }
+ set => 'add_index',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
keys => 'constraint_ids',
values => 'get_constraints',
get => 'get_constraint',
- },
- curries => {
- set => {
- add_constraint => sub {
- my ($self, $body, $constraint) = @_;
- $self->$body($constraint->name, $constraint);
- }
- }
+ set => 'add_constraint',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
keys => 'sequence_ids',
values => 'get_sequences',
get => 'get_sequence',
- },
- curries => {
- set => {
- add_sequence => sub {
- my ($self, $body, $sequence) = @_;
- $self->$body($sequence->name, $sequence);
- }
- }
+ set => 'add_sequence',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
auto_deref => 1
);
+ around add_column(Column $column) { $self->$orig($column->name, $column) }
+ around add_index(Index $index) { $self->$orig($index->name, $index) }
+ around add_constraint(Constraint $constraint) { $self->$orig($constraint->name, $constraint) }
+ around add_sequence(Sequence $sequence) { $self->$orig($sequence->name, $sequence) }
+
method get_fields { return $self->get_columns }
method fields { return $self->column_ids }
method primary_key(Str $column) {
keys => 'column_ids',
values => 'get_columns',
get => 'get_column',
- },
- curries => {
- set => {
- add_column => sub {
- my ($self, $body, $column) = @_;
- $self->$body($column->name, $column);
- }
- }
+ set => 'add_column',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
required => 1
);
+ around add_column(Column $column) { $self->$orig($column->name, $column) }
+
method get_fields { return $self->get_columns }
method fields { return $self->column_ids }
}
provides => {
exists => 'exists_column',
keys => 'column_ids',
+ values => 'get_columns',
get => 'get_column',
- },
- curries => {
- set => {
- add_column => sub {
- my ($self, $body, $column) = @_;
- $self->$body($column->name, $column);
- }
- }
+ set => 'add_column',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
required => 1
);
+ around add_column(Column $column) { $self->$orig($column->name, $column) }
+
method get_fields { return $self->get_columns }
method fields { return $self->column_ids }
}