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
commit56de3f5f9768396525669af327fd00d36e621ada (patch)
tree385bc028607b5d573a87ab2da861c06596fb61cf /libpqpp/pq-prepared.h
parentSupport bulk selects which don't use cursors, always use of RETURNING (diff)
downloadlibdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.tar.bz2
libdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.tar.xz
libdbpp-postgresql-56de3f5f9768396525669af327fd00d36e621ada.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
+