summaryrefslogtreecommitdiff
path: root/libpqpp/pq-selectbase.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 15:43:07 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-04-24 15:43:07 +0100
commit5886b037ecf017819406a11588b627d16e01e38f (patch)
treeb73b1c435436e039c4f3eb402a78382c629920ed /libpqpp/pq-selectbase.h
parentRename SelectCommand to CursorSelectCommand (diff)
downloadlibdbpp-postgresql-5886b037ecf017819406a11588b627d16e01e38f.tar.bz2
libdbpp-postgresql-5886b037ecf017819406a11588b627d16e01e38f.tar.xz
libdbpp-postgresql-5886b037ecf017819406a11588b627d16e01e38f.zip
Introduce select base for different kinds of select
Diffstat (limited to 'libpqpp/pq-selectbase.h')
-rw-r--r--libpqpp/pq-selectbase.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libpqpp/pq-selectbase.h b/libpqpp/pq-selectbase.h
new file mode 100644
index 0000000..217a9e7
--- /dev/null
+++ b/libpqpp/pq-selectbase.h
@@ -0,0 +1,20 @@
+#ifndef PQ_SELECTBASE_H
+#define PQ_SELECTBASE_H
+
+#include <libpq-fe.h>
+
+namespace PQ {
+ class SelectBase {
+ friend class Column;
+
+ protected:
+ SelectBase();
+ ~SelectBase() = default;
+
+ int nTuples, tuple;
+ PGresult * execRes;
+ };
+}
+
+#endif
+