Main Page   Class Hierarchy   Compound List   File List   Compound Members  

TDBConnection Class Reference

Manages a database connection. More...

#include <TDBConnection.hh>

List of all members.

Public Methods

bool IsValid ()
 Query if connection is valid.

TStringErrorMessage ()
 Get error message string.

TDBResultExecute (const TString &command)
 Execute SQL statement.


Friends

class TDBConnectionManager


Detailed Description

Manages a database connection.

Currently only PostgreSQL is supported.

Author:
Johan Bolmsjo <johan@nocrew.org>


Member Function Documentation

TString& TDBConnection::ErrorMessage   [inline]
 

Get error message string.

Returns:
Error message.

TDBResult* TDBConnection::Execute const TString   command
 

Execute SQL statement.

The return object must be destroyed after use.

Returns:
Result object.

bool TDBConnection::IsValid   [inline]
 

Query if connection is valid.

Returns:
true, false


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