View on
MetaCPAN
search.cpan.org is shutting down
For details read Perl NOC. After June 25th this page will redirect to MetaCPAN.org
Henry Van Styn > DBIx-Class-AuditAny-0.200100 > DBIx::Class::AuditAny::Role::Storage

Download:
DBIx-Class-AuditAny-0.200100.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

DBIx::Class::AuditAny::Role::Storage - Role to apply to tracked DBIx::Class::Storage objects

DESCRIPTION ^

This role adds the hooks to the DBIC Storage object to be able to sniff and collect change data has it happens in real time.

REQUIRES ^

txn_do

insert

update

delete

insert_bulk

ATTRIBUTES ^

head2 auditors

List of Auditor objects which we are collecting data for. Typically there will be only one Auditor, but there can be many, allowing for data to be logged to a file by one, logged in a database by another, and then some other random watcher which takes some action when a certain event is detected. All of these can run simultaneously, and receive the sniffed data which we will collect only once.

METHODS ^

all_auditors

Returns a list of all configured Auditor objects

auditor_count

The number of configured auditors

add_auditor

Adds a new Auditor object(s) to report to

changeset_do

TODO... currently is just a wrapper around a native txn_do call. Not sure what this is meant to do...

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.

syntax highlighting: