#ifndef ODBC_SELECTCOMMAND_H #define ODBC_SELECTCOMMAND_H #include "odbc-command.h" #include #include #include #include #include namespace ODBC { class Connection; 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; using Columns = std::set; Columns largeColumns; }; } #endif