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-prepared.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-prepared.h')
-rw-r--r-- | libpqpp/pq-prepared.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libpqpp/pq-prepared.h b/libpqpp/pq-prepared.h new file mode 100644 index 0000000..1f6e028 --- /dev/null +++ b/libpqpp/pq-prepared.h @@ -0,0 +1,18 @@ +#ifndef stuff +#define stuff + +#include "pq-command.h" + +namespace PQ { + class PreparedStatement : public Command { + protected: + PreparedStatement(Connection *, const std::string &, unsigned int); + virtual ~PreparedStatement() = default; + + const char * prepare() const; + mutable const char * pstmt; + }; +} + +#endif + |