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:
parent
6677266bf5
commit
4ef00a03b2
@ -189,6 +189,19 @@ namespace sqlpp
|
|||||||
(void) swallow{(Policies::template _methods_t<detail::statement_policies_t<Db, Policies...>>::_check_consistency(), 0)...};
|
(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);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user