From 5f48c2a56ff8a318978d1f6af5bc1c8d82ee98d4 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 24 Apr 2016 18:48:23 +0100 Subject: Use prepared statements for bulk selects --- libpqpp/pq-prepared.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libpqpp/pq-prepared.h (limited to 'libpqpp/pq-prepared.h') 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 + -- cgit v1.2.3