4 ms·
If you love C++ Template magic look at https://github.com/rbock/sqlpp11 https://github.com/rbock/sqlpp11 This allows "normal" C++ code, which by the compiler i
by johannes1234321 6y ago
If you love C++ Template magic look at https://github.com/rbock/sqlpp11 https://github.com/rbock/sqlpp11
This allows "normal" C++ code, which by the compiler is converted into the query string, allowing code like
for (const auto& row : db(select(all_of(foo)).from(foo).where(foo.hasFun or foo.name == "joker")))
{
int64_t id = row.id; // numeric fields are implicitly convertible to numeric c++ types
}
(Random pick from the README)