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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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