summaryrefslogtreecommitdiff
path: root/lib/dbRecordSet.h
blob: 9bddc015586fd2fb8fc7db14ab828dcf486de361 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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