ledisdb/vendor/gomdb
siddontang b36d4aba37 move some pkgs to vendor
godep can not handle some pkgs which have build tags

So we put these into vendor explicitly
2015-03-14 10:57:18 +08:00
..
LICENSE move some pkgs to vendor 2015-03-14 10:57:18 +08:00
README.md move some pkgs to vendor 2015-03-14 10:57:18 +08:00
bench_test.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
cursor.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
env.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
env_test.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
error_test.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
example_test.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
lmdb.h move some pkgs to vendor 2015-03-14 10:57:18 +08:00
mdb.c move some pkgs to vendor 2015-03-14 10:57:18 +08:00
mdb.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
mdb_test.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
midl.c move some pkgs to vendor 2015-03-14 10:57:18 +08:00
midl.h move some pkgs to vendor 2015-03-14 10:57:18 +08:00
txn.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
val.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00
val_test.go move some pkgs to vendor 2015-03-14 10:57:18 +08:00

README.md

gomdb

Go wrapper for OpenLDAP Lightning Memory-Mapped Database (LMDB). Read more about LMDB here: http://symas.com/mdb/

GoDoc available here: http://godoc.org/github.com/szferi/gomdb

Build

go get github.com/szferi/gomdb

There is no dependency on LMDB dynamic library.

On FreeBSD 10, you must explicitly set CC (otherwise it will fail with a cryptic error), for example:

CC=clang go test -v

TODO

  • write more documentation
  • write more unit test
  • benchmark
  • figure out how can you write go binding for MDB_comp_func and MDB_rel_func
  • Handle go *Cursor close with txn.Commit and txn.Abort transparently