libmdbx icon indicating copy to clipboard operation
libmdbx copied to clipboard

Support MessagePack for Keys & Values (just a comparison function)

Open erthink opened this issue 5 years ago • 2 comments

Actually only a comparison function for arbitrary msgpack messages is required.

erthink avatar Sep 06 '20 21:09 erthink

Why doesn't memcmp() work? What exactly do you need?

plq avatar Sep 15 '20 13:09 plq

Why doesn't memcmp() work? What exactly do you need?

MsgPack is (mostly) self-described data format. Therefore, the comparison function for arbitrary msgpack messages allows you to compare many data types with due account it's semantics, including tuples.

For example, this allows you to order set of values of different types: boolean, double, int32, uint64, float, and so on, by the single comparison function.

erthink avatar Sep 15 '20 17:09 erthink