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 | 5f48c2a56ff8a318978d1f6af5bc1c8d82ee98d4 (patch) | |
tree | 863d2c64dbf12328d0538c9b1642f1000533e547 /libpqpp/pq-modifycommand.h | |
parent | Support bulk selects which don't use cursors, always use of RETURNING (diff) | |
download | libdbpp-postgresql-5f48c2a56ff8a318978d1f6af5bc1c8d82ee98d4.tar.bz2 libdbpp-postgresql-5f48c2a56ff8a318978d1f6af5bc1c8d82ee98d4.tar.xz libdbpp-postgresql-5f48c2a56ff8a318978d1f6af5bc1c8d82ee98d4.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; }; } |