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
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_schemaClass string

Méthodes publiques

Méthode 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?

Méthodes protégées

Méthode 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 méthode

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

_lastInsertId() protected méthode

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

_parseConfig() protected méthode

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

_selectRaw() protected méthode

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

adapterName() public méthode

public adapterName ( ) : string
Résultat string

addLimitOffset() public méthode

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.
Résultat string

connect() public méthode

Connect to the db.
public connect ( )

insert() public méthode

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.
Résultat integer Last inserted ID.

supportsInsertWithReturning() public méthode

supportsMigrations() public méthode

public supportsMigrations ( ) : boolean
Résultat boolean

supportsStandardConformingStrings() public méthode

Does PostgreSQL support standard conforming strings?

Property Details

$_schemaClass protected_oe property

protected string $_schemaClass
Résultat string