summaryrefslogtreecommitdiff
path: root/libpqpp/pq-modifycommand.h
blob: ed8b622a742b48adfc0a23f7f10d96ffc79b9700 (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_MODIFYCOMMAND_H
#define PQ_MODIFYCOMMAND_H

#include <modifycommand.h>
#include "pq-command.h"
#include "pq-connection.h"

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

			unsigned int execute(bool) override;

		private:
			Connection::PreparedStatements::const_iterator prepare() const;
			const std::string pstmt;
	};
}

#endif