|
|
hai 1 mes | |
|---|---|---|
| .. | ||
| .gitignore | hai 1 mes | |
| API.md | hai 1 mes | |
| README.md | hai 1 mes | |
| binding.gyp | hai 1 mes | |
| db_wrapper.cc | hai 1 mes | |
| db_wrapper.h | hai 1 mes | |
| rdb | hai 1 mes | |
| rdb.cc | hai 1 mes | |
| unit_test.js | hai 1 mes | |
RDB is a NodeJS-based shell interface to RocksDB. It can also be used as a JavaScript binding for RocksDB within a Node application.
NOTE: If your default python binary is not a version of python2, add
the arguments --python /path/to/python2 to the node-gyp commands.
Make sure you have the static library (i.e. "librocksdb.a") in the root
directory of your rocksdb installation. If not, cd there and run
make static_lib.
Run node-gyp configure to generate the build.
Run node-gyp build to compile RDB.
Assuming everything compiled correctly, you can run the rdb executable
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 RDB.
See API.md for how to use RocksDB from the shell.