RDB - RocksDB Shell
- static RocksDB library (i.e. librocksdb.a)
- node (tested onv0.10.33, no guarantees on anything else!)
- python2 (for node-gyp; tested with 2.7.8)
NOTE: If your default
python binary is not a version of python2, add
--python /path/to/python2 to the
Make sure you have the static library (i.e. "librocksdb.a") in the root directory of your rocksdb installation. If not,
cdthere and run
node-gyp configureto generate the build.
node-gyp buildto compile RDB.
Running the shell
Assuming everything compiled correctly, you can run the
located in the root of the
tools/rdb directory to start the shell. The file is
just a shell script that runs the node shell and loads the constructor for the
RDB object into the top-level function
API.md for how to use RocksDB from the shell.