Packages

Fast, safe, and ergonomic LMDB storage for Elixir, powered by Rust

Current section

Files

Jump to
lean_lmdb lib lean_lmdb database.ex
Raw

lib/lean_lmdb/database.ex

defmodule LeanLmdb.Database do
@moduledoc """
An opaque handle to a named binary database.
The handle retains its environment, so it remains valid independently of the
environment handle from which it was created or opened.
"""
alias LeanLmdb.Environment
@enforce_keys [:resource, :environment, :name]
defstruct [:resource, :environment, :name]
@opaque t :: %__MODULE__{
resource: reference(),
environment: Environment.t(),
name: binary()
}
end