libpqxx
7.7.3
|
Functions | |
template<typename IT > | |
constexpr auto | make_dynamic_params (IT begin, IT end) |
Pass a number of statement parameters only known at runtime. More... | |
template<typename C > | |
constexpr auto | make_dynamic_params (C const &container) |
Pass a number of statement parameters only known at runtime. More... | |
template<typename C , typename ACCESSOR > | |
constexpr auto | make_dynamic_params (C &container, ACCESSOR accessor) |
Pass a number of statement parameters only known at runtime. More... | |
constexpr auto pqxx::prepare::make_dynamic_params | ( | IT | begin, |
IT | end | ||
) |
Pass a number of statement parameters only known at runtime.
When you call any of the exec_params
functions, the number of arguments is normally known at compile time. This helper function supports the case where it is not.
Use this function to pass a variable number of parameters, based on a sequence ranging from begin
to end
exclusively.
The technique combines with the regular static parameters. You can use it to insert dynamic parameter lists in any place, or places, among the call's parameters. You can even insert multiple dynamic sequences.
begin | A pointer or iterator for iterating parameters. |
end | A pointer or iterator for iterating parameters. |
constexpr auto pqxx::prepare::make_dynamic_params | ( | C const & | container | ) |
Pass a number of statement parameters only known at runtime.
When you call any of the exec_params
functions, the number of arguments is normally known at compile time. This helper function supports the case where it is not.
Use this function to pass a variable number of parameters, based on a container of parameter values.
The technique combines with the regular static parameters. You can use it to insert dynamic parameter lists in any place, or places, among the call's parameters. You can even insert multiple dynamic containers.
container | A container of parameter values. |
Start a block of deprecated code which may call other deprecated code.
Most compilers will emit warnings when deprecated code is invoked from non-deprecated code. But some compilers (notably gcc) will always emit the warning even when the calling code is also deprecated.
This header starts a block where those warnings are suppressed. It can be included inside a code block.
Always match the #include with a closing #include of "ignore-deprecated-post.hxx". To avoid mistakes, keep the enclosed area as small as possible.
End a code block started by "ignore-deprecated-pre.hxx".
constexpr auto pqxx::prepare::make_dynamic_params | ( | C & | container, |
ACCESSOR | accessor | ||
) |
Pass a number of statement parameters only known at runtime.
When you call any of the exec_params
functions, the number of arguments is normally known at compile time. This helper function supports the case where it is not.
Use this function to pass a variable number of parameters, based on a container of parameter values.
The technique combines with the regular static parameters. You can use it to insert dynamic parameter lists in any place, or places, among the call's parameters. You can even insert multiple dynamic containers.
container | A container of parameter values. |
accessor | For each parameter p , pass accessor(p) . |
Start a block of deprecated code which may call other deprecated code.
Most compilers will emit warnings when deprecated code is invoked from non-deprecated code. But some compilers (notably gcc) will always emit the warning even when the calling code is also deprecated.
This header starts a block where those warnings are suppressed. It can be included inside a code block.
Always match the #include with a closing #include of "ignore-deprecated-post.hxx". To avoid mistakes, keep the enclosed area as small as possible.
End a code block started by "ignore-deprecated-pre.hxx".