28 # ifndef GUM_LEARNING_DB_INITILIALIZER_FROM_SQL_H 29 # define GUM_LEARNING_DB_INITILIALIZER_FROM_SQL_H 133 template <
template <
typename >
class ALLOC = std::allocator >
157 const std::string& login,
158 const std::string& password,
159 const std::string& query,
174 const std::string& query,
232 virtual std::vector< std::string, ALLOC< std::string > >
236 virtual const
std::vector<
std::
string, ALLOC<
std::
string > >&
243 # ifndef DOXYGEN_SHOULD_SKIP_THIS 247 std::string __connection_string;
256 std::vector< std::string, ALLOC< std::string > > __var_names;
259 nanodbc::connection __connection;
265 void __connect(
const std::string& connection_string,
long timeout);
The base class for initializing DatabaseTable and RawDatabaseTable instances from CSV files or SQL da...
The class for initializing DatabaseTable and RawDatabaseTable instances from SQL databases.
virtual DBInitializerFromSQL< ALLOC > * clone() const
virtual copy constructor
virtual bool _nextRow() final
indicates whether there is a next row to read (and point on it)
DBInitializerFromSQL(const std::string &dataSource, const std::string &login, const std::string &password, const std::string &query, long timeout=0L, const allocator_type &alloc=allocator_type())
default constructor, especially for postgresql databases
ALLOC< std::string > allocator_type
type for the allocators passed in arguments of methods
The class for initializing DatabaseTable and RawDatabaseTable instances from SQL databases.
gum is the global namespace for all aGrUM entities
virtual std::vector< std::string, ALLOC< std::string > > _variableNames() final
returns the names of the variables
virtual ~DBInitializerFromSQL()
destructor
Class for parsing SQL results using Nanodbc.
DBInitializerFromSQL< ALLOC > & operator=(const DBInitializerFromSQL< ALLOC > &from)
copy operator
virtual const std::vector< std::string, ALLOC< std::string > > & _currentStringRow() final
returns the content of the current row using strings
Class for parsing SQL results using Nanodbc.
The base class for initializing DatabaseTable and RawDatabaseTable instances from CSV files or SQL da...