Go C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.travis.yml Remove "embed" build tag and update README Jun 9, 2017
LICENSE fixed very old code style issues and made comments more lint friendly Jan 27, 2016
README.md Checkpoints require rocksdb 5.5 Jul 3, 2017
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 fixed very old code style issues and made comments more lint friendly Jan 27, 2016
cf_test.go column family support Sep 2, 2015
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 comments Jun 12, 2017
db_external_file_test.go Add support for SSTFileWriter and IngestExternalFile May 11, 2017
db_test.go added dbpath Sep 20, 2017
dbpath.go added dbpath Sep 20, 2017
doc.go Update description Jul 12, 2016
dynflag.go Remove "embed" build tag and update README Jun 9, 2017
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
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 fix comments Jan 9, 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 Add SetIterateUpperBound & SetPinData to ReadOptions Jun 7, 2017
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 changing MakeSlice to StringToSlice Jul 17, 2017
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
transaction.go comments Jun 12, 2017
transactiondb.go comments Jun 12, 2017
transactiondb_test.go naming and checkpoint test Jun 10, 2017
util.go cleanup Jan 8, 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.5+ 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.