Doug Hoyte
Doug Hoyte
Thanks for the very detailed description. I added a section describing this to the docs for my fork of this project: https://github.com/hoytech/lmdbxx#cursor-double-free-issue
It looks like you are assuming your values will be NUL-terminated: printf("We got '%s'\nValue '%s'\n", k.data(), v.data()); But your `put`s above aren't writing the NUL byte. Don't use the C...
1) Make it so your keys increase every time you insert, or use a secondary index 2) I don't know, I'd need code to reproduce it. Make sure you are...
Every time you insert into your main table, you also insert into another table. In this secondary table, the key is an increasing integer, and the value is the key...
It's OK. What do you mean get the position? You can position the cursor directly to a know key with cursor ops like `MDB_SET`, or go to somewhere nearby with...
I have removed the convenience template functions in my fork of this project. Instead you use std::string_view, which should solve the issues in this thread. Here are some more details...
I have added this method to the cursor interface in my fork: https://github.com/hoytech/lmdbxx As well as del, I also added put and count.
Into the LMDB distribution proper, from symas? That is highly unlikely to ever happen, since it's a pure C project and I don't think they're very enthusiastic about C++. Also,...
In my obviously biased opinion, if you are OK with requiring a C++17 or higher compiler, you should use my fork since it has some important bugfixes.