26 #ifndef __TERRALIB_POSTGIS_INTERNAL_CONNECTION_H
27 #define __TERRALIB_POSTGIS_INTERNAL_CONNECTION_H
38 #include <boost/date_time/posix_time/posix_time_types.hpp>
39 #include <boost/noncopyable.hpp>
81 PGresult* query(
const std::string& query);
90 void execute(
const std::string& command);
141 #endif // __TERRALIB_POSTGIS_INTERNAL_CONNECTION_H
Configuration flags for the PostGIS Driver Implementation of TerraLib.
This class implements a connection pool for the PostGIS driver.
ConnectionPool * m_pool
The connection pool associated to the connection.
ConnectionPool * getPool() const
It gets the associated connection pool.
A class that implements a connection to a PostgreSQL database.
struct pg_result PGresult
#define TEPGISEXPORT
You can use this macro in order to export/import classes and functions from this module.
PGconn * m_pgconn
The PostgreSQL real connection handle.
boost::posix_time::ptime m_lastuse
It marks the last time this connection was used.
PGconn * getConn() const
It gets the underlying PGconn object.
bool m_inuse
Tells if the connection is in use or not.