implemented the first version of statement_cache
This commit is contained in:
@@ -12,7 +12,7 @@ namespace matador::backends::postgres {
|
||||
class postgres_statement final : public sql::statement_impl
|
||||
{
|
||||
public:
|
||||
postgres_statement(PGconn *db, PGresult *result, std::string name, const sql::query_context &query);
|
||||
postgres_statement(PGconn *db, std::string name, const sql::query_context &query);
|
||||
|
||||
utils::result<size_t, utils::error> execute() override;
|
||||
utils::result<std::unique_ptr<sql::query_result_impl>, utils::error> fetch() override;
|
||||
@@ -22,7 +22,6 @@ protected:
|
||||
|
||||
private:
|
||||
PGconn *db_{nullptr};
|
||||
PGresult *result_{nullptr};
|
||||
|
||||
std::string name_;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user