Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

pqxx::connect_direct Class Reference

Connection policy; establishes an immediate connection to a database. More...

#include <connection.hxx>

Inheritance diagram for pqxx::connect_direct:

pqxx::internal::connectionpolicy_base List of all members.

Public Member Functions

 connect_direct (connection_base &c)

Detailed Description

Connection policy; establishes an immediate connection to a database.

This is the policy you typically need when you first work with a database through libpqxx. It opens a connection immediately. Another option is to defer setting up the underlying connection to the database until * it's actually needed; the lazyconnection class implements such "lazy" behaviour.

The advantage of having an "immediate" connection (represented by this class) is that errors in setting up the connection will occur as exceptions 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 connectionpolicy_base interface defined in connection_base.hxx. All features of any interest to client programmers are defined there.


Constructor & Destructor Documentation

pqxx::connect_direct::connect_direct connection_base c  )  [explicit]
 


The documentation for this class was generated from the following files:
Generated on Sun Dec 5 21:56:41 2004 for libpqxx by  doxygen 1.3.9.1