Directory-Transactional
view release on metacpan or search on metacpan
lib/Directory/Transactional.pm view on Meta::CPAN
properly.
=back
=head1 METHODS
=head2 Transaction Management
=over 4
=item txn_do $code, %callbacks
Executes C<$code> within a transaction in an C<eval> block.
If any error is thrown the transaction will be rolled back. Otherwise the
transaction is comitted.
C<%callbacks> can contain entries for C<commit> and C<rollback>, which are
called when the appropriate action is taken.
=item txn_begin
Begin a new transaction. Can be called even if there is already a running
transaction (nested transactions are supported).
=item txn_commit
Commit the current transaction. If it is a nested transaction, it will commit
( run in 0.652 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )