0
0
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:
rbock 2017-10-21 19:03:01 +02:00
parent a34de67648
commit f3b915cdc9

View File

@ -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;
}