@hackage lmdb-simple0.4.0.0
Simple API for LMDB
Categories
License
BSD-3-Clause
Maintainer
rob@mars.org
Links
Versions
Installation
Dependencies (4)
- base >=4.7 && <5
- bytestring >=0.10 && <0.11
- lmdb >=0.2 && <0.3
- serialise >=0.2 && <0.3 Show all…
Dependents (1)
@hackage/dfinity-radix-tree
Simple Haskell API for LMDB
This package allows you to store arbitrary Haskell values in and retrieve them from a persistent Lightning Memory-mapped Database on disk.
LMDB is a high-performance ACID-compliant no-maintenance read-optimized
key-value store. Any Haskell type with a Serialise
instance can
be stored in an LMDB database, or used as a key to index one.
This package provides a few different APIs for using LMDB:
-
The basic API provides transactional
put
andget
functions to store and retrieve values from an LMDB database. -
The extended API provides many functions similar to those in
Data.Map
, e.g.lookup
,insert
,delete
,foldr
, and so on. -
The
View
API provides a read-only snapshot of an LMDB database that can be queried from pure code. -
The
DBRef
API provides a mutable variable similar toIORef
that is tied to a particular key in an LMDB database.