#include <psqlconnection.h>
Public Member Functions | |
| SQLConnection (SQLDriver *drv, const std::string &user, const std::string &passwd, const std::string &db, const std::string &host) throw (SQLError) | |
| Connection ctor. | |
| ~SQLConnection () throw () | |
| void | open () throw (SQLError) |
| Open connection to database. | |
| void | close () throw () |
| Close connection to database. | |
| void | commit () throw (SQLError) |
| Commit transaction. | |
| void | rollback () throw (SQLError) |
| Rollback transaction. | |
| bool | isValid () const throw () |
| Returns true if the connection is valid. | |
| SQLDriver * | driver () const throw () |
| SQLDriver::ConnectionHandle * | handle () const throw () |
Definition at line 34 of file psqlconnection.h.
|
||||||||||||||||||||||||
|
Connection ctor. Initializes the connection object and then tries to connect using the given database description. |
|
|
|
|
|
Close connection to database. Closes the connection to the database if connected. |
|
|
Commit transaction.
|
|
|
Definition at line 68 of file psqlconnection.h. |
|
|
Definition at line 71 of file psqlconnection.h. |
|
|
Returns true if the connection is valid.
|
|
|
Open connection to database. Opens a connection to the database if not already connected. |
|
|
Rollback transaction.
|
1.3.3