heapwolf / ldb

A C++ REPL / CLI for LevelDB
MIT License
201 stars 23 forks source link

Add get_bin command to retrieve binary data without trailing \n #53

Open vi opened 6 years ago

vi commented 6 years ago

I'm not sure if this is a correct implementation. Related to #52.

heapwolf commented 6 years ago

I like this idea actually (more than setting the encoding, for this use case). Maybe we could take this a step further and print the hex value, ie:

>getbin foobar
[12 05 e4 6f 11 b5]