gorocksdb is a Go wrapper for RocksDB
Switch branches/tags
Nothing to show
Clone or download
Latest commit 8752a94 Oct 10, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore UCS-5061 | Support MemoryUsage API Sep 14, 2018
.travis.yml Review fix Oct 4, 2018
LICENSE fixed very old code style issues and made comments more lint friendly Jan 27, 2016
README.md Review fix Oct 4, 2018
array.go Implement MultiGet for column families Mar 23, 2018
backup.go fixed very old code style issues and made comments more lint friendly Jan 27, 2016
cache.go Add Cache.GetUsage, Cache.GetPinnedUsage May 31, 2017
cf_handle.go Implement MultiGet for column families Mar 23, 2018
cf_test.go Implement MultiGet for column families Mar 23, 2018
checkpoint.go comments Jun 12, 2017
checkpoint_test.go naming and checkpoint test Jun 10, 2017
compaction_filter.go two lists became one with a wrapper struct Jan 9, 2018
compaction_filter_test.go changed all tests to use github.com/facebookgo/ensure as testing pkg Jan 27, 2016
comparator.go two lists became one with a wrapper struct Jan 9, 2018
comparator_test.go changed all tests to use github.com/facebookgo/ensure as testing pkg Jan 27, 2016
cow.go Make go callback registry threadsafe Sep 18, 2017
cow_test.go Revert "added test for two lists with same lifecycle" Jan 9, 2018
db.go Implement MultiGet for column families Mar 23, 2018
db_external_file_test.go Add support for SSTFileWriter and IngestExternalFile May 11, 2017
db_test.go Implement multiget Mar 23, 2018
dbpath.go added dbpath Sep 20, 2017
doc.go Update description Jul 12, 2016
dynflag.go statically link on Linux when the "static" build tag is provided Aug 13, 2018
env.go fixed very old code style issues and made comments more lint friendly Jan 27, 2016
filter_policy.go two lists became one with a wrapper struct Jan 9, 2018
filter_policy_test.go changed all tests to use github.com/facebookgo/ensure as testing pkg Jan 27, 2016
gorocksdb.c changed the way how pointers are passed to cgo to fix issue with 1.6 Jan 29, 2016
gorocksdb.h changed the way how pointers are passed to cgo to fix issue with 1.6 Jan 29, 2016
iterator.go update SeekForPrev comment Mar 29, 2017
iterator_test.go changed all tests to use github.com/facebookgo/ensure as testing pkg Jan 27, 2016
memory_usage.go Review fix Oct 4, 2018
memory_usage_test.go UCS-5061 | Support MemoryUsage API Sep 14, 2018
merge_operator.go two lists became one with a wrapper struct Jan 9, 2018
merge_operator_test.go Make go callback registry threadsafe Sep 18, 2017
options.go options: add comments Aug 13, 2018
options_block_based_table.go updated options Nov 9, 2017
options_compaction.go fixed very old code style issues and made comments more lint friendly Jan 27, 2016
options_compression.go Update CompressionOptions to work with newest c-rocksdb Aug 2, 2016
options_env.go Add Destroy method for EnvOption May 11, 2017
options_flush.go fixed very old code style issues and made comments more lint friendly Jan 27, 2016
options_ingest.go fix comments Jan 9, 2018
options_read.go options: add readahead_size Aug 13, 2018
options_transaction.go comments Jun 12, 2017
options_transactiondb.go comments Jun 12, 2017
options_write.go fixed very old code style issues and made comments more lint friendly Jan 27, 2016
ratelimiter.go comment Jun 21, 2017
slice.go Implement multiget Mar 23, 2018
slice_transform.go two lists became one with a wrapper struct Jan 9, 2018
slice_transform_test.go changed all tests to use github.com/facebookgo/ensure as testing pkg Jan 27, 2016
snapshot.go added transaction Jun 9, 2017
sst_file_writer.go Add support for SSTFileWriter and IngestExternalFile May 11, 2017
staticflag_linux.go statically link on Linux when the "static" build tag is provided Aug 13, 2018
transaction.go add wrapper for transaction.GetForUpdate Aug 21, 2018
transactiondb.go comments Jun 12, 2017
transactiondb_test.go add wrapper for transaction.GetForUpdate Aug 21, 2018
util.go Update util.go Aug 20, 2018
write_batch.go rm unnecessary value/blob/xid distinction Dec 25, 2017
write_batch_test.go write batch record types, according to db/write_batch.cc ReadRecordFr… Dec 25, 2017

README.md

gorocksdb, a Go wrapper for RocksDB

Build Status GoDoc

Install

You'll need to build RocksDB v5.16+ on your machine.

After that, you can install gorocksdb using the following command:

CGO_CFLAGS="-I/path/to/rocksdb/include" \
CGO_LDFLAGS="-L/path/to/rocksdb -lrocksdb -lstdc++ -lm -lz -lbz2 -lsnappy -llz4 -lzstd" \
  go get github.com/tecbot/gorocksdb

Please note that this package might upgrade the required RocksDB version at any moment. Vendoring is thus highly recommended if you require high stability.

The embedded CockroachDB RocksDB is no longer supported in gorocksdb.