package leveldb

  1. Overview
  2. Docs
OCaml bindings for Google's LevelDB library

Install

Dune Dependency

Authors

Maintainers

Sources

ocaml-leveldb-1.3.0.tar.gz
sha256=f88dd6054c3a53187535173caff2370a60ebe3e9233c6098882db74ea38a109a
sha512=bf867ffe9746ee189e7303d76c30bd2eb9bd202e2d170a3608d00458437dea8195b5cb3097e422c3014842bb6dccdda26c7f0e96da8e2b350b44cd70e5b12f7c

README.md.html

ocaml-leveldb: OCaml bindings for Google's LevelDB

Copyright (c) 2011-2021 Mauricio Fernandez mfp@acm.org

These bindings expose nearly the full LevelDB C++ API, including:

  • iterators

  • snapshots

  • batch updates

  • support for custom comparators

Blocking functions release the OCaml runtime system, allowing to:

  • run them in parallel with other OCaml code

  • perform multiple LevelDB operations in parallel

Requirements

  • OCaml >= 3.12.0

  • GCC with C++ frontend (g++)

  • dune to build

  • ounit2 for the unit tests

  • LevelDB (including dev package libleveldb-dev or similar)

  • Snappy (including dev package libsnappy-dev or similar)

Building

Just

$ dune build @install

should do. It will build both LevelDB and the OCaml bindings.

You can then install with

$ dune install

API documentation

Refer to src/levelDB.mli.

License

This software is dual-licensed as LGPL+static linking exception and MIT. Refer to LICENSE.MIT and LICENSE.LGPL+static.