Jonathan Yu (custodial account, see JAWNSY) > IO-Journal > IO::Journal::Transaction

Download:
IO-Journal-0.2.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.2.0   Source  

NAME ^

IO::Journal::Transaction - Perl interface to IO::Journal transactions

VERSION ^

Version 0.2 ($Id: Transaction.pm 8239 2009-07-26 03:28:55Z FREQUENCY@cpan.org $)

DESCRIPTION ^

This module provides the facilities for handling IO::Journal transactions. Operations can be added to the transaction object via the exposed interface; they can then be either saved to file (commit) or simply discarded (rollback).

SYNOPSIS ^

  my $trans = $journal->begin_transaction();
  $trans->write("Hello ");
  $trans->write("World\n");
  $trans->commit(); # may die
  # File either contains "Hello World\n" or nothing

  # Transactions can be rolled back even after committing! (But only if we
  # have a current handle to the transaction)
  $trans->rollback();

METHODS ^

AUTHOR ^

Jonathan Yu <frequency@cpan.org>

SEE ALSO ^

IO::Journal

SUPPORT ^

Please file bugs for this module under the IO::Journal distribution. For more information, see IO::Journal's perldoc.

LICENSE ^

This has the same copyright and licensing terms as IO::Journal.

DISCLAIMER OF WARRANTY ^

The software is provided "AS IS", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.

syntax highlighting: