Egg::Plugin::DBI::Transaction - Plugin that supports transaction of DBI.
use Egg qw/ DBI::Transaction /; # It accesses the data base handler. $e->dbh; # Committing then and there. $e->dbh_commit; # Rollback then and there. $e->dbh_rollback; # Committing is issued at the end of processing. $e->commit_ok(1); # The rollback is issued at the end of processing. $e->rollback(1);
This plugin semi-automates the Transaction processing of DBI.
Rollback is done without fail at the end of processing usually.
commit is done when 'Commit_ok' is effective.
When DBI->dbh->{AutoCommit} is effective, any method of the transaction system is not done.
The data base handler is returned.
It commits when it is called and it reports with $e->debug_out.
The flag to commit it at the end of processing is hoisted.
* It influences rollback_ok.
When it is called, it reports on the rollback by doing $e->debug_out.
The flag to do the rollback at the end of processing is hoisted.
The state of DBI->dbh->{AutoCommit} is returned.
DBI, Ima::DBI, Egg::Model::DBI, Egg::Plugin::DBI::Easy, Egg::Release,
Masatoshi Mizuno <lushe@cpan.org>
Copyright (C) 2007 by Bee Flag, Corp. <http://egg.bomcity.com/>, All Rights Reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.6 or, at your option, any later version of Perl 5 you may have available.
To install Egg::Release, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Egg::Release
CPAN shell
perl -MCPAN -e shell install Egg::Release
For more information on module installation, please visit the detailed CPAN module installation guide.