18 #ifndef PQXX_H_PREPARED_STATEMENT
19 #define PQXX_H_PREPARED_STATEMENT
21 #include "pqxx/compiler-public.hxx"
22 #include "pqxx/compiler-internal-pre.hxx"
24 #include "pqxx/internal/statement_parameters.hxx"
30 class connection_base;
31 class transaction_base;
123 class PQXX_LIBEXPORT invocation : internal::statement_parameters
143 { add_param(v,
true);
return *
this; }
150 { add_binary_param(v,
true);
return *
this; }
157 template<
typename T> invocation &
operator()(
const T &v,
bool nonnull)
158 { add_param(v, nonnull);
return *
this; }
166 { add_binary_param(v, nonnull);
return *
this; }
187 template<
typename T> invocation &
operator()(T *v,
bool nonnull=
true)
188 { add_param(v, nonnull);
return *
this; }
196 { add_param(v, nonnull);
return *
this; }
200 invocation &operator=(
const invocation &);
203 const PGSTD::string m_statement;
204 PGSTD::vector<PGSTD::string> m_values;
205 PGSTD::vector<bool> m_nonnull;
207 invocation &setparam(
const PGSTD::string &,
bool nonnull);
229 #include "pqxx/compiler-internal-post.hxx"
std::string definition
Text of prepared query.
Definition: prepared_statement.hxx:217
The home of all libpqxx classes, functions, templates, etc.
Definition: basic_connection.hxx:35
bool registered
Has this prepared statement been prepared in the current session?
Definition: prepared_statement.hxx:219
invocation & operator()(const char *v, bool nonnull=true)
Pass C-style string parameter, or null if pointer is null.
Definition: prepared_statement.hxx:195
invocation & operator()(const binarystring &v)
Pass binary parameter value for a BYTEA field.
Definition: prepared_statement.hxx:149
Internal representation of a prepared statement definition.
Definition: prepared_statement.hxx:214
invocation & operator()(const T &v)
Pass parameter value.
Definition: prepared_statement.hxx:142
invocation & operator()()
Pass null parameter.
Definition: prepared_statement.hxx:136
invocation & operator()(const T &v, bool nonnull)
Pass parameter value.
Definition: prepared_statement.hxx:157
invocation & operator()(const binarystring &v, bool nonnull)
Pass binary parameter value for a BYTEA field.
Definition: prepared_statement.hxx:165
Definition: binarystring.hxx:59
invocation & operator()(T *v, bool nonnull=true)
Pass C-style parameter string, or null if pointer is null.
Definition: prepared_statement.hxx:187
Result set containing data returned by a query or command.
Definition: result.hxx:81
Definition: transaction_base.hxx:133