#include <PostgresDatabaseLayer.h>
Inheritance diagram for PostgresDatabaseLayer:

Public Member Functions | |
| PostgresDatabaseLayer () | |
| PostgresDatabaseLayer (const wxString &strDatabase) | |
| PostgresDatabaseLayer (const wxString &strServer, const wxString &strDatabase) | |
| PostgresDatabaseLayer (const wxString &strDatabase, const wxString &strUser, const wxString &strPassword) | |
| PostgresDatabaseLayer (const wxString &strServer, const wxString &strDatabase, const wxString &strUser, const wxString &strPassword) | |
| PostgresDatabaseLayer (PGconn *pDatabase) | |
| virtual | ~PostgresDatabaseLayer () |
| virtual bool | Open () |
| virtual bool | Open (const wxString &strDatabase) |
| virtual bool | Open (const wxString &strServer, const wxString &strDatabase) |
| virtual bool | Open (const wxString &strDatabase, const wxString &strUser, const wxString &strPassword) |
| virtual bool | Open (const wxString &strServer, const wxString &strDatabase, const wxString &strUser, const wxString &strPassword) |
| virtual bool | Close () |
| close database | |
| virtual void | BeginTransaction () |
| Begin a transaction. | |
| virtual void | Commit () |
| Commit the current transaction. | |
| virtual void | RollBack () |
| Rollback the current transaction. | |
| virtual bool | RunQuery (const wxString &strQuery, bool bParseQuery) |
| Run an insert, update, or delete query on the database. | |
| virtual DatabaseResultSet * | RunQueryWithResults (const wxString &strQuery) |
| Run a select query on the database. | |
| virtual PreparedStatement * | PrepareStatement (const wxString &strQuery) |
| Prepare a SQL statement which can be reused with different parameters. | |
Static Public Member Functions | |
| static int | TranslateErrorCode (int nCode) |
|
|
Definition at line 15 of file PostgresDatabaseLayer.cpp. |
|
|
Definition at line 24 of file PostgresDatabaseLayer.cpp. References Open(). |
|
||||||||||||
|
Definition at line 34 of file PostgresDatabaseLayer.cpp. References Open(). |
|
||||||||||||||||
|
Definition at line 44 of file PostgresDatabaseLayer.cpp. References Open(). |
|
||||||||||||||||||||
|
Definition at line 54 of file PostgresDatabaseLayer.cpp. References Open(). |
|
|
Definition at line 35 of file PostgresDatabaseLayer.h. |
|
|
Definition at line 65 of file PostgresDatabaseLayer.cpp. References Close(). |
|
|
Begin a transaction.
Implements DatabaseLayer. Definition at line 167 of file PostgresDatabaseLayer.cpp. References RunQuery(). |
|
|
close database
Implements DatabaseLayer. Definition at line 156 of file PostgresDatabaseLayer.cpp. References DatabaseLayer::CloseResultSets(), and DatabaseLayer::CloseStatements(). Referenced by ~PostgresDatabaseLayer(). |
|
|
Commit the current transaction.
Implements DatabaseLayer. Definition at line 172 of file PostgresDatabaseLayer.cpp. References RunQuery(). |
|
||||||||||||||||||||
|
Definition at line 145 of file PostgresDatabaseLayer.cpp. References Open(). |
|
||||||||||||||||
|
Definition at line 136 of file PostgresDatabaseLayer.cpp. References Open(). |
|
||||||||||||
|
Definition at line 127 of file PostgresDatabaseLayer.cpp. References Open(). |
|
|
Implements DatabaseLayer. Definition at line 121 of file PostgresDatabaseLayer.cpp. References Open(). |
|
|
|
Prepare a SQL statement which can be reused with different parameters.
Implements DatabaseLayer. Definition at line 231 of file PostgresDatabaseLayer.cpp. References PostgresPreparedStatement::CreateStatement(), DatabaseLayer::LogStatementForCleanup(), and DatabaseErrorReporter::ResetErrorCodes(). |
|
|
Rollback the current transaction.
Implements DatabaseLayer. Definition at line 177 of file PostgresDatabaseLayer.cpp. References RunQuery(). |
|
||||||||||||
|
Run an insert, update, or delete query on the database.
Implements DatabaseLayer. Referenced by BeginTransaction(), Commit(), and RollBack(). |
|
|
Run a select query on the database.
Implements DatabaseLayer. Definition at line 207 of file PostgresDatabaseLayer.cpp. References DatabaseStringConverter::ConvertFromUnicodeStream(), DatabaseStringConverter::ConvertToUnicodeStream(), DatabaseStringConverter::GetEncoding(), DatabaseLayer::LogResultSetForCleanup(), DatabaseErrorReporter::ResetErrorCodes(), DatabaseStringConverter::SetEncoding(), DatabaseErrorReporter::SetErrorCode(), DatabaseErrorReporter::SetErrorMessage(), DatabaseErrorReporter::ThrowDatabaseException(), and TranslateErrorCode(). |
|
|
Definition at line 240 of file PostgresDatabaseLayer.cpp. Referenced by Open(), and RunQueryWithResults(). |
1.4.1