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

Added free function versions of select_column_list and from

This commit is contained in:
rbock 2014-11-17 13:17:10 +01:00
parent e2a7cfa252
commit 6677266bf5
2 changed files with 10 additions and 0 deletions

View File

@ -220,6 +220,11 @@ namespace sqlpp
}
};
template<typename... T>
auto from(T&&... t) -> decltype(statement_t<void, no_from_t>().from(std::forward<T>(t)...))
{
return statement_t<void, no_from_t>().from(std::forward<T>(t)...);
}
}
#endif

View File

@ -420,6 +420,11 @@ namespace sqlpp
}
};
template<typename... T>
auto select_columns(T&&... t) -> decltype(statement_t<void, no_select_column_list_t>().columns(std::forward<T>(t)...))
{
return statement_t<void, no_select_column_list_t>().columns(std::forward<T>(t)...);
}
}
#endif