31 # ifndef GUM_LEARNING_DB_INITILIALIZER_FROM_SQL_H 32 # define GUM_LEARNING_DB_INITILIALIZER_FROM_SQL_H 136 template <
template <
typename >
class ALLOC = std::allocator >
160 const std::string& login,
161 const std::string& password,
162 const std::string& query,
177 const std::string& query,
235 virtual std::vector< std::string, ALLOC< std::string > >
239 virtual const
std::vector<
std::
string, ALLOC<
std::
string > >&
246 # ifndef DOXYGEN_SHOULD_SKIP_THIS 250 std::string __connection_string;
259 std::vector< std::string, ALLOC< std::string > > __var_names;
262 nanodbc::connection __connection;
268 void __connect(
const std::string& connection_string,
long timeout);
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
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...