KiokuDB::LiveObjects::TXNScope(3pm)

KiokuDB::LiveObjects::TXNScope3pm

Transaction scope.

Usage

    $txn_scope = $live_objects->new_txn;
    $txn_scope->update_entries(@updated);
    $txn_scope->rollback;

Version

version 0.57

Overview

This is an auxiliary class used by transaction scoping to roll back entries updated during a transaction when it is aborted.

This is used internally in "txn_do" in KiokuDB and should not need to be used directly.

Attributes

entries

An ordered log of updated entries.

Methods

update_entries

Called by "update_entries" in KiokuDB::LiveObjects. Adds entries to "entries".

rollback

Calls "KiokuDB::LiveObjects/rollback_entries" with all the recorded entries.

Releases

6 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8–10
  3. 12–13

Author

Yuval Kogman <[email protected]>

From libkiokudb-perl 0.57-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.