NuDB icon indicating copy to clipboard operation
NuDB copied to clipboard

Add 'Fetch' command to nudb tool

Open MarkusTeufelberger opened this issue 8 years ago • 4 comments

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

MarkusTeufelberger avatar Sep 27 '16 08:09 MarkusTeufelberger

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

vinniefalco avatar Sep 27 '16 12:09 vinniefalco

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

MarkusTeufelberger avatar Sep 27 '16 17:09 MarkusTeufelberger

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?

vinniefalco avatar Sep 27 '16 17:09 vinniefalco

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

MarkusTeufelberger avatar Sep 27 '16 17:09 MarkusTeufelberger