PHP 클래스 Dibi\Drivers\OracleDriver

Driver options: - database => the name of the local Oracle instance or the name of the entry in tnsnames.ora - username (or user) - password (or pass) - charset => character encoding to set - schema => alters session schema - formatDate => how to format date in SQL (@see date) - formatDateTime => how to format datetime in SQL (@see date) - resource (resource) => existing connection resource - persistent => Creates persistent connections with oci_pconnect instead of oci_new_connect - lazy, profiler, result, substitutes, ... => see Dibi\Connection options
상속: implements Dibi\Driver, implements Dibi\ResultDriver, implements Dibi\Reflector, use trait Dibi\Strict
파일 보기 프로젝트 열기: dg/dibi 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( )
__destruct ( ) : void Automatically frees the resources allocated for this result set.
applyLimit ( &$sql, $limit, $offset ) : void Injects LIMIT/OFFSET to the SQL query.
begin ( $savepoint = NULL ) : void Begins a transaction (if supported).
commit ( $savepoint = NULL ) : void Commits statements in a transaction.
connect ( array &$config ) : void Connects to a database.
createException ( $message, $code, $sql ) : Dibi\DriverException
createResultDriver ( $resource ) : Dibi\ResultDriver Result set driver factory.
disconnect ( ) : void Disconnects from a database.
escape ( $value, $type )
escapeBinary ( $value )
escapeBool ( $value )
escapeDate ( $value )
escapeDateTime ( $value )
escapeIdentifier ( $value )
escapeLike ( $value, $pos ) : string Encodes string for use in a LIKE statement.
escapeText ( $value ) : string Encodes data for use in a SQL statement.
fetch ( $assoc ) : array Fetches the row at current position and moves the internal cursor to the next position.
free ( ) : void Frees the resources allocated for this result set.
getAffectedRows ( ) : integer | FALSE Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
getColumns ( $table ) : array Returns metadata for all columns in a table.
getForeignKeys ( $table ) : array Returns metadata for all foreign keys in a table.
getIndexes ( $table ) : array Returns metadata for all indexes in a table.
getInsertId ( $sequence ) : integer | FALSE Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
getReflector ( ) : Dibi\Reflector Returns the connection reflector.
getResource ( ) : mixed Returns the connection resource.
getResultColumns ( ) : array Returns metadata for all columns in a result set.
getResultResource ( ) : mixed Returns the result set resource.
getRowCount ( ) : integer Returns the number of rows in a result set.
getTables ( ) : array Returns list of tables.
query ( $sql ) : Dibi\ResultDriver | null Executes the SQL query.
rollback ( $savepoint = NULL ) : void Rollback changes in a transaction.
seek ( $row ) : boolean Moves cursor position without fetching row.
unescapeBinary ( $value ) : string Decodes data from result set.

메소드 상세

__construct() 공개 메소드

public __construct ( )

__destruct() 공개 메소드

Automatically frees the resources allocated for this result set.
public __destruct ( ) : void
리턴 void

applyLimit() 공개 메소드

Injects LIMIT/OFFSET to the SQL query.
public applyLimit ( &$sql, $limit, $offset ) : void
리턴 void

begin() 공개 메소드

Begins a transaction (if supported).
public begin ( $savepoint = NULL ) : void
리턴 void

commit() 공개 메소드

Commits statements in a transaction.
public commit ( $savepoint = NULL ) : void
리턴 void

connect() 공개 메소드

Connects to a database.
public connect ( array &$config ) : void
$config array
리턴 void

createException() 공개 정적인 메소드

public static createException ( $message, $code, $sql ) : Dibi\DriverException
리턴 Dibi\DriverException

createResultDriver() 공개 메소드

Result set driver factory.
public createResultDriver ( $resource ) : Dibi\ResultDriver
리턴 Dibi\ResultDriver

disconnect() 공개 메소드

Disconnects from a database.
public disconnect ( ) : void
리턴 void

escape() 공개 메소드

사용 중단:
public escape ( $value, $type )

escapeBinary() 공개 메소드

public escapeBinary ( $value )

escapeBool() 공개 메소드

public escapeBool ( $value )

escapeDate() 공개 메소드

public escapeDate ( $value )

escapeDateTime() 공개 메소드

public escapeDateTime ( $value )

escapeIdentifier() 공개 메소드

public escapeIdentifier ( $value )

escapeLike() 공개 메소드

Encodes string for use in a LIKE statement.
public escapeLike ( $value, $pos ) : string
리턴 string

escapeText() 공개 메소드

Encodes data for use in a SQL statement.
public escapeText ( $value ) : string
리턴 string encoded value

fetch() 공개 메소드

Fetches the row at current position and moves the internal cursor to the next position.
public fetch ( $assoc ) : array
리턴 array array on success, nonarray if no next record

free() 공개 메소드

Frees the resources allocated for this result set.
public free ( ) : void
리턴 void

getAffectedRows() 공개 메소드

Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
public getAffectedRows ( ) : integer | FALSE
리턴 integer | FALSE number of rows or FALSE on error

getColumns() 공개 메소드

Returns metadata for all columns in a table.
public getColumns ( $table ) : array
리턴 array

getForeignKeys() 공개 메소드

Returns metadata for all foreign keys in a table.
public getForeignKeys ( $table ) : array
리턴 array

getIndexes() 공개 메소드

Returns metadata for all indexes in a table.
public getIndexes ( $table ) : array
리턴 array

getInsertId() 공개 메소드

Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
public getInsertId ( $sequence ) : integer | FALSE
리턴 integer | FALSE int on success or FALSE on failure

getReflector() 공개 메소드

Returns the connection reflector.
public getReflector ( ) : Dibi\Reflector
리턴 Dibi\Reflector

getResource() 공개 메소드

Returns the connection resource.
public getResource ( ) : mixed
리턴 mixed

getResultColumns() 공개 메소드

Returns metadata for all columns in a result set.
public getResultColumns ( ) : array
리턴 array

getResultResource() 공개 메소드

Returns the result set resource.
public getResultResource ( ) : mixed
리턴 mixed

getRowCount() 공개 메소드

Returns the number of rows in a result set.
public getRowCount ( ) : integer
리턴 integer

getTables() 공개 메소드

Returns list of tables.
public getTables ( ) : array
리턴 array

query() 공개 메소드

Executes the SQL query.
public query ( $sql ) : Dibi\ResultDriver | null
리턴 Dibi\ResultDriver | null

rollback() 공개 메소드

Rollback changes in a transaction.
public rollback ( $savepoint = NULL ) : void
리턴 void

seek() 공개 메소드

Moves cursor position without fetching row.
public seek ( $row ) : boolean
리턴 boolean TRUE on success, FALSE if unable to seek to specified record

unescapeBinary() 공개 메소드

Decodes data from result set.
public unescapeBinary ( $value ) : string
리턴 string