From 63b2ca0dbdae190941d60a55c9cff99d4a75a0e1 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Mon, 31 May 2021 13:18:17 +0100 Subject: Initial commit of prepstmt, selects, record sets This is full of holes, but all the basics are covered. --- lib/dbRecordSet.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lib/dbRecordSet.h (limited to 'lib/dbRecordSet.h') diff --git a/lib/dbRecordSet.h b/lib/dbRecordSet.h new file mode 100644 index 0000000..9bddc01 --- /dev/null +++ b/lib/dbRecordSet.h @@ -0,0 +1,19 @@ +#ifndef MYGRATE_DBRECORDSET_H +#define MYGRATE_DBRECORDSET_H + +#include +#include + +namespace MyGrate { + class RecordSet { + public: + virtual ~RecordSet() = default; + + virtual std::size_t rows() const = 0; + virtual std::size_t columns() const = 0; + virtual DbValue at(std::size_t, std::size_t) const = 0; + }; + using RecordSetPtr = std::unique_ptr; +} + +#endif -- cgit v1.2.3