Current section
Files
Jump to
Current section
Files
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