#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. Most of the documentation that you'll need to use this class is in its base class, Connection_base.
The advantage of having an "immediate" connection (represented by this class) 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 Connection_base interface defined in connection_base.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.
|
|
|