26 #ifndef __TERRALIB_POSTGIS_INTERNAL_PREPAREDQUERY_H
27 #define __TERRALIB_POSTGIS_INTERNAL_PREPAREDQUERY_H
30 #include "../dataaccess/datasource/PreparedQuery.h"
37 typedef struct pg_conn
PGconn;
80 void prepare(
const std::string& query,
const std::vector<te::dt::Property*>& paramTypes);
89 void bind(
int i,
char value);
91 void bind(
int i,
unsigned char value);
93 void bind(
int i, boost::int16_t value);
95 void bind(
int i, boost::int32_t value);
97 void bind(
int i, boost::int64_t value);
99 void bind(
int i,
bool value);
103 void bind(
int i,
double value);
107 void bind(
int i,
const std::string& value);
126 void prepare(
const std::string& query,
const std::vector<int>& paramTypes);
A dataset is the unit of information manipulated by the data access module of TerraLib.
A DataSourceTransactor can be viewed as a connection to the data source for reading/writing things in...
A class that model a prepared query.
A Query is independent from the data source language/dialect.
A base class for values that can be retrieved from the data access module.
A class for representing binary data.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
A class that implements a prepared query for PostgreSQL data access driver.
void bind(int i, const te::gm::Geometry &value)
Binds the i-th parameter of the query to a value.
void prepare(const std::string &query, const std::vector< te::dt::Property * > ¶mTypes)
It prepares the query using native dialect.
te::da::DataSourceTransactor * getTransactor() const
It returns a pointer to the underlying data source transactor.
void bind(int i, const te::da::DataSet &value)
Binds the i-th parameter of the query to a value.
void bind(int i, boost::int32_t value)
Binds the i-th parameter of the query to a value.
PreparedQuery(Transactor *t, const std::string &pqname)
void prepare(const te::da::Query &query, const std::vector< te::dt::Property * > ¶mTypes)
It prepares the query that may be used for commands that are used mutiple times (select,...
void bind(int i, boost::int16_t value)
Binds the i-th parameter of the query to a value.
void prepare(const std::string &query, const std::vector< int > ¶mTypes)
void bind(const std::vector< std::size_t > &propertiesPos, te::da::DataSet *d)
void bind(int i, const te::dt::ByteArray &value)
Binds the i-th parameter of the query to a value.
void bindNumeric(int i, const std::string &value)
Binds the i-th parameter of the query to a value.
void bind(const std::vector< std::size_t > &propertiesPos, std::size_t offset, te::da::DataSet *d)
void bind(int i, bool value)
Binds the i-th parameter of the query to a value.
void bind(int i, char value)
Binds the i-th parameter of the query to a value.
void bind(int i, double value)
Binds the i-th parameter of the query to a value.
te::da::DataSet * query(te::common::TraverseType travType=te::common::FORWARDONLY, te::common::AccessPolicy rwRole=te::common::RAccess)
void bind(te::da::DataSet *d)
void bind(int i, unsigned char value)
Binds the i-th parameter of the query to a value.
void bind(int i, const te::rst::Raster &value)
Binds the i-th parameter of the query to a value.
void bind(int i, const te::dt::DateTime &value)
Binds the i-th parameter of the query to a value.
std::string getName() const
It returns the prepared query name.
~PreparedQuery()
Virtual destructor.
void bind(int i, const te::dt::AbstractData &ad)
Binds the i-th parameter of the query to a value.
void bind(int i, const std::string &value)
Binds the i-th parameter of the query to a value.
void bind(int i, float value)
Binds the i-th parameter of the query to a value.
void bind(int i, boost::int64_t value)
Binds the i-th parameter of the query to a value.
void execute(PGconn *pgConn)
The transactor class for the PostGIS driver.
An abstract class for raster data strucutures.
TraverseType
A dataset can be traversed in two ways:
AccessPolicy
Supported data access policies (can be used as bitfield).
struct pg_result PGresult
#define TEPGISEXPORT
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).