get_columns => 'values',
get_column => 'get',
add_column => 'set',
+
+ ## compat
+ get_fields => 'values',
+ fields => 'keys',
+ field_names => 'keys',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
around add_column(Column $column) { $self->$orig($column->name, $column) }
- method get_fields { $self->get_columns }
- method fields { $self->column_ids }
- method field_names { $self->column_ids }
-
method reference_fields { $self->reference_columns }
}
get_columns => 'values',
get_column => 'get',
add_column => 'set',
+
+ ## compat
+ get_fields => 'values',
+ fields => 'keys',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
);
around add_column(Column $column) { $self->$orig($column->name, $column) }
-
- method get_fields { $self->get_columns }
- method fields { $self->column_ids }
}
get_columns => 'values',
get_column => 'get',
add_column => 'set',
+
+ ## compat
+ get_fields => 'values',
+ fields => 'keys',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
around add_constraint(Constraint $constraint) { $self->$orig($constraint->name, $constraint) }
around add_sequence(Sequence $sequence) { $self->$orig($sequence->name, $sequence) }
- method get_fields { $self->get_columns }
- method fields { $self->column_ids }
-
multi method primary_key(Any $) { grep /^PRIMARY KEY$/, $_->type for $self->get_constraints }
multi method primary_key(Str $column) { $self->get_column($column)->is_primary_key(1) }
get_columns => 'values',
get_column => 'get',
add_column => 'set',
+
+ ## compat
+ get_fields => 'values',
+ fields => 'keys',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
);
around add_column(Column $column) { $self->$orig($column->name, $column) }
-
- method get_fields { $self->get_columns }
- method fields { $self->column_ids }
}
get_columns => 'values',
get_column => 'get',
add_column => 'set',
+
+ ## compat
+ get_fields => 'values',
+ fields => 'keys',
},
default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
);
);
around add_column(Column $column) { $self->$orig($column->name, $column) }
-
- method get_fields { $self->get_columns }
- method fields { $self->column_ids }
}