class DB::SavePointTransaction

Defined in:



Instance Method Summary

Instance methods inherited from class DB::Transaction

commit commit, connection : Connection connection, release_from_nested_transaction release_from_nested_transaction, rollback rollback

Instance methods inherited from module DB::BeginTransaction

begin_transaction : Transaction begin_transaction, transaction(& : Transaction -> T) : T? forall T transaction

Instance methods inherited from module DB::Disposable

close close, closed? closed?

Constructor Detail

def : Transaction, savepoint_name : String) #

[View source]

Instance Method Detail

def begin_transaction : Transaction #
Description copied from module DB::BeginTransaction

Creates a transaction from the current context. If is expected that either Transaction#commit or Transaction#rollback are called explicitly to release the context.

[View source]
def commit #
Description copied from class DB::Transaction

commits the current transaction

[View source]
def connection : Connection #

[View source]
def create_save_point_transaction(parent : Transaction) #

[View source]
def release_from_nested_transaction #

[View source]
def rollback #
Description copied from class DB::Transaction

rollbacks the current transaction

[View source]