diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-31 13:18:17 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-05-31 13:18:17 +0100 |
commit | 63b2ca0dbdae190941d60a55c9cff99d4a75a0e1 (patch) | |
tree | d3766bcbc98fb5fb0fb2d8dddf2f194bedcb0325 /lib/dbRecordSet.h | |
parent | Map std::size_t to a sensible header (diff) | |
download | mygrate-63b2ca0dbdae190941d60a55c9cff99d4a75a0e1.tar.bz2 mygrate-63b2ca0dbdae190941d60a55c9cff99d4a75a0e1.tar.xz mygrate-63b2ca0dbdae190941d60a55c9cff99d4a75a0e1.zip |
Initial commit of prepstmt, selects, record sets
This is full of holes, but all the basics are covered.
Diffstat (limited to 'lib/dbRecordSet.h')
-rw-r--r-- | lib/dbRecordSet.h | 19 |
1 files changed, 19 insertions, 0 deletions
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 <dbTypes.h> +#include <memory> + +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<RecordSet>; +} + +#endif |