Added run and prepare to noop, allowing void custom queries

This commit is contained in:
rbock
2014-11-05 07:27:19 +01:00
parent ed7f1f1a93
commit 60042c2dd3
5 changed files with 123 additions and 7 deletions

View File

@@ -37,10 +37,15 @@ int main()
test::TabFoo f;
test::TabBar t;
auto c = custom_query(select(all_of(t)).from(t));
auto c = custom_query(select(all_of(t)).from(t), sqlpp::verbatim("INTO"), t);
std::cerr << serialize(c, printer).str() << std::endl;
db(c);
auto p = db.prepare(custom_query(select(all_of(t)).from(t).where(t.alpha > sqlpp::parameter(t.alpha))));
printer.reset();
auto x = custom_query(sqlpp::verbatim<sqlpp::boolean>("PRAGMA writeable_schema") == true);
std::cerr << serialize(x, printer).str() << std::endl;
return 0;
}