diff options
Diffstat (limited to 'libpqpp/pq-selectbase.h')
-rw-r--r-- | libpqpp/pq-selectbase.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libpqpp/pq-selectbase.h b/libpqpp/pq-selectbase.h index 217a9e7..a6b199a 100644 --- a/libpqpp/pq-selectbase.h +++ b/libpqpp/pq-selectbase.h @@ -2,14 +2,17 @@ #define PQ_SELECTBASE_H #include <libpq-fe.h> +#include <selectcommand.h> namespace PQ { - class SelectBase { + class SelectBase : public DB::SelectCommand { friend class Column; protected: - SelectBase(); - ~SelectBase() = default; + SelectBase(const std::string & sql); + ~SelectBase(); + + void createColumns(PGresult *); int nTuples, tuple; PGresult * execRes; |