Packages

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

Current section

Files

Jump to
lean_lmdb lib lean_lmdb environment.ex
Raw

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