summaryrefslogtreecommitdiff
path: root/libodbcpp/selectcommand.h
blob: 541cd08bdeb813fcd1a6f9bfc7e97e57f532b68b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef ODBC_SELECTCOMMAND_H
#define ODBC_SELECTCOMMAND_H

#include "command.h"

namespace ODBC {
	class Column;
	class SelectCommand : public Command {
			typedef std::vector<Column*> Columns;
		public:
			SelectCommand (const Connection &, const std::string & sql);
			~SelectCommand();
			bool				fetch();
			const Column &		operator[](unsigned int col) const;
			const Column &		operator[](const Glib::ustring &) const;
			unsigned int		columnCount() const;
			unsigned int		getOrdinal(const Glib::ustring &) const;
		private:
			void				execute();
			Columns				columns;			
	};
}

#endif