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

#include <selectcommand.h>
#include "command.h"

namespace ODBC {
	class Column;
	class SelectCommand : public Command, public DB::SelectCommand {
		public:
			SelectCommand (const Connection &, const std::string & sql);
			~SelectCommand();
			bool				fetch();
			void				execute();

		private:
			bool				fetch(SQLSMALLINT orientation = SQL_FETCH_NEXT, SQLLEN offset = 0);
	};
}

#endif