2 class SQL::Translator::Object::Trigger extends SQL::Translator::Object {
3 use MooseX::Types::Moose qw(Any ArrayRef HashRef Str);
4 use MooseX::AttributeHelpers;
5 use SQL::Translator::Types qw(Column);
14 metaclass => 'Collection::Hash',
16 isa => HashRef[Column],
18 exists => 'exists_column',
20 values => 'get_columns',
24 default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
38 has 'perform_action_when' => (
44 has 'database_events' => (
50 around add_column(Column $column) { $self->$orig($column->name, $column) }
52 method get_fields { $self->get_columns }
53 method fields { $self->column_ids }