Skip to content
/ gomdb Public
forked from szferi/gomdb

Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database

License

Notifications You must be signed in to change notification settings

armon/gomdb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

git clone -b mdb.master --single-branch git://git.openldap.org/openldap.git
cd openldap/libraries/liblmdb
make
make install

It will install to /usr/local

export LD_LIBRARY_PATH=/usr/local/lib

go test -v

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

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

About

Go wrapper for LMDB - OpenLDAP Lightning Memory-Mapped Database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.6%
  • Go 5.4%