Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
sqlite_modern_cpp.h
✓ #include <sqlite_modern_cpp.h>
Create an in-memory SQLite database, insert a row, and query it.
#include <sqlite_modern_cpp.h>
#include <iostream>
int main() {
try {
sqlite::database db(":memory:");
db << "CREATE TABLE foo (a integer, b string);";
db << "INSERT INTO foo VALUES (?, ?);" << 1 << "hello";
db << "SELECT a,b FROM foo;" >> [](int a, std::string b) {
std::cout << a << ' ' << b << std::endl;
};
} catch (std::exception& e) {
std::cerr << e.what() << std::endl;
}
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2023-12-03latest on vcpkg
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.