DBIx-Class-PgLog
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
lib/DBIx/Class/PgLog.pm view on Meta::CPAN
my $result = $self->next::method(@_);
my $action = "INSERT";
my %column_data = $result->get_columns;
$self->_store_changes( $action, $result, {}, \%column_data );
return $result;
}
sub update {
my $self = shift;
return $self->next::method(@_) if !$enabled;
my $stored_row = $self->get_from_storage;
my %new_data = $self->get_columns;
my @changed_columns = keys %{ $_[0] || {} };
my $result = $self->next::method(@_);
lib/DBIx/Class/ResultSet/PgLog.pm view on Meta::CPAN
shift->delete_all;
};
=head2 update
Calls L<DBIx::Class::ResultSet/update_all> to ensure that triggers defined by
L<DBIx::Class::PgLog> are run.
=cut
sub update {
shift->update_all(@_);
}
=head1 AUTHORS
See L<DBIx::Class::PgLog/AUTHOR> and L<DBIx::Class::PgLog/CONTRIBUTORS>
=head1 COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Mark Jubenville.
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.648 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )