cockroachdb / c-rocksdb

🚫 DEPRECATED

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RocksDB

This is a go-gettable version of the RocksDB C++ library for use in Go code that needs to link against the C++ RocksDB library but wants to integrate with go get and go build.

To use in your project you need to import the package and set appropriate cgo flag directives:

import _ "github.com/cockroachdb/c-rocksdb"

// #cgo CXXFLAGS: -std=c++11
// #cgo CPPFLAGS: -I<relative-path>/c-rocksdb/internal/include
// #cgo darwin LDFLAGS: -Wl,-undefined -Wl,dynamic_lookup
// #cgo !darwin LDFLAGS: -Wl,-unresolved-symbols=ignore-all
import "C"

To update the upstream version of RocksDB you'll want to follow the instructions in and run ./import.sh.

About

🚫 DEPRECATED


Languages

Language:C++ 82.3%Language:Java 9.4%Language:Perl 2.5%Language:Shell 1.6%Language:C 1.0%Language:Makefile 0.9%Language:Python 0.6%Language:PHP 0.5%Language:CSS 0.4%Language:HTML 0.4%Language:CMake 0.3%Language:PowerShell 0.1%Language:Ruby 0.1%Language:JavaScript 0.0%Language:Go 0.0%