Added template parameter Db to result_entry

This commit is contained in:
rbock
2014-02-21 07:24:07 +01:00
parent b7935b61d5
commit 8c8b95d14e
17 changed files with 67 additions and 57 deletions

View File

@@ -34,8 +34,8 @@
#include <iostream>
DbMock db = {};
DbMock::_serializer_context_t printer;
MockDb db = {};
MockDb::_serializer_context_t printer;
SQLPP_ALIAS_PROVIDER(kaesekuchen);
int main()
@@ -101,7 +101,7 @@ int main()
serialize(remove_from(t).using_(t).where(t.alpha == sqlpp::tvin(0)), printer).str();
// functions
serialize(sqlpp::value(7), printer).str();
sqlpp::serialize(sqlpp::value(7), printer).str();// FIXME: Maybe the vendor namespace is not a good idea? argument lives in namespace vendor
serialize(sqlpp::verbatim<sqlpp::detail::integral>("irgendwas integrales"), printer).str();
serialize(sqlpp::value_list(std::vector<int>({1,2,3,4,5,6,8})), printer).str();
serialize(exists(select(t.alpha).from(t)), printer).str();