PostgresResult Class Reference

#include <PostgresResult.hxx>

Inherits DBResult.

Inheritance diagram for PostgresResult:

[legend]
Collaboration diagram for PostgresResult:
[legend]
List of all members.

Public Member Functions

 PostgresResult (PGresult *)
 ~PostgresResult ()
char * GetValue (int row, int column)
char * GetValue (int column)
int Tuples ()
int Fields ()
void deleteResult ()

Detailed Description

Class PostgresResult is a wrapper class for the result of an SQL query performed on a PostgreSQL database.

Author:
Grigoris Karvounarakis
Version:
1.1


Constructor & Destructor Documentation

PostgresResult::PostgresResult ( PGresult *  res  ) 

"Wrap" the given PGresult.

PostgresResult::~PostgresResult (  ) 

Free the memory allocated for the wrapped PGresult


Member Function Documentation

char * PostgresResult::GetValue ( int  row,
int  col 
) [virtual]

Returns:
the value (as a string) of the given column of the given tuple from the result

Implements DBResult.

char * PostgresResult::GetValue ( int  col  )  [virtual]

Returns:
the value (as a string) of the given column of the current tuple from the result, as pointed to by current_row

Implements DBResult.

int PostgresResult::Tuples (  )  [virtual]

Returns:
the number of tuples in the result

Implements DBResult.

int PostgresResult::Fields (  )  [virtual]

Returns:
the number of columns (attributes) in the result

Implements DBResult.

void PostgresResult::deleteResult (  )  [virtual]

Free the memory allocated for the wrapped PGresult

Implements DBResult.


The documentation for this class was generated from the following files:
Generated on Thu Oct 26 17:12:58 2006 for rql by  doxygen 1.5.0