class LMDB::MapDatabase(K, V)
- LMDB::MapDatabase(K, V)
- LMDB::Database
- Reference
- Object
Direct Known Subclasses
Defined in:
lmdb/database.crConstructors
- .new(environment : Environment, transaction : AbstractTransaction, flags : Flag = Flag::None)
- .new(environment : Environment, name : String, transaction : AbstractTransaction, flags : Flag = Flag::None)
Instance Method Summary
-
#cursor(&)
Create and yields a
AbstractCursorto iterate throughself, closed when the block goes out of scope. -
#cursor
ditto
- #delete(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _))
- #delete(key : K)
-
#each
Must return an
Iteratorover the elements in this collection. - #ensure_flags(flags)
- #get(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _)) : V
- #get(key : K) : V
- #get?(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _)) : V | Nil
-
#get?(key : K) : Value | Nil forall K
ditto
- #put(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _), value : Pointer(V) | Slice(V) | Array(V) | StaticArray(V, _), flags : PutFlags = PutFlags::None)
-
#put(key : Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _), val : V, flags : PutFlags = PutFlags::None)
ditto
-
#put(key : K, val : Pointer(V) | Slice(V) | Array(V) | StaticArray(V, _), flags : PutFlags = PutFlags::None)
ditto
-
#put(key : K, val : V, flags : PutFlags = PutFlags::None)
ditto
Instance methods inherited from class LMDB::Database
==(other : self)
==,
[](key)
[],
[]=(key, value)
[]=,
[]?(key)
[]?,
clear
clear,
cursor(&)cursor cursor, delete(key : String | Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _)) forall K
delete(key : K) forall K delete, do_close do_close, each(&)
each each, each_key(&) each_key, environment : Environment environment, flags : Flag flags, get(key : String | Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _)) : Value forall K
get(key : K) : Value forall K get, get?(key : String | Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _)) : Value | Nil forall K
get?(key : K) : Value | Nil forall K get?, put(key : String | Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _), value : String | Pointer(V) | Slice(V) | Array(V) | StaticArray(V, _), flags : PutFlags = PutFlags::None) forall K, V
put(key : String | Pointer(K) | Slice(K) | Array(K) | StaticArray(K, _), val : V, flags : PutFlags = PutFlags::None) forall K, V
put(key : K, val : String | Pointer(V) | Slice(V) | Array(V) | StaticArray(V, _), flags : PutFlags = PutFlags::None) forall K, V
put(key : K, val : V, flags : PutFlags = PutFlags::None) forall K, V put, size size, stat stat, to_unsafe : UInt32 to_unsafe
Constructor methods inherited from class LMDB::Database
new(environment : Environment, transaction : AbstractTransaction, flags : Flag = Flag::None)new(environment : Environment, name : String, transaction : AbstractTransaction, flags : Flag = Flag::None) new
Instance methods inherited from module LMDB::Disposable
close
close,
closed?
closed?
Constructor Detail
Instance Method Detail
Create and yields a AbstractCursor to iterate through self, closed when the
block goes out of scope.
The created cursor is associated with the current transaction and self.
It cannot be used after the database is closed, nor when the transaction
has ended. A cursor in a Transaction can be closed before its
transaction ends, and will otherwise be closed when its transaction ends.
A cursor in a ReadOnlyTransaction must be closed explicitly, before or
after its transaction ends. It can be reused with Cursor#renew before
finally closing it.
Must return an Iterator over the elements in this collection.
ditto
ditto