summaryrefslogtreecommitdiff
path: root/libpqpp/pq-selectbase.h
blob: f2edaa710929f85fca68aa57b212e2d74ff5c11a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once

#include "pq-command.h"
#include <libpq-fe.h>
#include <selectcommand.h>
#include <string>

namespace PQ {
	class SelectBase : public DB::SelectCommand {
		friend class Column;

	protected:
		SelectBase(const std::string & sql, const PQ::CommandOptionsCPtr & pqco);

		void createColumns();

		unsigned int nTuples, tuple;
		ResultPtr execRes;
		bool binary;
	};
}