DBIx::Class::Schema::AuditLog::Structure
version 0.2.4
Returns the changeset that is currently in process.
This is localized to the scope of each transaction.
Creates a new Changeset for audited Actions.
Will create a new Audit Log User if ncessary.
Creates a related Action for the current Changeset.
Also will create an AuditedTable for the new action if it doesn't already exist.
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 timestamp: 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
Mark Jubenville <ioncache@gmail.com>
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.
To install DBIx::Class::AuditLog, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::Class::AuditLog
CPAN shell
perl -MCPAN -e shell install DBIx::Class::AuditLog
For more information on module installation, please visit the detailed CPAN module installation guide.