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
commit2798caa6c8737c4d745ccfa69bd291689ddf4a93 (patch)
treed4f937ac2495e386a1c9b104fc3b13781381bcb5 /libpqpp/pq-selectbase.h
parentRename SelectCommand to CursorSelectCommand (diff)
downloadlibdbpp-postgresql-2798caa6c8737c4d745ccfa69bd291689ddf4a93.tar.bz2
libdbpp-postgresql-2798caa6c8737c4d745ccfa69bd291689ddf4a93.tar.xz
libdbpp-postgresql-2798caa6c8737c4d745ccfa69bd291689ddf4a93.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
+