summaryrefslogtreecommitdiff
path: root/libmysqlpp/my-selectcommand.h
blob: ddfcffbc319a08fc70daa3899e20e1264b6a59fd (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
#ifndef MY_SELECTCOMMAND_H
#define MY_SELECTCOMMAND_H

#include "my-command.h"
#include <selectcommand.h>
#include <string>

namespace MySQL {
	class Connection;
	class SelectCommand : public DB::SelectCommand, public Command {
	public:
		SelectCommand(const Connection *, const std::string & sql);

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

	private:
		bool prepared;
		bool executed;
		Binds fields;
	};
}

#endif