Current section
Files
Jump to
Current section
Files
lib/lean_lmdb/environment.ex
defmodule LeanLmdb.Environment do
@moduledoc """
An opaque handle to a shared LMDB environment.
Handles opened for the same canonical path and compatible options share one
native environment state in this BEAM OS process.
"""
@enforce_keys [:resource, :path]
defstruct [:resource, :path]
@opaque t :: %__MODULE__{resource: reference(), path: String.t()}
end