mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Add new example to custom_query tests
This commit is contained in:
parent
a34de67648
commit
f3b915cdc9
@ -69,5 +69,11 @@ int CustomQuery(int, char* [])
|
||||
auto i = db(c);
|
||||
static_assert(std::is_integral<decltype(i)>::value, "insert yields an integral value");
|
||||
|
||||
for (const auto& row :
|
||||
db(custom_query(sqlpp::verbatim("PRAGMA user_version")).with_result_type_of(select(all_of(t)))))
|
||||
{
|
||||
(void)row.alpha;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user