summaryrefslogtreecommitdiff
path: root/libpqpp/pq-bulkselectcommand.h
blob: 9c1c51b89fdd9a0d320c143fee20abb7a4391bfe (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 PQ_BULKSELECTCOMMAND_H
#define PQ_BULKSELECTCOMMAND_H

#include "pq-prepared.h"
#include "pq-selectbase.h"
#include <map>
#include <vector>

namespace PQ {
	class Connection;
	class Column;
	class BulkSelectCommand : public SelectBase, public PreparedStatement {
	public:
		BulkSelectCommand(Connection *, const std::string & sql, const PQ::CommandOptionsCPtr & pqco,
				const DB::CommandOptionsCPtr &);

		bool fetch() override;
		void execute() override;

	private:
		mutable bool executed;
	};
}

#endif