class Marten::DB::Transaction

Overview

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

Defined in:

marten/db/transaction.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(transaction : ::DB::Transaction) #

[View source]

Instance Method Detail

def connection(*args, **options) #

[View source]
def connection(*args, **options, &) #

[View source]
def notify_observers : Nil #

[View source]
def observe_commit(block) #

[View source]
def observe_rollback(block) #

[View source]
def rolled_back=(rolled_back : Bool) #

[View source]
def rolled_back? : Bool #

[View source]