cppalliance / NuDB

NuDB: A fast key/value insert-only database for SSD drives in C++11
Boost Software License 1.0
384 stars 59 forks source link

Add 'Fetch' command to nudb tool #38

Open MarkusTeufelberger opened 8 years ago

MarkusTeufelberger commented 8 years ago

Might be useful for external tools/scripts (e.g. inserting data, retreiving data and asserting that it is the same).

vinniefalco commented 8 years ago

This is great, but it would be even better as a pull request!

MarkusTeufelberger commented 8 years ago

I can try, but I'm neither very deep into modern C++ nor boost at the moment, so don't expect anything great...

vinniefalco commented 8 years ago

No worries, lets just design what such a feature might look like. How about

nudb fetch <dat-file> <key-file> <key>

Where <key> is a hexadecimal string?

MarkusTeufelberger commented 8 years ago

Yeah, that's about what I would be expecting. The command would then print the data (probably also in Hex) or an error message.