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/output/pq/pqRecordSet.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/output/pq/pqRecordSet.h')
-rw-r--r-- | lib/output/pq/pqRecordSet.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/output/pq/pqRecordSet.h b/lib/output/pq/pqRecordSet.h new file mode 100644 index 0000000..2934d84 --- /dev/null +++ b/lib/output/pq/pqRecordSet.h @@ -0,0 +1,25 @@ +#ifndef MYGRATE_OUTPUT_PQ_PQRECORDSET_H +#define MYGRATE_OUTPUT_PQ_PQRECORDSET_H + +#include "dbRecordSet.h" +#include "dbTypes.h" +#include "pqStmt.h" +#include <cstddef> + +namespace MyGrate::Output::Pq { + class PqRecordSet : public RecordSet { + public: + explicit PqRecordSet(ResPtr r); + + std::size_t rows() const override; + + std::size_t columns() const override; + + DbValue at(std::size_t row, std::size_t col) const override; + + private: + ResPtr res; + }; +} + +#endif |