PHP 클래스 Horde_Db_Adapter_Pdo_Sqlite, horde

저자: Mike Naberezny ([email protected])
저자: Derek DeVries ([email protected])
저자: Chuck Hagenbuch ([email protected])
상속: extends Horde_Db_Adapter_Pdo_Abstract
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_schemaClass string
$_sqliteVersion integer SQLite version number

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
_buildDsnString ( $params )
_catchSchemaChanges ( $method, $args = [] ) *########################################################################## # Protected ##########################################################################
_parseConfig ( ) : array Parse configuration array into options for PDO constructor

메소드 상세

_buildDsnString() 보호된 메소드

protected _buildDsnString ( $params )

_catchSchemaChanges() 보호된 메소드

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

_parseConfig() 보호된 메소드

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

adapterName() 공개 메소드

public adapterName ( ) : string
리턴 string

addLock() 공개 메소드

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

beginDbTransaction() 공개 메소드

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

commitDbTransaction() 공개 메소드

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

connect() 공개 메소드

Connect to the db.
public connect ( )

emptyInsertStatement() 공개 메소드

public emptyInsertStatement ( $tableName )

execute() 공개 메소드

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() 공개 메소드

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

supportsAutoIncrement() 공개 메소드

supportsCountDistinct() 공개 메소드

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

supportsInterval() 공개 메소드

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

supportsMigrations() 공개 메소드

public supportsMigrations ( ) : boolean
리턴 boolean

프로퍼티 상세

$_schemaClass 보호되어 있는 프로퍼티

protected string $_schemaClass
리턴 string

$_sqliteVersion 보호되어 있는 프로퍼티

SQLite version number
protected int $_sqliteVersion
리턴 integer