summaryrefslogtreecommitdiff
path: root/libpqpp/pq-prepared.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 18:48:23 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 18:48:23 +0100
commit5f48c2a56ff8a318978d1f6af5bc1c8d82ee98d4 (patch)
tree863d2c64dbf12328d0538c9b1642f1000533e547 /libpqpp/pq-prepared.h
parentSupport bulk selects which don't use cursors, always use of RETURNING (diff)
downloadlibdbpp-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.h18
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
+