https://github.com/rubenv/gorocksdb
gorocksdb is a Go wrapper for RocksDB, embedded by default
https://github.com/rubenv/gorocksdb
go rocksdb
Last synced: about 1 year ago
JSON representation
gorocksdb is a Go wrapper for RocksDB, embedded by default
- Host: GitHub
- URL: https://github.com/rubenv/gorocksdb
- Owner: rubenv
- License: mit
- Created: 2017-02-09T16:39:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-09T08:10:47.000Z (about 9 years ago)
- Last Synced: 2025-04-02T06:43:12.050Z (over 1 year ago)
- Topics: go, rocksdb
- Language: Go
- Homepage: http://rocksdb.org
- Size: 165 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gorocksdb, a Go wrapper for RocksDB
[](https://travis-ci.org/rubenv/gorocksdb) [](http://godoc.org/github.com/rubenv/gorocksdb)
## Install
There exist two options to install gorocksdb.
You can use either a own shared library or you use the embedded RocksDB version from [CockroachDB](https://github.com/cockroachdb/c-rocksdb).
To install the embedded version (default, it might take a while):
go get github.com/rubenv/gorocksdb
If you want to go the way with the shared library you'll need to build
[RocksDB](https://github.com/facebook/rocksdb) before on your machine.
If you built RocksDB you can install gorocksdb now:
CGO_CFLAGS="-I/path/to/rocksdb/include" \
CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4" \
go get -tags=dynamic github.com/rubenv/gorocksdb
## Relation to [tecbot/gorocksdb](https://github.com/tecbot/gorocksdb)
This version of gorocksdb uses the embedded version by default.
The version by [tecbot](https://github.com/tecbot/gorocksdb) is still
considered the upstream: please submit fixes and pull requests there. I'll
periodically merge changes back to this repository.