summaryrefslogtreecommitdiff
path: root/libpqpp/pq-bulkselectcommand.h
blob: aeda42d1cc0f707322e4c9df581a7127d2389169 (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
26
27
28
29
#ifndef PQ_BULKSELECTCOMMAND_H
#define PQ_BULKSELECTCOMMAND_H

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

namespace PQ {
	class Connection;
	class Column;
	class BulkSelectCommand : public DB::SelectCommand, public SelectBase, public Command {
		public:
			BulkSelectCommand(Connection *, const std::string & sql, unsigned int no);
			virtual ~BulkSelectCommand();

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

		private:
			mutable bool executed;
			std::string preparedSql;
	};
}

#endif