DBIx::TransactionManager::EndHook - hook of DBIx::TransactionManager commit
This document describes DBIx::TransactionManager::EndHook version 0.02.
use DBIx::TransactionManager; use DBIx::TransactionManager::EndHook; my $txn = $tm->txn_scope; $dbh->do('...'); $tm->add_end_hook(sub { # do something }); $txn->commit;
DBIx::TransactionManager::EndHook propide hook point that all transactions handled by DBIx::TransactionManager are excuted successfully.
Add hook subroutine to DBIx::TransactionManager. If call it without transactions, it throw Exception. And these hooks are executed only all transactions are executed successfully. If some transactions are failed, these aren't executed.
Perl 5.8.1 or later.
All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.
DBIx::TransactionManager
Soh Kitahara <sugarbabe335@gmail.com>
Copyright (c) 2013, Soh Kitahara. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install DBIx::TransactionManager::EndHook, copy and paste the appropriate command in to your terminal.
cpanm
cpanm DBIx::TransactionManager::EndHook
CPAN shell
perl -MCPAN -e shell install DBIx::TransactionManager::EndHook
For more information on module installation, please visit the detailed CPAN module installation guide.