mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Renamed query -> statement
This commit is contained in:
parent
dfcd372611
commit
4869758e35
@ -36,7 +36,7 @@ namespace sqlpp
|
||||
struct prepared_insert_t
|
||||
{
|
||||
using _parameter_list_t = typename Insert::_parameter_list_t;
|
||||
using _prepared_query_t = typename Db::_prepared_query_t;
|
||||
using _prepared_statement_t = typename Db::_prepared_statement_t;
|
||||
|
||||
auto run(Db& db) const
|
||||
-> size_t
|
||||
@ -46,11 +46,11 @@ namespace sqlpp
|
||||
|
||||
void _bind_params() const
|
||||
{
|
||||
params._bind(_prepared_query);
|
||||
params._bind(_prepared_statement);
|
||||
}
|
||||
|
||||
_parameter_list_t params;
|
||||
mutable _prepared_query_t _prepared_query;
|
||||
mutable _prepared_statement_t _prepared_statement;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace sqlpp
|
||||
struct prepared_remove_t
|
||||
{
|
||||
using _parameter_list_t = typename Remove::_parameter_list_t;
|
||||
using _prepared_query_t = typename Db::_prepared_query_t;
|
||||
using _prepared_statement_t = typename Db::_prepared_statement_t;
|
||||
|
||||
auto run(Db& db) const
|
||||
-> size_t
|
||||
@ -46,11 +46,11 @@ namespace sqlpp
|
||||
|
||||
void _bind_params() const
|
||||
{
|
||||
params._bind(_prepared_query);
|
||||
params._bind(_prepared_statement);
|
||||
}
|
||||
|
||||
_parameter_list_t params;
|
||||
mutable _prepared_query_t _prepared_query;
|
||||
mutable _prepared_statement_t _prepared_statement;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ namespace sqlpp
|
||||
using _result_row_t = typename Select::_result_row_t;
|
||||
using _parameter_list_t = typename Select::_parameter_list_t;
|
||||
using _dynamic_names_t = typename Select::_dynamic_names_t;
|
||||
using _prepared_query_t = typename Db::_prepared_query_t;
|
||||
using _prepared_statement_t = typename Db::_prepared_statement_t;
|
||||
|
||||
auto run(Db& db) const
|
||||
-> result_t<decltype(db.run_prepared_select(*this)), _result_row_t>
|
||||
@ -48,12 +48,12 @@ namespace sqlpp
|
||||
|
||||
void _bind_params() const
|
||||
{
|
||||
params._bind(_prepared_query);
|
||||
params._bind(_prepared_statement);
|
||||
}
|
||||
|
||||
_parameter_list_t params;
|
||||
_dynamic_names_t _dynamic_names;
|
||||
mutable _prepared_query_t _prepared_query;
|
||||
mutable _prepared_statement_t _prepared_statement;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace sqlpp
|
||||
struct prepared_update_t
|
||||
{
|
||||
using _parameter_list_t = typename Update::_parameter_list_t;
|
||||
using _prepared_query_t = typename Db::_prepared_query_t;
|
||||
using _prepared_statement_t = typename Db::_prepared_statement_t;
|
||||
|
||||
auto run(Db& db) const
|
||||
-> size_t
|
||||
@ -46,11 +46,11 @@ namespace sqlpp
|
||||
|
||||
void _bind_params() const
|
||||
{
|
||||
params._bind(_prepared_query);
|
||||
params._bind(_prepared_statement);
|
||||
}
|
||||
|
||||
_parameter_list_t params;
|
||||
mutable _prepared_query_t _prepared_query;
|
||||
mutable _prepared_statement_t _prepared_statement;
|
||||
};
|
||||
|
||||
}
|
||||
|
2
include/sqlpp11/vendor/interpretable.h
vendored
2
include/sqlpp11/vendor/interpretable.h
vendored
@ -72,7 +72,7 @@ namespace sqlpp
|
||||
template<typename T>
|
||||
struct _impl_t: public _impl_base
|
||||
{
|
||||
static_assert(not make_parameter_list_t<T>::type::size::value, "parameters not supported in dynamic query parts");
|
||||
static_assert(not make_parameter_list_t<T>::type::size::value, "parameters not supported in dynamic statement parts");
|
||||
_impl_t(const T& t):
|
||||
_t(t)
|
||||
{}
|
||||
|
2
include/sqlpp11/vendor/named_interpretable.h
vendored
2
include/sqlpp11/vendor/named_interpretable.h
vendored
@ -77,7 +77,7 @@ namespace sqlpp
|
||||
template<typename T>
|
||||
struct _impl_t: public _impl_base
|
||||
{
|
||||
static_assert(not make_parameter_list_t<T>::type::size::value, "parameters not supported in dynamic query parts");
|
||||
static_assert(not make_parameter_list_t<T>::type::size::value, "parameters not supported in dynamic statement parts");
|
||||
_impl_t(const T& t):
|
||||
_t(t)
|
||||
{}
|
||||
|
Loading…
Reference in New Issue
Block a user