51 struct pg_conn* m_conn;
52 std::
string m_stmt_name;
55 std::vector<const
char*> m_param_values;
56 std::vector<
int> m_param_lengths;
57 std::vector<
int> m_param_formats;
58 std::vector<std::
string> m_string_storage;
59 std::vector<std::vector<
char>> m_blob_storage;
66 PreparedSTMT(const std::
string& name, const std::
string& query);
73 PreparedSTMT(std::
string&& name, std::
string&& query) noexcept;
80 void Bind(const
int& index, const std::nullptr_t& value) noexcept override;
87 void Bind(const
int& index, const
int& value) noexcept override;
94 void Bind(const
int& index, const
unsigned int& value) noexcept override;
101 void Bind(const
int& index, const int64_t& value) noexcept override;
108 void Bind(const
int& index, const uint64_t& value) noexcept override;
115 void Bind(const
int& index, const
double& value) noexcept override;
122 void Bind(const
int& index,
bool value) noexcept override;
129 void Bind(const
int& index, const std::
string& value) noexcept override;
136 void Bind(const
int& index, const std::vector<std::
byte>& value) noexcept override;
142 ExpectedRows DoExecute() override;
147 void Reset() noexcept override;
Prepared statement for PostgreSQL databases.
Definition prepared_stmt.hxx:16
PreparedSTMT(const PreparedSTMT &other)=delete
PreparedSTMT(PreparedSTMT &&other) noexcept=default
~PreparedSTMT() noexcept override=default
Forward declaration of libpq connection struct.