class

Lmdb::Database

Inherits Lmdb::Base / Reference / Object

Constructors

new(env : Lmdb::Environment, name : String | Nil = nil, flags : Lmdb::Flags::Database = Lmdb::Flags::Database::None)

##/**@brief Open a database in the environment. *

  • A database handle denotes the name and parameters of a database,
  • independently of whether such a database exists. NOTE: There are numerous warnings in the h file against closing database handles Therefore I have not implented that call. def initialize(@handle : LibLmdb::MDB_dbi, @name : String, @env : Lmdb::Environment) @flags = nil end
Source

Instance methods

[](key)
Source
[]=(key, data)
Source
del(key)
Source
drop(delete_mode = 1)
Source
dupes_allowed?
Source
empty

This empties the database but keeps it in the environment and doesn't close the handle

Source
flags
Source
handle
Source
info

Returns information about the database

Source