#include <connection.h>
Inheritance diagram for pqxx::Connection:
Public Member Functions | |
Connection () | |
Constructor. Sets up connection without connection string. | |
Connection (const PGSTD::string &ConnInfo) | |
Constructor. Sets up connection based on PostgreSQL connection string. | |
Connection (const char ConnInfo[]) | |
Constructor. Sets up connection based on PostgreSQL connection string. | |
virtual | ~Connection () |
This is the class you typically need when you first work with a database through libpqxx. Its constructor immediately opens a connection. Another option is to defer actual connection to the database until it's actually needed; the LazyConnection class implements such "lazy" behaviour.
The advantage of having an immediate connection is that errors in setting up the connection will occur during construction of the connection object, rather than at some later point further down your program.
This class is a near-trivial implementation of the ConnectionItf interface defined in connectionitf.h. All features of any interest to client programmers are defined there.
|
Constructor. Sets up connection without connection string.
|
|
Constructor. Sets up connection based on PostgreSQL connection string.
|
|
Constructor. Sets up connection based on PostgreSQL connection string.
|
|
|