README
DB
Any
BeginTransaction
Connection
ConnectionContext
ConnectionLost
ConnectionRefused
Database
Disposable
Driver
DriverSpecs
ColumnDef
Error
ExecResult
Mappable
MappingException
Pool
TimeoutHelper
PoolPreparedStatement
PoolRetryAttemptsExceeded
PoolStatement
PoolTimeout
PoolUnpreparedStatement
QueryMethods
ResultSet
Rollback
SavePointTransaction
SessionMethods
PreparedQuery
UnpreparedQuery
Statement
StatementMethods
StringKeyCache
TopLevelTransaction
Transaction
class
DB::TopLevelTransaction
DB::TopLevelTransaction
DB::Transaction
Reference
Object
Defined in:
db/transaction.cr
Constructors
.new
(connection : Connection)
Instance Method Summary
#begin_transaction
: Transaction
#commit
#connection
: DB::Connection
#rollback
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
def self.
new
(connection :
Connection
)
#
[
View source
]
Instance Method Detail
def
begin_transaction
:
Transaction
#
[
View source
]
def
commit
#
[
View source
]
def
connection
:
DB::Connection
#
[
View source
]
def
rollback
#
[
View source
]