26 #ifndef __TERRALIB_SQLITE_INTERNAL_DATASOURCE_H
27 #define __TERRALIB_SQLITE_INTERNAL_DATASOURCE_H
30 #include "../dataaccess/datasource/DataSource.h"
70 void create(
const std::map<std::string, std::string>& dsInfo);
72 void drop(
const std::map<std::string, std::string>& dsInfo);
74 bool exists(
const std::map<std::string, std::string>& dsInfo);
76 std::vector<std::string>
getDataSourceNames(
const std::map<std::string, std::string>& dsInfo);
78 std::vector<std::string>
getEncodings(
const std::map<std::string, std::string>& dsInfo);
90 #endif // __TERRALIB_SQLITE_INTERNAL_DATASOURCE_H
bool isOpened() const
It returns true if the data source is opened, otherwise it returns false.
~DataSource()
Virtual destructor.
te::da::SQLDialect * dialect
void drop(const std::map< std::string, std::string > &dsInfo)
It removes the data source with the connection information from a driver.
std::vector< std::string > getDataSourceNames(const std::map< std::string, std::string > &dsInfo)
It gets the data source names available in a driver.
std::vector< std::string > getEncodings(const std::map< std::string, std::string > &dsInfo)
It gets the encodings for the data source.
bool isValid() const
It checks if the data source is valid (available for using).
It represents the SQL query dialect accepted by a given data source.
void create(const std::map< std::string, std::string > &dsInfo)
It creates a new data source.
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
An abstract class for data providers like a DBMS, Web Services or a regular file. ...
const te::da::DataSourceCapabilities & getCapabilities() const
It returns the known capabilities of the data source.
const std::map< std::string, std::string > & getConnectionInfo() const
It returns the set of parameters used to set up the access channel to the underlying repository...
const te::da::SQLDialect * getDialect() const
It returns the data source SQL dialect, if there is one.
te::da::DataSourceCapabilities capabilities
void setConnectionInfo(const std::map< std::string, std::string > &connInfo)
It sets the connection information to be used when connecting to the data source. ...
static void set(te::da::DataSourceCapabilities *capabilities)
void open()
It opens the data source and makes it ready for using.
std::string getType() const
It returns the data source type name (in UPPER CASE). Ex: POSTGIS, SQLITE, WFS, WMS, or MYSQL.
std::auto_ptr< te::da::DataSourceTransactor > getTransactor()
It returns an object that can execute transactions in the context of a data source.
bool exists(const std::map< std::string, std::string > &dsInfo)
Check the existence of a data source in a driver.
void close()
It closes the data source and clears all the resources used by its internal communication channel...