lmdb-safe
lmdb-safe copied to clipboard
A safe modern C++ wrapper of lmdb
* Avoid implicit signedness conversions where possible * Avoid c-style casts * Avoid warnings about bypassing virtual dispatch in destructors
First of all a big thanks to you for this library. I was able to remove about 1k lines of questionable code. I did make a few changes though to...
std::string_view is available with libcxx, even in C++11 mode. Use the proper macro to check it.
I tried running the basic-example.cc code. I have the latest version of Boost (on my path and tested), and G++ 9 (also tested). I will note, I'm not particularly familiar...
Hi there, thanks for the great job for this neat project. But I have a question in `lmdb-safe.cc`, line 30 - 31: ```c++ if(mdb_env_set_mapsize(d_env, 16ULL*4096*244140ULL)) // 4GB throw std::runtime_error("setting map...
this avoids a build error on FreeBSD. Tested in PowerDNS by @RalfvdEnden
This is supported by LMDB if the MDB_NOTLS flag is set on the environment, which it always is with lmdb-safe.
Currently, lmdb-safe strictly forbids concurrently using a reader and a writer in the same thread: https://github.com/ahupowerdns/lmdb-safe/blob/c0cc016f3a8caf401530dd50322aff3ed096b956/lmdb-safe.cc#L157-L158 However, from my reading of the documentation, this is fine to do with LMDB,...
My use-case is that I want to look up the nearest key with `.lower_bound` and then compare it, or the previous one with the key I searched for. If I...
If you look up a record using `lower_bound` and it is after the last key in the database; you can get a crash when trying to read or seek via...