sqlitemap is a lightweight C++ wrapper around SQLite that provides a simple, map-like interface. It’s designed to make working with key-value storage easy and convenient — similar to how sqlitedict works in the Python world.
sqlitemap is distributed under the MIT license, without any warranty.
Features
- Persistent key-value storage using SQLite
- Easy-to-use map-like interface in C++
- Minimal dependencies (just requires SQLite)
Example
#include <bw/sqlitemap/sqlitemap.hpp>
int main()
{
bw::sqlitemap::sqlitemap db("example.db");
db["hello"] = "world";
std::string value = db["hello"];
std::cout << value << std::endl;
}