{"repo":"linxGnu/grocksdb","free":true,"listed":false,"github":"https://github.com/linxGnu/grocksdb","clone":"git clone https://github.com/linxGnu/grocksdb.git","description":"RocksDB wrapper for Go. Support 10.x, 9.x, 8.x, 7.x, 6.x, etc","language":"Go","stars":398,"topics":["go","golang","rocksdb","embedded","wrapper","go-binding","static","static-library","no-defer"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"grocksdb, RocksDB wrapper for Go This is a Fork from tecbot/gorocksdb. I respect the author work and community contribution. The LICENSE still remains as upstream. Why I made a patched clone instead of PR: - Supports almost C API (unlike upstream). Catching up with latest version of Rocksdb as promise. - This fork contains no defer in codebase (my side project requires as less overhead as possible). This introduces loose convention of how/when to free c-mem, thus break the rule of tecbot/gorocksdb. Install Prerequisite - librocksdb - libsnappy - libz - liblz4 - libzstd - libbz2 (optional) Please follow this guide: https://github.com/facebook/rocksdb/blob/master/INSTALL.md to build above libs. Build After installing both rocksdb and grocksdb , you can build your app using the following commands: Or just: If your rocksdb was linked with bz2: Customize the build flags Currently, the default build flags without specifying CGO LDFLAGS or the corresponding environment variables are -lrocksdb -pthread -lstdc++ -ldl -lm -lzstd -llz4 -lz -lsnappy If you want to customize the build flags: 1. Use -tags grocksdb clean link to create a cleaner set of flags and build it based on the cleaner flag. The base build flags after using the tag are -lrocksdb -pthread -lstdc++ -ldl . 2. Use -tags grocksdb no link to ignore the build flags provided by the library and build it fully based on the custom flags. Usage See also: doc API Support Almost C API, excepts: - [ ] get db identity - [ ] putv/merg","default_branch":null,"files":null,"tree":[],"storefront":"/r/linxGnu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/linxGnu/grocksdb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}