Registry / database / sqlite-modern-cpp

sqlite-modern-cpp

JSON →
library2023-12-03vcpkgunverified

The C++14 wrapper around sqlite library.

vcpkg install sqlite-modern-cpp
INSTALL
IMPORT
SIG · SQLITE-MODERN-CPP
S
sqlite-modern-cpp
databasecppv2023-12-03
harness data pending
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.

Agent activity
10 hits · last 30 days
node
8
Meta
1
OpenAI (training)
1
Resources

No resource links recorded.

sqlite-modern-cpp — pip install sqlite-modern-cpp · libregistry