#ifndef QUERY_POSTGRES_STATEMENT_HPP #define QUERY_POSTGRES_STATEMENT_HPP #include "matador/sql/interface/statement_impl.hpp" #include "postgres_parameter_binder.h" #include namespace matador::backends::postgres { class postgres_statement final : public sql::statement_impl { public: postgres_statement(PGconn *db, std::string name, const sql::query_context &query); utils::result execute() override; utils::result, utils::error> fetch() override; void reset() override; protected: utils::attribute_writer& binder() override; private: PGconn *db_{nullptr}; std::string name_; postgres_parameter_binder binder_; }; } #endif //QUERY_POSTGRES_STATEMENT_HPP