0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-11-15 20:31:16 +08:00

An alias for creating a new statement type

This commit is contained in:
rbock 2014-08-25 21:22:22 +02:00
parent f478e7c8e8
commit e59dc3862a
16 changed files with 17 additions and 15 deletions

View File

@ -140,7 +140,7 @@ namespace sqlpp
struct _methods_t
{
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_extra_tables_t, T>;
using _new_statement_t = new_statement<Policies, no_extra_tables_t, T>;
static void _check_consistency() {}

View File

@ -161,7 +161,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_from_t, T>;
using _new_statement_t = new_statement<Policies, no_from_t, T>;
static void _check_consistency() {}

View File

@ -170,7 +170,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_group_by_t, T>;
using _new_statement_t = new_statement<Policies, no_group_by_t, T>;
static void _check_consistency() {}

View File

@ -168,7 +168,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_having_t, T>;
using _new_statement_t = new_statement<Policies, no_having_t, T>;
static void _check_consistency() {}

View File

@ -329,7 +329,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_insert_value_list_t, T>;
using _new_statement_t = new_statement<Policies, no_insert_value_list_t, T>;
static void _check_consistency()
{

View File

@ -138,7 +138,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_into_t, T>;
using _new_statement_t = new_statement<Policies, no_into_t, T>;
static void _check_consistency()
{

View File

@ -207,7 +207,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_limit_t, T>;
using _new_statement_t = new_statement<Policies, no_limit_t, T>;
static void _check_consistency() {}

View File

@ -218,7 +218,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_offset_t, T>;
using _new_statement_t = new_statement<Policies, no_offset_t, T>;
static void _check_consistency() {}

View File

@ -170,7 +170,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_order_by_t, T>;
using _new_statement_t = new_statement<Policies, no_order_by_t, T>;
static void _check_consistency() {}

View File

@ -50,6 +50,8 @@ namespace sqlpp
template<typename Original, typename Needle, typename Replacement>
using update_policies_t = typename update_policies_impl<Original, Needle, Replacement>::type;
template<typename Policies, typename Needle, typename Replacement>
using new_statement = typename Policies::template _new_statement_t<Needle, Replacement>;
}

View File

@ -364,7 +364,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_select_column_list_t, T>;
using _new_statement_t = new_statement<Policies, no_select_column_list_t, T>;
static void _check_consistency() {}

View File

@ -169,7 +169,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_select_flag_list_t, T>;
using _new_statement_t = new_statement<Policies, no_select_flag_list_t, T>;
static void _check_consistency() {}

View File

@ -138,7 +138,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_single_table_t, T>;
using _new_statement_t = new_statement<Policies, no_single_table_t, T>;
static void _check_consistency() {}

View File

@ -165,7 +165,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_update_list_t, T>;
using _new_statement_t = new_statement<Policies, no_update_list_t, T>;
static void _check_consistency()
{

View File

@ -163,7 +163,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_using_t, T>;
using _new_statement_t = new_statement<Policies, no_using_t, T>;
static void _check_consistency() {}

View File

@ -220,7 +220,7 @@ namespace sqlpp
{
using _database_t = typename Policies::_database_t;
template<typename T>
using _new_statement_t = typename Policies::template _new_statement_t<no_where_t, T>;
using _new_statement_t = new_statement<Policies, no_where_t, T>;
static void _check_consistency()
{