The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

DBIx::Class::Schema::AuditLog::Structure

VERSION

version 0.2.2

current_changeset

Returns the changeset that is currently in process.

This is localized to the scope of each transaction.

audit_log_create_changeset

Creates a new Changeset for audited Actions.

Will create a new Audit Log User if ncessary.

audit_log_create_action

Creates a related Action for the current Changeset.

Also will create an AuditedTable for the new action if it doesn't already exist.

get_changes

Returns DBIC resultset of audit changes.

Takes a passed options hashref.

Required: id: row id from the table that was audited table: name of the table that was audited this must include the schema name for databases that have multiple schemas

Optional: field: name of the field that was audited action_types: array ref of action types: [ delete, insert, update ]

AUTHOR

Mark Jubenville <ioncache@gmail.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2012 by Mark Jubenville.

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