2 class SQL::Translator::Object::Trigger {
3 use MooseX::Types::Moose qw(Any ArrayRef HashRef Str);
4 use MooseX::AttributeHelpers;
5 use SQL::Translator::Types qw(Column);
6 extends 'SQL::Translator::Object';
15 metaclass => 'Collection::Hash',
17 isa => HashRef[Column],
19 exists => 'exists_column',
21 values => 'get_columns',
25 default => sub { my %hash = (); tie %hash, 'Tie::IxHash'; return \%hash },
39 has 'perform_action_when' => (
45 has 'database_events' => (
51 around add_column(Column $column) { $self->$orig($column->name, $column) }
53 method get_fields { $self->get_columns }
54 method fields { $self->column_ids }