From ecd6a6aeb82e9206754d33a262dfeb4197211c40 Mon Sep 17 00:00:00 2001 From: Frank Park Date: Tue, 11 Apr 2017 01:09:51 -0400 Subject: [PATCH] Modify select.h to support connection_pool and pool_connection --- include/sqlpp11/select.h | 55 +++++++++++++++++++++++++++++++++++----- 1 file changed, 49 insertions(+), 6 deletions(-) diff --git a/include/sqlpp11/select.h b/include/sqlpp11/select.h index 824645c4..0cb79d25 100644 --- a/include/sqlpp11/select.h +++ b/include/sqlpp11/select.h @@ -45,6 +45,8 @@ #include #include +#include + namespace sqlpp { struct select_name_t @@ -95,18 +97,59 @@ namespace sqlpp return blank_select_t().columns(columns...); } - template - blank_select_t dynamic_select(const Database&) + template + blank_select_t dynamic_select(Args& ...) { - static_assert(std::is_base_of::value, "Invalid database parameter"); + static_assert(false, "Invalid database parameter"); return {}; } - template - auto dynamic_select(const Database&, Columns... columns) -> decltype(blank_select_t().columns(columns...)) + template