struct

LMDB::ReadOnlyTransaction

Inherits LMDB::AbstractTransaction / Struct / Value / Object

Constructors

new(environment : Environment, database : Database | Nil = nil, parent : Transaction | Nil = nil)
Source

Instance methods

readonly?

Whether self is a readonly transaction.

Source
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.

Source
reset

Reset a read-only transaction

Abort the transaction, but keep the transaction handle. #renew may reuse the handle.

Source