summaryrefslogtreecommitdiff
path: root/libpqpp/column.h
blob: 22ab755a266e5c2d3e6a60b98a5b03392c0bceee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef PG_COLUMN_H
#define PG_COLUMN_H

#include "../libdbpp/column.h"
#include <libpq-fe.h>

namespace PQ {
	class SelectCommand;
	class Column : public DB::Column {
		public:
			Column(const SelectCommand *, unsigned int field);

			bool isNull() const;
			void apply(DB::HandleField &) const;
			void rebind(DB::Command *, unsigned int) const;
		protected:
			const SelectCommand * sc;
			const Oid oid;
	};
}

#endif