drycpp / lmdbxx

C++11 wrapper for the LMDB embedded B+ tree database library.
http://lmdbxx.sourceforge.net
The Unlicense
272 stars 89 forks source link

Nontemplate version of key-only dbi::get() #7

Open zyxxel opened 8 years ago

zyxxel commented 8 years ago

The templated version of key-only dbi::get() doesn't work with lmdb::val keys, since it packs the raw binar lmdb::val data into a second lmdb::val.

The current template methods are only safe with native C non-pointer data types.