blob: e9d56c7df2f2793a0efe984ebda79367b12c6699 (
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
|
#ifndef ODBC_SELECTCOMMAND_H
#define ODBC_SELECTCOMMAND_H
#include "odbc-command.h"
#include <selectcommand.h>
namespace ODBC {
class Column;
class SelectCommand : public Command, public DB::SelectCommand {
public:
SelectCommand(const Connection &, const std::string & sql);
~SelectCommand();
bool fetch() override;
void execute() override;
private:
bool fetch(SQLSMALLINT orientation = SQL_FETCH_NEXT, SQLLEN offset = 0);
using ColumnPtr = std::shared_ptr<Column>;
using Columns = std::set<Column *>;
Columns largeColumns;
};
}
#endif
|