Class QPostgreSqlDatabase
PostgreSQL database adapter.
To allow QCubed to determine the identity column in a PostgreSQL table (and because a table may have more than one column generated by the SERIAL "data type"), this adapter assumes that if the first column (ordinal position 1) was created as SERIAL, it is the identity column. Otherwise, no identity column will be set for that table.
- QBaseClass
- QDatabaseBase
- QPostgreSqlDatabase
public
string
|
#
SqlVariable( mixed $mixData, boolean $blnIncludeEquality = false, boolean $blnReverseEquality = false )
Properly escapes $mixData to be used as a SQL query parameter. If IncludeEquality is set (usually not), then include an equality operator. So for most data, it would just be "=". But, for example, if $mixData is NULL, then most RDBMS's require the use of "IS". |
public
|
|
public
|
|
public
|
|
public
|
#
InsertOrUpdate( string $strTable, array $mixColumnsAndValuesArray, null|string|array $strPKNames = null )
INSERTs or UPDATEs a table |
public
|
|
public
mixed
|
|
protected
mixed
|
#
ExecuteQuery( string $strQuery )
Sends a SQL query for execution to the database In this regard, a query is a 'SELECT' statement |
protected
mixed
|
#
ExecuteNonQuery( string $strNonQuery )
Sends a non-SELECT query (such as INSERT, UPDATE, DELETE, TRUNCATE) to DB server. In most cases, the results of this function are not used and you should not send 'SELECT' queries using this method because a result is not guaranteed to be returned |
public
array
|
|
public
mixed
|
|
public
mixed
|
|
public
mixed
|
|
protected
|
#
ExecuteTransactionBegin( )
Sends the 'BEGIN' command to the PostgreSQL server to start a transaction |
protected
|
#
ExecuteTransactionCommit( )
Sends the 'COMMIT' command to the PostgreSQL server to commit/end a transaction |
protected
|
#
ExecuteTransactionRollBack( )
Sends the 'ROLLBACK' command to the PostgreSQL server to revert a transaction |
public
mixed
|
|
public
mixed
|
|
public
null
|
#
ExplainStatement( $sql )
Executes the explain statement for a given query and returns the output without any transformation. If the database adapter does not support EXPLAIN statements, returns null. |
OverrideAttributes(),
__call()
|
Adapter
|
protected
|
$objPgSql
|
|
protected
|
$objMostRecentResult
|
|
protected
boolean
|
$blnOnlyFullGroupBy
|
#
true
|
$Adapter,
$AffectedRows,
$Caching,
$Database,
$DatabaseIndex,
$DateFormat,
$EnableProfiling,
$EscapeIdentifierBegin,
$EscapeIdentifierEnd,
$Host,
$OnlyFullGroupBy,
$Password,
$Port,
$Profile,
$Protocol,
$Server,
$Service,
$Username
|