The lmdb-simple package

[ Tags: benchmark, bsd3, database, library ] [ Propose Tags ]

This package provides a simple API for using the Lightning Memory-mapped Database (LMDB).

[Skip to Readme]


Dependencies base (>=4.7 && <5), bytestring (==0.10.*), lmdb (==0.2.*), serialise (==0.1.*) [details]
License BSD3
Copyright © 2017 Robert Leslie
Author Rob Leslie
Category Database
Home page
Bug tracker
Source repository head: git clone
Uploaded Wed Aug 9 02:23:43 UTC 2017 by RobLeslie
Distributions NixOS:
Downloads 611 total (263 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2017-08-09 [all 1 reports]
Hackage Matrix CI




Maintainer's Corner

For package maintainers and hackage trustees

Readme for lmdb-simple-

[back to package description]

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 value 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 and get 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 to IORef that is tied to a particular key in an LMDB database.