module

LMDB

Constants

TYPES = [Bool, Int8, Int16, Int32, Int64, Int128, UInt8, UInt16, UInt32, UInt64, UInt128, Float32, Float64, Char]

Supported types

VERSION = "0.1.0"

Class methods

check(code)
Source
library_version

Returns a tuple of integers describing the LMBD library version that the binding is linked against. The version of the binding itself is available from the VERSION constant.

Source
open(path : String, flags : Environment::Flag = env_flags(NoTls), mode = FileMode.new(420), max_dbs : Int = 0, map_size : Int = 0, &)

Open and yields an LMDB database Environment. The environment is closed when the block goes out of scope.

Example:

LMDB.open("mydbdir") do |env|
  # ...
end

See Environment#new.

Source

Macros

db_flags(*values)

Same as doing LMDB::Database::Flag.flag(*values)

Source
env_flags(*values)

Same as doing LMDB::Environment::Flag.flag(*values)

Source

Nested types