0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-16 04:47:18 +08:00

Added central _run/_prepare methods

This commit is contained in:
rbock 2014-11-17 15:03:34 +01:00
parent 6677266bf5
commit 4ef00a03b2

View File

@ -189,6 +189,19 @@ namespace sqlpp
(void) swallow{(Policies::template _methods_t<detail::statement_policies_t<Db, Policies...>>::_check_consistency(), 0)...};
}
template<typename Database>
auto _run(Database& db) const -> decltype(std::declval<_result_methods_t<statement_t>>()._run(db))
{
return _result_methods_t<statement_t>::_run(db);
}
template<typename Database>
auto _prepare(Database& db) const -> decltype(std::declval<_result_methods_t<statement_t>>()._prepare(db))
{
return _result_methods_t<statement_t>::_prepare(db);
}
};