summaryrefslogtreecommitdiff
path: root/libpqpp/modifycommand.h
blob: 8f63a2eb7b6a8f9f885a2665fb8538fd701a2ec9 (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
#ifndef PQ_MODIFYCOMMAND_H
#define PQ_MODIFYCOMMAND_H

#include "../libdbpp/modifycommand.h"
#include "command.h"

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

			unsigned int execute(bool);

		private:
			const std::string stmntName;
			void prepare() const;
			mutable bool prepared;
	};
}

#endif