mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-16 04:47:18 +08:00
An alias for creating a new statement type
This commit is contained in:
parent
f478e7c8e8
commit
e59dc3862a
@ -140,7 +140,7 @@ namespace sqlpp
|
|||||||
struct _methods_t
|
struct _methods_t
|
||||||
{
|
{
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -161,7 +161,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -168,7 +168,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -329,7 +329,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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()
|
static void _check_consistency()
|
||||||
{
|
{
|
||||||
|
@ -138,7 +138,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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()
|
static void _check_consistency()
|
||||||
{
|
{
|
||||||
|
@ -207,7 +207,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -218,7 +218,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -50,6 +50,8 @@ namespace sqlpp
|
|||||||
template<typename Original, typename Needle, typename Replacement>
|
template<typename Original, typename Needle, typename Replacement>
|
||||||
using update_policies_t = typename update_policies_impl<Original, Needle, Replacement>::type;
|
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>;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -364,7 +364,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -169,7 +169,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -165,7 +165,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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()
|
static void _check_consistency()
|
||||||
{
|
{
|
||||||
|
@ -163,7 +163,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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() {}
|
static void _check_consistency() {}
|
||||||
|
|
||||||
|
@ -220,7 +220,7 @@ namespace sqlpp
|
|||||||
{
|
{
|
||||||
using _database_t = typename Policies::_database_t;
|
using _database_t = typename Policies::_database_t;
|
||||||
template<typename 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()
|
static void _check_consistency()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user