struct LMDB::ReadOnlyTransaction
- LMDB::ReadOnlyTransaction
- LMDB::AbstractTransaction
- Struct
- Value
- Object
Defined in:
lmdb/transaction.crConstructors
Instance Method Summary
-
#readonly? : Bool
Whether
self
is a readonly transaction. -
#renew
Renew a read-only transaction
-
#reset
Reset a read-only transaction
Instance methods inherited from struct LMDB::AbstractTransaction
==(other : self)
==,
abort
abort,
commit
commit,
database : Database
database,
database? : Database | Nil
database?,
environment : Environment
environment,
id
id,
readonly? : Bool
readonly?,
stat(db : Database) : LibLMDB::Stat
stat,
to_unsafe : Pointer(Void)
to_unsafe,
transaction(readonly : Bool = self.readonly?) : AbstractTransactiontransaction(readonly : Bool = self.readonly?, &) : AbstractTransaction transaction
Constructor methods inherited from struct LMDB::AbstractTransaction
new(environment : Environment, database : Database | Nil = nil, parent : Transaction | Nil = nil)
new
Constructor Detail
def self.new(environment : Environment, database : Database | Nil = nil, parent : Transaction | Nil = nil)
#
Instance Method Detail
def readonly? : Bool
#
Description copied from struct LMDB::AbstractTransaction
Whether self
is a readonly transaction.
def renew
#
Renew a read-only transaction
Acquires a new reader lock for a transaction handle that have been
released by #reset
. Must be called before a reset transaction may be
used again.