package lmdb

  1. Overview
  2. Docs
Bindings for LMDB, a fast in-file database with ACID transactions

Install

Dune Dependency

Authors

Maintainers

Sources

1.0.tar.gz
md5=0f16e523fedbc513827dcc6819e4654d
sha512=9c4da6b89d6ab025a5c2d773065ac4101c1fc30b0a63ac7e909dda38906905d25568288bc5d32ae7d860b0010d0488760a94fa4553163a1d5cffedcefbc3af1d

Description

Tags

clib:lmdb database

Published: 22 Apr 2020

README

OCaml-lmdb

The LMDB database is a fast in-file database that supports ACID transactions.

These bindings expose a typesafe yet low-overhead API. Both transactions and cursors are available. Database implementations are specialized both by keys and values. Two module are predefined: Lmdb.Db (string keys and string values) and Lmdb.IntDb (int keys and string values). New implementation (which can use special LMDB features such as multi-values) can be added via a functorial interface.

Please consult the documentation and a simple example.

let open Lmdb in
let env = Env.(create Rw ~flags:Flags.no_subdir ~max_maps:1) "mydb" in
let map = Map.create Nodup ~key:Conv.string ~value:Conv.string
	    ~name:"Camelidae" env in
Map.add map "Bactrian camel" "Elegant and beautiful animal with two humps."

Dependencies (4)

  1. dune-configurator build
  2. dune >= "1.2"
  3. bigstringaf
  4. ocaml >= "4.03"

Dev Dependencies (3)

  1. odoc with-doc
  2. benchmark with-test
  3. alcotest with-test

Used by

None

Conflicts

None