Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soh335/dbix-transactionmanager-endhook
https://github.com/soh335/dbix-transactionmanager-endhook
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/soh335/dbix-transactionmanager-endhook
- Owner: soh335
- Created: 2013-01-14T02:13:41.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2013-03-08T11:00:33.000Z (over 11 years ago)
- Last Synced: 2024-10-11T21:11:49.570Z (about 1 month ago)
- Language: Perl
- Size: 142 KB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
DBIx::TransactionManager::EndHook - hook of DBIx::TransactionManager
commitVERSION
This document describes DBIx::TransactionManager::EndHook version 0.02.SYNOPSIS
use DBIx::TransactionManager;
use DBIx::TransactionManager::EndHook;my $txn = $tm->txn_scope;
$dbh->do('...');
$tm->add_end_hook(sub {
# do something
});$txn->commit;
DESCRIPTION
DBIx::TransactionManager::EndHook propide hook point that all
transactions handled by DBIx::TransactionManager are excuted
successfully.METHODS
$tm->add_end_hook(sub{});
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.DEPENDENCIES
Perl 5.8.1 or later.BUGS
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.SEE ALSO
DBIx::TransactionManagerAUTHOR
Soh KitaharaLICENSE AND COPYRIGHT
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.