mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-11-15 20:31:16 +08:00
Added inline keyword to several free non-template functions
This commit is contained in:
parent
9870d06652
commit
34e64b50d6
@ -91,11 +91,11 @@ namespace sqlpp
|
||||
return { s };
|
||||
}
|
||||
|
||||
template<typename Expression, typename Context>
|
||||
auto flatten(const Expression& exp, const Context& context) -> verbatim_t<value_type_of<Expression>>
|
||||
template<typename Expression, typename Db>
|
||||
auto flatten(const Expression& exp, Db& db) -> verbatim_t<value_type_of<Expression>>
|
||||
{
|
||||
static_assert(not make_parameter_list_t<Expression>::type::size::value, "parameters not supported in flattened expressions");
|
||||
context.clear();
|
||||
static_assert(not make_parameter_list_t<Expression>::size::value, "parameters are not allowed in flattened expressions");
|
||||
auto context = db.get_serializer_context();
|
||||
serialize(exp, context);
|
||||
return { context.str() };
|
||||
}
|
||||
@ -164,7 +164,7 @@ namespace sqlpp
|
||||
template<typename T>
|
||||
constexpr const char* get_sql_name(const T&)
|
||||
{
|
||||
return T::type::_name_t::_get_name();
|
||||
return T::_name_t::_get_name();
|
||||
}
|
||||
|
||||
|
||||
|
@ -94,7 +94,7 @@ namespace sqlpp
|
||||
no_into_t,
|
||||
no_insert_value_list_t>;
|
||||
|
||||
auto insert()
|
||||
inline auto insert()
|
||||
-> blank_insert_t<void>
|
||||
{
|
||||
return { blank_insert_t<void>() };
|
||||
|
@ -98,7 +98,7 @@ namespace sqlpp
|
||||
no_where_t<true>
|
||||
>;
|
||||
|
||||
auto remove()
|
||||
inline auto remove()
|
||||
-> blank_remove_t<void>
|
||||
{
|
||||
return { blank_remove_t<void>() };
|
||||
|
@ -79,7 +79,7 @@ namespace sqlpp
|
||||
no_offset_t>;
|
||||
|
||||
|
||||
blank_select_t<void> select() // FIXME: These should be constexpr
|
||||
inline blank_select_t<void> select() // FIXME: These should be constexpr
|
||||
{
|
||||
return { };
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ namespace sqlpp
|
||||
};
|
||||
|
||||
|
||||
verbatim_table_t verbatim_table(std::string name)
|
||||
inline verbatim_table_t verbatim_table(std::string name)
|
||||
{
|
||||
return { name };
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user