huxerui.sqlite
importSQLite persistence library with typed records, queries, transactions, and migrations for HuxerUI
import huxerui.sqlite;
Module name read from the upstream `export module` declaration in modules/sqlite.cppm.
mcpp add huxerui.sqlite@0.1.1
Usage
From this repository's own test project — built and run by CI, not written for the website.
import std;
import huxerui.sqlite;
namespace sqlite = huxerui::sqlite;
namespace {
struct Record {
std::int64_t id = 0;
std::string name;
double score = 0.0;
bool active = true;
};
const sqlite::Table<Record> records{
"records",
sqlite::Column<&Record::id>{"id", sqlite::PrimaryKey{}, sqlite::AutoIncrement{}},
sqlite::Column<&Record::name>{"name", sqlite::Unique{}},
sqlite::Column<&Record::score>{"score"},
sqlite::Column<&Record::active>{"active", sqlite::Default{true}},
};
// …
tests/examples/huxerui-sqlite/tests/sqlite.cpp · project tests/examples/huxerui-sqlite
Build · upstream manifest
- modules
huxerui.sqlite- targets
huxerui_sqlite (lib), sqlite (lib)- language
c++23- manifest version
0.1.1- dependencies
huxerui- source
https://raw.githubusercontent.com/HuxerUI/Lib-SQLite/v0.1.1/mcpp.toml
Versions
| Version | Platforms | Mirrors | sha256 |
|---|---|---|---|
0.1.1 latest |
LinuxWindowsmacOS | source | e4c7a02ae508… |