PHP Class Horde_Db_Adapter_Pdo_Pgsql, horde

Author: Mike Naberezny ([email protected])
Author: Derek DeVries ([email protected])
Author: Chuck Hagenbuch ([email protected])
Inheritance: extends Horde_Db_Adapter_Pdo_Abstract
Datei anzeigen Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_schemaClass string

Public Methods

Method Description
adapterName ( ) : string
addLimitOffset ( string $sql, array $options ) : string Appends LIMIT and OFFSET options to a SQL statement.
connect ( ) Connect to the db.
insert ( string $sql, array | string $arg1 = null, string $arg2 = null, string $pk = null, integer $idValue = null, string $sequenceName = null ) : integer Inserts a row into a table.
supportsInsertWithReturning ( )
supportsMigrations ( ) : boolean
supportsStandardConformingStrings ( ) : boolean Does PostgreSQL support standard conforming strings?

Protected Methods

Method Description
_configureConnection ( ) Configures the encoding, verbosity, and schema search path of the connection.
_lastInsertId ( $table, $sequenceName ) Returns the current ID of a table's sequence.
_parseConfig ( ) : array Parse configuration array into options for PDO constructor.
_selectRaw ( $sql, $arg1 = null, $arg2 = null )

Method Details

_configureConnection() protected method

This is called by connect() and should not be called manually.
protected _configureConnection ( )

_lastInsertId() protected method

Returns the current ID of a table's sequence.
protected _lastInsertId ( $table, $sequenceName )

_parseConfig() protected method

Parse configuration array into options for PDO constructor.
protected _parseConfig ( ) : array
return array [dsn, username, password]

_selectRaw() protected method

protected _selectRaw ( $sql, $arg1 = null, $arg2 = null )

adapterName() public method

public adapterName ( ) : string
return string

addLimitOffset() public method

Appends LIMIT and OFFSET options to a SQL statement.
public addLimitOffset ( string $sql, array $options ) : string
$sql string SQL statement.
$options array Hash with 'limit' and (optional) 'offset' values.
return string

connect() public method

Connect to the db.
public connect ( )

insert() public method

Inserts a row into a table.
public insert ( string $sql, array | string $arg1 = null, string $arg2 = null, string $pk = null, integer $idValue = null, string $sequenceName = null ) : integer
$sql string SQL statement.
$arg1 array | string Either an array of bound parameters or a query name.
$arg2 string If $arg1 contains bound parameters, the query name.
$pk string The primary key column.
$idValue integer The primary key value. This parameter is required if the primary key is inserted manually.
$sequenceName string The sequence name.
return integer Last inserted ID.

supportsInsertWithReturning() public method

supportsMigrations() public method

public supportsMigrations ( ) : boolean
return boolean

supportsStandardConformingStrings() public method

Does PostgreSQL support standard conforming strings?

Property Details

$_schemaClass protected_oe property

protected string $_schemaClass
return string