tntdb::postgresql Namespace Reference

This namespace contains the implementation of the PostgreSQL driver for tntdb. More...

Classes

class  PgError
class  PgConnError
class  PgSqlError
class  Connection
 Implements a connection to a PostgreSQL database. More...
class  ConnectionManager
class  Cursor
class  Result
class  ResultRow
 Row of a result-set of type Result. More...
class  ResultValue
class  Statement

Detailed Description

This namespace contains the implementation of the PostgreSQL driver for tntdb.

The driver makes it possible to access a PostgreSQL database using tntdb.

To get a connection to a PostgreSQL database, the dburl to the tntdb::connect function must start with "postgresql:". The remaining string is passed to the PQconnectdb function of libpq.

A typical connection with a PostgreSQL driver looks like that:

tntdb::Connection conn = tntdb::connect("postgresql:host=localhost port=5432 dbname=mydb user=foo password=bar");