29# ifndef GUM_NANODBC_PARSER_H
30# define GUM_NANODBC_PARSER_H
67 NanodbcParser(nanodbc::connection& connection,
const std::string& query);
86 const std::vector< std::string >&
current()
const;
98 void useNewQuery(nanodbc::connection& connexion,
const std::string& query);
103# ifndef DOXYGEN_SHOULD_SKIP_THIS
107 nanodbc::result _result_;
110 std::size_t _nb_line_{std::size_t(0)};
113 std::vector< std::string > _data_;
std::size_t nbColumns() const
returns the number of columns in the query result
virtual ~NanodbcParser()
destructor
bool next()
Gets the next line of the SQL stream and parses it.
NanodbcParser(nanodbc::connection &connection, const std::string &query)
constructor that executes an SQL query if the connection is active
std::size_t nbLine() const
returns the current line number within the query
NanodbcParser()
Default constructor: create a parser without being connected.
void useNewQuery(nanodbc::connection &connexion, const std::string &query)
start a new query
const std::vector< std::string > & current() const
returns the current parsed line.
std::string columnName(const std::size_t i) const
returns the name of the ith column
include the inlined functions if necessary
gum is the global namespace for all aGrUM entities
Class for parsing SQL results using Nanodbc.