Main Page   Class Hierarchy   Compound List   File List   Compound Members  

TDBConnectionManager Class Reference

Manages a pool of database connections. More...

#include <TDBConnectionManager.hh>

List of all members.

Static Public Methods

void SetLogin (TString username, TString password, TString database, TString host, TString port)
 Initialise connection manager with login data.

TDBConnectionConnection (int index=0)
 Get connection.

void Close ()
 Close open connections.


Detailed Description

Manages a pool of database connections.

Currently only PostgreSQL is supported.

FIXME: Only one connection implemented!

Author:
Johan Bolmsjo <johan@nocrew.org>


Member Function Documentation

void TDBConnectionManager::Close   [static]
 

Close open connections.

To be called at the end of the program.

TDBConnection* TDBConnectionManager::Connection int    index = 0 [static]
 

Get connection.

The returned object should not be destroyed.

Parameters:
index Connection number.
Returns:
Connection pointer.


The documentation for this class was generated from the following file:
Generated on Sat Feb 15 18:37:16 2003 for Tools by doxygen1.3-rc2