class

Marten::DB::Transaction

Inherits Reference / Object

Wraps a DB transaction and allows to bind commit and rollback observers to it.

Constructors

new(transaction : ::DB::Transaction)
Source

Instance methods

connection(*args, **options)
Source
connection(*args, **options, &)
Source
notify_observers
Source
observe_commit(block)
Source
observe_rollback(block)
Source
rolled_back=(rolled_back : Bool)
Source
rolled_back?
Source