NAME

DBIx::Class::AuditAny::AuditContext::Change - Default 'Change' context object for DBIC::AuditAny

DESCRIPTION

This is the class which represents a single captured change event, which could involve multiple columns.

ATTRIBUTES

Docs regarding the API/purpose of the attributes and methods in this class still TBD...

SourceContext

The Source context

ChangeSetContext

The parent ChangeSet

action

The type of action which triggered this change: insert, update or delete, or the special action 'select' which is used to initialize tracked rows in the audit database

old_columns

The column values of the row, -according to the db- *before* the change happens. This should be an empty hashref in the case of 'insert'

to_columns

The column changes specified -by the change- (specified by the client/query). Note that this is different from 'new_columns' and probably doesn't contain all the columns. This should be an empty hashref in the case of 'delete' (TODO: would 'change_columns' a better name than 'to_columns'?)

new_columns

The column values of the row, -according to the db- *after* the change happens. This should be an empty hashref in the case of 'delete'

condition

The condition associated with this change, applies to 'update' and 'delete'

recorded

Boolean flag set to true once the change data has been recorded

pri_key_value

orig_pri_key_value

change_ts

start_timeofday

change_elapsed

column_changes

METHODS

class

ResultSource

source

pri_key_column

pri_key_count

primary_columns

get_pri_key_value

record

action_id

enforce_recorded

enforce_unrecorded

all_column_changes

arr_arr_ascii_table

SEE ALSO

SUPPORT

IRC:

Join #rapidapp on irc.perl.org.

AUTHOR

Henry Van Styn <vanstyn@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012-2015 by IntelliTree Solutions llc.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.