Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

PGConnection Class Reference

API of connection with postgresql. More...

#include <PGConnection.h>

Inheritance diagram for PGConnection:

Connection List of all members.

Public Member Functions

 PGConnection ()
 PGConnection constructor.
 ~PGConnection ()
 PGConnection destructor.
void connect (string aString)
 Permit to be connected to postgresql.
list< list< string > > executeQuery (string aQuery)
 Permit to execute a query to postgresql.
int executeUpdate (string aQuery)
 Permit to execute an update to postgresql.
void closeConnection ()
 Permit to close the connection with postgresql.

Detailed Description

API of connection with postgresql.

Author:
Richard DUFOUR
Version:
1.0
Date:
17-03-2006
Bug:
no one known
Warning:
beta version
That classe defines the api of the language C and postgresql.


Member Function Documentation

PGConnection::connect string  aString  )  [virtual]
 

Permit to be connected to postgresql.

Parameters:
aString string which is the list of arguments (name, user, pass...).

Implements Connection.

PGConnection::executeQuery string  aQuery  )  [virtual]
 

Permit to execute a query to postgresql.

Parameters:
aQuery string which is the sql query.
Returns:
list<list<string> > of informations returned by the query.

Implements Connection.

PGConnection::executeUpdate string  aQuery  )  [virtual]
 

Permit to execute an update to postgresql.

Parameters:
aQuery string which is the sql update.
Returns:
int is the number of rows updated.

Implements Connection.


The documentation for this class was generated from the following file:
Generated on Fri May 19 22:56:55 2006 for k10-controller by  doxygen 1.4.4