Go to the documentation of this file.
26 #ifndef __TERRALIB_ADO_INTERNAL_DATASOURCE_H
27 #define __TERRALIB_ADO_INTERNAL_DATASOURCE_H
30 #include "../dataaccess/datasource/DataSource.h"
31 #include "../dataaccess/datasource/DataSourceCapabilities.h"
35 #include <boost/thread/locks.hpp>
36 #include <boost/thread/mutex.hpp>
39 #import "msado15.dll" \
40 no_namespace rename(
"EOF",
"EndOfFile")
90 const std::string& geomColName);
93 const std::string& colName)
const;
97 void create(
const std::string& connInfo);
99 void drop(
const std::string& connInfo);
101 bool exists(
const std::string& connInfo);
122 #endif // __TERRALIB_ADO_INTERNAL_DATASOURCE_H
It represents the SQL query dialect accepted by a given data source.
void open()
It opens the data source and makes it ready for using.
DataSource(const te::core::URI &uri)
std::string m_currentSchema
The default schema used when no one is provided.
const te::da::DataSourceCapabilities & getCapabilities() const
It returns the known capabilities of the data source.
bool isGeometryColumn(const std::string &datasetName, const std::string &colName) const
void create(const std::string &connInfo)
It creates a new data source.
std::unique_ptr< te::da::DataSourceTransactor > getTransactor()
It returns the set of parameters used to set up the access channel to the underlying repository.
std::map< std::string, std::string > m_geomColumns
The list of geometry columns.
void close()
It closes the data source and clears all the resources used by its internal communication channel.
static te::da::SQLDialect * sm_dialect
bool exists(const std::string &connInfo)
Check the existence of a data source in a driver.
const te::da::SQLDialect * getDialect() const
It returns the data source SQL dialect, if there is one.
A class to store the proxy information that must be used to access data located in URIs.
~DataSource()
Virtual destructor.
void registerGeometryColumn(const std::string &datasetName, const std::string &geomColName)
std::string getType() const
It returns the data source type name (in UPPER CASE). Ex: POSTGIS, SQLITE, WFS, WMS,...
bool isValid() const
It checks if the data source is valid (available for using).
bool isOpened() const
It returns true if the data source is opened, otherwise it returns false.
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
void loadGeometryColumnsCache(_ConnectionPtr &adoConn)
An abstract class for data providers like a DBMS, Web Services or a regular file.
#define TEADOEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).
static te::da::DataSourceCapabilities sm_capabilities
ADO capabilities.
std::vector< std::string > getDataSourceNames(const std::string &connInfo)
It gets the data source names available in a driver.
DataSource(const std::string &connInfo)
void drop(const std::string &connInfo)
It removes the data source with the connection information from a driver.
const std::map< std::string, std::string > & getGeomColumns() const