summaryrefslogtreecommitdiff
path: root/libsqlitepp/sqlite-modifycommand.h
blob: c71dd1f0ce11cd315771ffaa20be8dc9a52f8676 (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 SQLITE_MODIFYCOMMAND_H
#define SQLITE_MODIFYCOMMAND_H

#include <modifycommand.h>
#include "sqlite-command.h"

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

			unsigned int execute(bool) override;

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

#endif