summaryrefslogtreecommitdiff
path: root/lib/dbRecordSet.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-07-04 12:48:02 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-07-04 12:48:02 +0100
commit5389571e2db6b62ecc8e45b5e8bea1739ab67957 (patch)
tree77f66babcfcf584ebc2a1c013731e19eeccbef5c /lib/dbRecordSet.h
parentPush mysqldata at into base class (diff)
downloadmygrate-5389571e2db6b62ecc8e45b5e8bea1739ab67957.tar.bz2
mygrate-5389571e2db6b62ecc8e45b5e8bea1739ab67957.tar.xz
mygrate-5389571e2db6b62ecc8e45b5e8bea1739ab67957.zip
Introduce the cursor concept
Not implemented for PQ yet.
Diffstat (limited to 'lib/dbRecordSet.h')
-rw-r--r--lib/dbRecordSet.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/dbRecordSet.h b/lib/dbRecordSet.h
index a9da882..a217f12 100644
--- a/lib/dbRecordSet.h
+++ b/lib/dbRecordSet.h
@@ -49,6 +49,14 @@ namespace MyGrate {
RowView end() const;
};
using RecordSetPtr = std::unique_ptr<RecordSet>;
+
+ class Cursor {
+ public:
+ virtual ~Cursor() = default;
+
+ virtual bool fetch() = 0;
+ };
+ using CursorPtr = std::unique_ptr<Cursor>;
}
#endif