12th September 2019: PostgreSQL 12 Beta 4 Released!
Unsupported versions: 7.2 / 7.1
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the supported versions listed above instead.

3.2. libpq++ Classes

3.2.1. Connection Class: PgConnection

The connection class makes the actual connection to the database and is inherited by all of the access classes.

3.2.2. Database Class: PgDatabase

The database class provides C++ objects that have a connection to a backend server. To create such an object one first needs the apropriate environment for the backend to access. The following constructors deal with making a connection to a backend server from a C++ program.