A PostgreSQLDatabase class provides the tools to connect, query, etc., a PostgreSQL database.
Located in /harmoni/core/DBHandler/PostgreSQL/PostgreSQLDatabase.class.php (line 29)
DatabaseAbstract | --PostgreSQLDatabase
The hostname of the database, i.e. myserver.mydomain.edu.
The hostname of the database, i.e. myserver.mydomain.edu.
The name of the default database to use.
The name of the default database to use.
The password for $_dbUser with which to connect to the database.
The password for $_dbUser with which to connect to the database.
The username with which to connect to the database.
The username with which to connect to the database.
The total number of failed queries executed since the last call to connect().
The total number of failed queries executed since the last call to connect().
Stores the current connection's link identifier.
If a connection is open, this stores the connection's identifier. Otherwise, it stores FALSE.
The total number of successful queries executed since the last call to connect().
The total number of failed queries executed since the last call to connect().
Creates a new database connection.
Commit a transaction. This will roll-back changes if errors occured in the transaction block.
Disconnects from the database.
Disconnects from the database.
Converts a database datetime/timestamp/time value (that has been fetched from the db) to a DateAndTime object.
Depending on the server configuration PostgreSQL retrieves date/time types as 4 different formats. (format could be set with SET DateStyle ). The default formatting is 'ISO'. Note that timestamp column types return the full string. Date column types only return the date (no time).
Style Description Example 'ISO' ISO-8601 standard 1997-12-17 07:37:16-08 'SQL' Traditional style 12/17/1997 07:37:16.00 PST 'PostgreSQL' Original style Wed Dec 17 07:37:16 1997 PST 'German' Regional style 17.12.1997 07:37:16.00 PST
Answer the string SQL for the query
Returns the total number of failed queries executed since the last call to connect().
Returns the total number of failed queries executed since the last call to connect().
Returns the total number of successful queries executed since the last call to connect().
Returns the total number of successful queries executed since the last call to connect().
Returns a short string name for this database type. Example: 'MySQL'
Returns a list of the tables that exist in the currently connected database.
Indicates whether there is an open connection to the database.
Indicates whether there is an open connection to the database.
Makes a persistent database connection.
Makes a persistent database connection.
Executes an SQL query.
Executes an SQL query. The method is passed a query object, which it converts to a SQL query string using the appropriate SQLGenerator object.
Roll-back a transaction manually instead of committing
This method selects the default database to use in queries.
Return TRUE if this database supports transactions.
Converts a DateAndTime object to a proper datetime/timestamp/time representation for this Database.
The easiest way to convert is to create a string in the following format: 'YYYY-MM-DD HH:MM:SS', i.e. 1999-01-08 04:05:06 You can pass this to a PostgreSQL date or timestamp column types and it gets parsed automatically by PostgreSQL.
Executes an SQL query.
Executes an SQL query.
Inherited From DatabaseAbstract
DatabaseAbstract::getConnectionErrorInfo()
Documentation generated on Wed, 19 Sep 2007 10:25:32 -0400 by phpDocumentor 1.3.0RC3