struct LMDB::ReadOnlyTransaction

Defined in:

lmdb/transaction.cr

Constructors

Instance Method Summary

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?) : AbstractTransaction
transaction(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) #

[View source]

Instance Method Detail

def readonly? : Bool #
Description copied from struct LMDB::AbstractTransaction

Whether self is a readonly transaction.


[View source]
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.


[View source]
def reset #

Reset a read-only transaction

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


[View source]