Registry / database / sqlite-orm

sqlite-orm

JSON →
library1.9.1vcpkgunverified

SQLite ORM light header only library for modern C++

vcpkg install sqlite-orm
INSTALL
IMPORT
SIG · SQLITE-ORM
S
sqlite-orm
databasecppv1.9.1
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_orm/sqlite_orm.h
#include <sqlite_orm/sqlite_orm.h>

Creates a SQLite database with a User table, inserts a record, and retrieves all users.

#include <sqlite_orm/sqlite_orm.h> #include <iostream> struct User { int id; std::string name; }; int main() { using namespace sqlite_orm; auto storage = make_storage("test.db", make_table("users", make_column("id", &User::id, primary_key()), make_column("name", &User::name) ) ); storage.sync_schema(); storage.insert(User{0, "John"}); auto users = storage.get_all<User>(); for (auto &user : users) { std::cout << user.name << std::endl; } return 0; }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.9.1latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
38 hits · last 30 days
node
32
Amazon
1
OpenAI (training)
1
Resources

No resource links recorded.

sqlite-orm — pip install sqlite-orm · libregistry