PHP Class Horde_Db_Adapter_Pdo_Sqlite, 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
$_sqliteVersion integer SQLite version number

Méthodes publiques

Méthode Description
adapterName ( ) : string
addLock ( &$sql, array $options = [] ) SELECT .
beginDbTransaction ( ) Begins the transaction (and turns off auto-committing).
commitDbTransaction ( ) Commits the transaction (and turns on auto-committing).
connect ( ) Connect to the db.
emptyInsertStatement ( $tableName )
execute ( string $sql, mixed $arg1 = null, string $arg2 = null ) Executes the SQL statement in the context of this connection.
rollbackDbTransaction ( ) Rolls back the transaction (and turns on auto-committing). Must be done if the transaction block raises an exception or returns false.
supportsAutoIncrement ( )
supportsCountDistinct ( ) : boolean Does this adapter support using DISTINCT within COUNT? This is +true+ for all adapters except sqlite.
supportsInterval ( ) : boolean Does this adapter support using INTERVAL statements? This is +true+ for all adapters except sqlite.
supportsMigrations ( ) : boolean

Méthodes protégées

Méthode Description
_buildDsnString ( $params )
_catchSchemaChanges ( $method, $args = [] ) *########################################################################## # Protected ##########################################################################
_parseConfig ( ) : array Parse configuration array into options for PDO constructor

Method Details

_buildDsnString() protected méthode

protected _buildDsnString ( $params )

_catchSchemaChanges() protected méthode

*########################################################################## # Protected ##########################################################################
protected _catchSchemaChanges ( $method, $args = [] )

_parseConfig() protected méthode

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

adapterName() public méthode

public adapterName ( ) : string
Résultat string

addLock() public méthode

.. FOR UPDATE is redundant since the table is locked.
public addLock ( &$sql, array $options = [] )
$options array

beginDbTransaction() public méthode

Begins the transaction (and turns off auto-committing).
public beginDbTransaction ( )

commitDbTransaction() public méthode

Commits the transaction (and turns on auto-committing).
public commitDbTransaction ( )

connect() public méthode

Connect to the db.
public connect ( )

emptyInsertStatement() public méthode

public emptyInsertStatement ( $tableName )

execute() public méthode

Executes the SQL statement in the context of this connection.
public execute ( string $sql, mixed $arg1 = null, string $arg2 = null )
$sql string
$arg1 mixed Either an array of bound parameters or a query name.
$arg2 string If $arg1 contains bound parameters, the query name.

rollbackDbTransaction() public méthode

Rolls back the transaction (and turns on auto-committing). Must be done if the transaction block raises an exception or returns false.

supportsAutoIncrement() public méthode

supportsCountDistinct() public méthode

Does this adapter support using DISTINCT within COUNT? This is +true+ for all adapters except sqlite.
public supportsCountDistinct ( ) : boolean
Résultat boolean

supportsInterval() public méthode

Does this adapter support using INTERVAL statements? This is +true+ for all adapters except sqlite.
public supportsInterval ( ) : boolean
Résultat boolean

supportsMigrations() public méthode

public supportsMigrations ( ) : boolean
Résultat boolean

Property Details

$_schemaClass protected_oe property

protected string $_schemaClass
Résultat string

$_sqliteVersion protected_oe property

SQLite version number
protected int $_sqliteVersion
Résultat integer