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

Connection Class Reference

API of connection with a database. More...

#include <Connection.h>

Inheritance diagram for Connection:

PGConnection List of all members.

Public Member Functions

 Connection ()
 Connection constructor.
virtual ~Connection ()
 Connection destructor.
virtual void connect (string aString)=0
 Permit to be connected to a databse.
virtual list< list< string > > executeQuery (string aQuery)=0
 Permit to execute a query to the database.
virtual int executeUpdate (string aQuery)=0
 Permit to execute an update to the database.
virtual void closeConnection ()=0
 Permit to close the connection with the database.

Detailed Description

API of connection with a database.

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


Member Function Documentation

Connection::connect string  aString  )  [pure virtual]
 

Permit to be connected to a databse.

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

Implemented in PGConnection.

Connection::executeQuery string  aQuery  )  [pure virtual]
 

Permit to execute a query to the database.

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

Implemented in PGConnection.

Connection::executeUpdate string  aQuery  )  [pure virtual]
 

Permit to execute an update to the database.

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

Implemented in PGConnection.


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