11 #ifndef PQXX_H_PREPARED_STATEMENT 12 #define PQXX_H_PREPARED_STATEMENT 14 #include "pqxx/compiler-public.hxx" 15 #include "pqxx/compiler-internal-pre.hxx" 17 #include "pqxx/internal/statement_parameters.hxx" 19 #include "pqxx/types.hxx" 30 class PQXX_LIBEXPORT
invocation : internal::statement_parameters
50 { add_param(v,
true);
return *
this; }
57 { add_binary_param(v,
true);
return *
this; }
65 { add_param(v, nonnull);
return *
this; }
73 { add_binary_param(v, nonnull);
return *
this; }
84 { add_param(v, nonnull);
return *
this; }
92 { add_param(v, nonnull);
return *
this; }
96 const std::string m_statement;
97 std::vector<std::string> m_values;
98 std::vector<bool> m_nonnull;
100 invocation &setparam(
const std::string &,
bool nonnull);
112 bool registered =
false;
122 #include "pqxx/compiler-internal-post.hxx" Binary data corresponding to PostgreSQL's "BYTEA" binary-string type.
Definition: binarystring.hxx:53
std::string definition
Text of prepared query.
Definition: prepared_statement.hxx:110
invocation & operator()(const T &v)
Pass parameter value.
Definition: prepared_statement.hxx:49
Helper class for passing parameters to, and executing, prepared statements.
Definition: prepared_statement.hxx:30
The home of all libpqxx classes, functions, templates, etc.
Definition: array.hxx:22
invocation & operator()(const char *v, bool nonnull=true)
Pass C-style string parameter, or null if pointer is null.
Definition: prepared_statement.hxx:91
invocation & operator()(const binarystring &v, bool nonnull)
Pass binary parameter value for a BYTEA field.
Definition: prepared_statement.hxx:72
invocation & operator()(const binarystring &v)
Pass binary parameter value for a BYTEA field.
Definition: prepared_statement.hxx:56
Result set containing data returned by a query or command.
Definition: result.hxx:67
Interface definition (and common code) for "transaction" classes.
Definition: transaction_base.hxx:130
invocation & operator()(const T &v, bool nonnull)
Pass parameter value.
Definition: prepared_statement.hxx:64
Internal representation of a prepared statement definition.
Definition: prepared_statement.hxx:107
invocation & operator()()
Pass null parameter.
Definition: prepared_statement.hxx:43
invocation & operator()(T *v, bool nonnull=true)
Pass C-style parameter string, or null if pointer is null.
Definition: prepared_statement.hxx:83