From 5389571e2db6b62ecc8e45b5e8bea1739ab67957 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 4 Jul 2021 12:48:02 +0100 Subject: Introduce the cursor concept Not implemented for PQ yet. --- lib/output/pq/pqStmt.cpp | 6 ++++++ lib/output/pq/pqStmt.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'lib/output/pq') diff --git a/lib/output/pq/pqStmt.cpp b/lib/output/pq/pqStmt.cpp index dc258b6..2265f64 100644 --- a/lib/output/pq/pqStmt.cpp +++ b/lib/output/pq/pqStmt.cpp @@ -40,6 +40,12 @@ namespace MyGrate::Output::Pq { return std::make_unique(std::move(res)); } + CursorPtr + PqPrepStmt::cursor() + { + throw std::logic_error("Not implemented"); + } + std::string PqPrepStmt::prepareAsNeeded(const char * const q, std::size_t n, PqConn * c) { diff --git a/lib/output/pq/pqStmt.h b/lib/output/pq/pqStmt.h index 6531180..887a326 100644 --- a/lib/output/pq/pqStmt.h +++ b/lib/output/pq/pqStmt.h @@ -27,6 +27,8 @@ namespace MyGrate::Output::Pq { RecordSetPtr recordSet() override; + CursorPtr cursor() override; + private: static std::string prepareAsNeeded(const char * const q, std::size_t n, PqConn * c); -- cgit v1.2.3