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

No updating value when key exists #18

Open ian-g-holm-intel opened 7 years ago

ian-g-holm-intel commented 7 years ago

Why is it that when I do a put with a key that already exists, it doesn't update the value for that key? Do I have to delete the old key/value before adding the new key/value?

ian-g-holm-intel commented 7 years ago

It appears that my val is not getting written to the db. But the dbi.put is returning true. Is there something special you have to do to use lmdb::val?