diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-04-24 18:48:23 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-04-24 18:48:23 +0100 |
commit | 56de3f5f9768396525669af327fd00d36e621ada (patch) | |
tree | 385bc028607b5d573a87ab2da861c06596fb61cf /libpqpp/pq-modifycommand.h | |
parent | Support bulk selects which don't use cursors, always use of RETURNING (diff) | |
download | libdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.tar.bz2 libdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.tar.xz libdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.zip |
Use prepared statements for bulk selects
Diffstat (limited to 'libpqpp/pq-modifycommand.h')
-rw-r--r-- | libpqpp/pq-modifycommand.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libpqpp/pq-modifycommand.h b/libpqpp/pq-modifycommand.h index 79593a1..ef50261 100644 --- a/libpqpp/pq-modifycommand.h +++ b/libpqpp/pq-modifycommand.h @@ -2,20 +2,16 @@ #define PQ_MODIFYCOMMAND_H #include <modifycommand.h> -#include "pq-command.h" +#include "pq-prepared.h" #include "pq-connection.h" namespace PQ { - class ModifyCommand : public DB::ModifyCommand, public Command { + class ModifyCommand : public DB::ModifyCommand, public PreparedStatement { public: ModifyCommand(Connection *, const std::string & sql, unsigned int no); virtual ~ModifyCommand(); unsigned int execute(bool) override; - - private: - const char * prepare() const; - mutable const char * pstmt; }; } |