summaryrefslogtreecommitdiff
path: root/libpqpp/pq-binarycolumn.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-06-05 18:53:22 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-06-05 18:53:22 +0100
commit19609c41b15a818df30508576f50fc0eddc11636 (patch)
treeb7b36a9e69689fd2be7c0660728af59eacb02d10 /libpqpp/pq-binarycolumn.h
parentAdd wrappers for PQgetvalue and PQgetlength in column to simplify access (diff)
downloadlibdbpp-postgresql-19609c41b15a818df30508576f50fc0eddc11636.tar.bz2
libdbpp-postgresql-19609c41b15a818df30508576f50fc0eddc11636.tar.xz
libdbpp-postgresql-19609c41b15a818df30508576f50fc0eddc11636.zip
Support fetching data in binary format (no numeric, datetime, interval support yet)
Diffstat (limited to 'libpqpp/pq-binarycolumn.h')
-rw-r--r--libpqpp/pq-binarycolumn.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/libpqpp/pq-binarycolumn.h b/libpqpp/pq-binarycolumn.h
new file mode 100644
index 0000000..14719a3
--- /dev/null
+++ b/libpqpp/pq-binarycolumn.h
@@ -0,0 +1,17 @@
+#ifndef PG_BINARY_COLUMN_H
+#define PG_BINARY_COLUMN_H
+
+#include "pq-column.h"
+
+namespace PQ {
+ class BinaryColumn : public Column {
+ public:
+ BinaryColumn(const SelectBase *, unsigned int field);
+
+ void apply(DB::HandleField &) const override;
+ };
+}
+
+#endif
+
+