class DB::SavePointTransaction
- DB::SavePointTransaction
- DB::Transaction
- Reference
- Object
Defined in:
db/transaction.crConstructors
Instance Method Summary
-
#begin_transaction : Transaction
Creates a transaction from the current context.
-
#commit
commits the current transaction
- #connection : Connection
- #create_save_point_transaction(parent : Transaction)
- #release_from_nested_transaction
-
#rollback
rollbacks the current transaction
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(&block)
transaction
Instance methods inherited from module DB::Disposable
close
close,
closed?
closed?
Constructor Detail
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.