This package provides a Gerbil LevelDB driver using libleveldb
.
You need to have libleveldb
installed in your system.
$ sudo apt install libleveldb-dev
Install homebrew (if not already done):
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
then install leveldb:
$ brew install leveldb
On ARM64 architectures (M1...) Homebrew installs its bits in /opt/homebrew
. For some reason leveldb
does not provide support for pkg-config
. macOS users on ARM need to export CPPFLAGS
and LDFLAGS
for the compiler to find leveldb headers and library.
$ arch ## arm64
$ export CPPFLAGS=-I/opt/homebrew/include
$ export LDFLAGS=-L/opt/homebrew/lib
To install the package in your $GERBIL_PATH
(~/.gerbil
by default):
$ gerbil pkg install github.com/mighty-gerbils/gerbil-leveldb
To use bindings from this package:
(import :clan/db/leveldb)
(leveldb-error? ...)
Please document me!
(leveldb? ...)
Please document me!
(leveldb-open ...)
Please document me!
(leveldb-close ...)
Please document me!
(leveldb-put ...)
Please document me!
(leveldb-get ...)
Please document me!
(leveldb-delete ...)
Please document me!
(leveldb-write ...)
Please document me!
(leveldb-key? ...)
Please document me!
(leveldb-writebatch ...)
Please document me!
(leveldb-writebatch-clear ...)
Please document me!
(leveldb-writebatch-put ...)
Please document me!
(leveldb-writebatch-delete ...)
Please document me!
(leveldb-iterator ...)
Please document me!
(leveldb-iterator-close ...)
Please document me!
(leveldb-iterator-valid? ...)
Please document me!
(leveldb-iterator-seek-first ...)
Please document me!
(leveldb-iterator-seek-last ...)
Please document me!
(leveldb-iterator-seek ...)
Please document me!
(leveldb-iterator-next ...)
Please document me!
(leveldb-iterator-prev ...)
Please document me!
(leveldb-iterator-key ...)
Please document me!
(leveldb-iterator-value ...)
Please document me!
(leveldb-iterator-error ...)
Please document me!
(in-leveldb ...)
Please document me!
(in-leveldb-keys ...)
Please document me!
(leveldb-compact-range ...)
Please document me!
(leveldb-destroy-db ...)
Please document me!
(leveldb-repair-db ...)
Please document me!
(leveldb-options ...)
Please document me!
(leveldb-default-options ...)
Please document me!
(leveldb-read-options ...)
Please document me!
(leveldb-default-read-options ...)
Please document me!
(leveldb-write-options ...)
Please document me!
(leveldb-default-write-options ...)
Please document me!
© 2017-2023 The Gerbil Core Team and contributors; License: LGPLv2.1 and Apache 2.0
Originally written by vyzo.