PHP Class Dibi\Drivers\FirebirdDriver

Driver options: - database => the path to database file (server:/path/database.fdb) - username (or user) - password (or pass) - charset => character encoding to set - buffers (int) => buffers is the number of database buffers to allocate for the server-side cache. If 0 or omitted, server chooses its own default. - resource (resource) => existing connection resource - lazy, profiler, result, substitutes, ... => see Dibi\Connection options
Inheritance: implements Dibi\Driver, implements Dibi\ResultDriver, implements Dibi\Reflector, use trait Dibi\Strict
Afficher le fichier Open project: dg/dibi

Méthodes publiques

Méthode Description
__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.
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.
getConstraints ( $table ) : array Returns list of constraints in given table.
getForeignKeys ( $table ) : array Returns metadata for all foreign keys in a table.
getFunctions ( ) : array Returns list of user defined functions (UDF).
getGenerators ( ) : array Returns list of generators.
getIndexes ( $table ) : array Returns metadata for all indexes in a table (the constraints are included).
getIndices ( $table ) : array Returns list of indices in given table (the constraints are not listed).
getInsertId ( $sequence ) : integer | FALSE Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
getProcedures ( ) : array Returns list of stored procedures.
getProceduresMeta ( ) : array Returns metadata from stored procedures and their input and output parameters.
getReflector ( ) : Dibi\Reflector Returns the connection reflector.
getResource ( ) : resource Returns the connection resource.
getResultColumns ( ) : array Returns metadata for all columns in a result set.
getResultResource ( ) : resource Returns the result set resource.
getRowCount ( ) : integer Returns the number of rows in a result set.
getTables ( ) : array Returns list of tables.
getTriggers ( $table = NULL ) : array Returns list of triggers for given table.
getTriggersMeta ( $table = NULL ) : array Returns metadata for all triggers in a table or database.
inTransaction ( ) : boolean Is in transaction?
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.

Method Details

__construct() public méthode

public __construct ( )

__destruct() public méthode

Automatically frees the resources allocated for this result set.
public __destruct ( ) : void
Résultat void

applyLimit() public méthode

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

begin() public méthode

Begins a transaction (if supported).
public begin ( $savepoint = NULL ) : void
Résultat void

commit() public méthode

Commits statements in a transaction.
public commit ( $savepoint = NULL ) : void
Résultat void

connect() public méthode

Connects to a database.
public connect ( array &$config ) : void
$config array
Résultat void

createResultDriver() public méthode

Result set driver factory.
public createResultDriver ( $resource ) : Dibi\ResultDriver
Résultat Dibi\ResultDriver

disconnect() public méthode

Disconnects from a database.
public disconnect ( ) : void
Résultat void

escape() public méthode

Deprecation:
public escape ( $value, $type )

escapeBinary() public méthode

public escapeBinary ( $value )

escapeBool() public méthode

public escapeBool ( $value )

escapeDate() public méthode

public escapeDate ( $value )

escapeDateTime() public méthode

public escapeDateTime ( $value )

escapeIdentifier() public méthode

public escapeIdentifier ( $value )

escapeLike() public méthode

Encodes string for use in a LIKE statement.
public escapeLike ( $value, $pos ) : string
Résultat string

escapeText() public méthode

Encodes data for use in a SQL statement.
public escapeText ( $value ) : string
Résultat string

fetch() public méthode

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

free() public méthode

Frees the resources allocated for this result set.
public free ( ) : void
Résultat void

getAffectedRows() public méthode

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

getColumns() public méthode

Returns metadata for all columns in a table.
public getColumns ( $table ) : array
Résultat array

getConstraints() public méthode

Returns list of constraints in given table.
public getConstraints ( $table ) : array
Résultat array

getForeignKeys() public méthode

Returns metadata for all foreign keys in a table.
public getForeignKeys ( $table ) : array
Résultat array

getFunctions() public méthode

Returns list of user defined functions (UDF).
public getFunctions ( ) : array
Résultat array

getGenerators() public méthode

Returns list of generators.
public getGenerators ( ) : array
Résultat array

getIndexes() public méthode

Returns metadata for all indexes in a table (the constraints are included).
public getIndexes ( $table ) : array
Résultat array

getIndices() public méthode

Returns list of indices in given table (the constraints are not listed).
public getIndices ( $table ) : array
Résultat array

getInsertId() public méthode

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

getProcedures() public méthode

Returns list of stored procedures.
public getProcedures ( ) : array
Résultat array

getProceduresMeta() public méthode

Returns metadata from stored procedures and their input and output parameters.
public getProceduresMeta ( ) : array
Résultat array

getReflector() public méthode

Returns the connection reflector.
public getReflector ( ) : Dibi\Reflector
Résultat Dibi\Reflector

getResource() public méthode

Returns the connection resource.
public getResource ( ) : resource
Résultat resource

getResultColumns() public méthode

Returns metadata for all columns in a result set.
public getResultColumns ( ) : array
Résultat array

getResultResource() public méthode

Returns the result set resource.
public getResultResource ( ) : resource
Résultat resource

getRowCount() public méthode

Returns the number of rows in a result set.
public getRowCount ( ) : integer
Résultat integer

getTables() public méthode

Returns list of tables.
public getTables ( ) : array
Résultat array

getTriggers() public méthode

(Only if user has permissions on ALTER TABLE, INSERT/UPDATE/DELETE record in table)
public getTriggers ( $table = NULL ) : array
Résultat array

getTriggersMeta() public méthode

(Only if user has permissions on ALTER TABLE, INSERT/UPDATE/DELETE record in table)
public getTriggersMeta ( $table = NULL ) : array
Résultat array

inTransaction() public méthode

Is in transaction?
public inTransaction ( ) : boolean
Résultat boolean

query() public méthode

Executes the SQL query.
public query ( $sql ) : Dibi\ResultDriver | null
Résultat Dibi\ResultDriver | null

rollback() public méthode

Rollback changes in a transaction.
public rollback ( $savepoint = NULL ) : void
Résultat void

seek() public méthode

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

unescapeBinary() public méthode

Decodes data from result set.
public unescapeBinary ( $value ) : string
Résultat string