summaryrefslogtreecommitdiff
path: root/lib/output/pq/pqRecordSet.h
blob: 2934d8424aeca6852b2f269f5f99289afbb473ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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