From f634bafc38bb948e41f829b16f03e2f0b8ee8f93 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 30 Apr 2015 00:27:27 +0100 Subject: Adds support for SQLite, SQLite mocking and some basic tests --- libsqlitepp/modifycommand.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 libsqlitepp/modifycommand.h (limited to 'libsqlitepp/modifycommand.h') diff --git a/libsqlitepp/modifycommand.h b/libsqlitepp/modifycommand.h new file mode 100644 index 0000000..ffb1205 --- /dev/null +++ b/libsqlitepp/modifycommand.h @@ -0,0 +1,25 @@ +#ifndef SQLITE_MODIFYCOMMAND_H +#define SQLITE_MODIFYCOMMAND_H + +#include "../libdbpp/modifycommand.h" +#include "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); + + private: + void prepare() const; + mutable bool prepared; + }; +} + +#endif + + + -- cgit v1.2.3