NAME
DBIx::Class::Schema::AuditLog::Structure
VERSION
version 0.6.4
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: action_types: array ref of action types: [ delete, insert, update ] change_order: sets the order to return the results, either asc, or desc defaults to desc field: name of the field that was audited created_on: timestamp of the changeset to search by takes a standard dbic where clause for a field, eg: '2012-07-09-15.25.18' or { '>=' , '2012-07-09-15.25.18; } the timestamp must already be in the format that the database stores in
AUTHOR
Mark Jubenville <ioncache@cpan.org>
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.