rocksdb/tools
gjain 92368ab8a2 Add db_dump tool to dump DB keys
Summary:
Create a tool to iterate through keys and dump values. Current options
as follows:

db_dump --start=[START_KEY] --end=[END_KEY] --max_keys=[NUM] --stats
[PATH]

START_KEY: First key to start at
END_KEY: Key to end at (not inclusive)
NUM: Maximum number of keys to dump
PATH: Path to leveldb DB

The --stats command line argument prints out the DB stats before dumping
the keys.

Test Plan:
- Tested with invalid args
- Tested with invalid path
- Used empty DB
- Used filled DB
- Tried various permutations of command line options

Reviewers: dhruba, heyongqiang

Reviewed By: dhruba

Differential Revision: https://reviews.facebook.net/D5643
2012-09-27 09:53:58 -07:00
..
shell Titile: a command line shell to read/write data from a leveldb thrift server 2012-08-23 09:41:05 -07:00
ldb.cc Add db_dump tool to dump DB keys 2012-09-27 09:53:58 -07:00
manifest_dump.cc Fix compiler warnings. Use uint64_t instead of uint. 2012-09-12 14:42:36 -07:00
sst_dump.cc Clean up compiler warnings generated by -Wall option. 2012-08-29 14:24:51 -07:00