class

DB::TopLevelTransaction

Inherits DB::Transaction / DB::BeginTransaction / DB::Disposable / Reference / Object

Constructors

new(connection : Connection)
Source

Instance methods

begin_transaction

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

Source
commit

commits the current transaction

Source
connection
Source
rollback

rollbacks the current transaction

Source