diff options
Diffstat (limited to 'libpqpp/pq-column.h')
-rw-r--r-- | libpqpp/pq-column.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libpqpp/pq-column.h b/libpqpp/pq-column.h index 08e66a6..f6050ea 100644 --- a/libpqpp/pq-column.h +++ b/libpqpp/pq-column.h @@ -15,6 +15,13 @@ namespace PQ { void apply(DB::HandleField &) const override; protected: + template<typename T> + inline T valueAs() const { return *(T*)(value()); } + template<typename T> + inline T * valueAsPtr() const { return (T*)(value()); } + const char * value() const; + int length() const; + const SelectBase * sc; const Oid oid; // Buffer for PQunescapeBytea |