From 56de3f5f9768396525669af327fd00d36e621ada 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