Class DibiFirebirdDriver
The dibi driver for Firebird/InterBase database.
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 DibiConnection options
DibiObject | --DibiFirebirdDriver
Implements interfaces:
| Constructor Summary | |
|---|---|
| public |
__construct
()
|
| Method Summary | |
|---|---|
| void |
applyLimit
(string &$sql, int $limit, int $offset)
Injects LIMIT/OFFSET to the SQL query.
|
| void |
begin
([string $savepoint =
NULL])
Begins a transaction (if supported).
|
| void |
commit
([string $savepoint =
NULL])
Commits statements in a transaction.
|
| void |
connect
(&$config)
Connects to a database.
|
| void |
disconnect
()
Disconnects from a database.
|
| string |
escape
(mixed $value, string $type)
Encodes data for use in a SQL statement.
|
| string |
escapeLike
(string $value, int $pos)
Encodes string for use in a LIKE statement.
|
| array |
fetch
(bool $assoc)
Fetches the row at current position and moves the internal cursor to the next position.
|
| void |
free
()
Frees the resources allocated for this result set.
|
| int|FALSE |
Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
|
| array |
getColumns
(string $table)
Returns metadata for all columns in a table.
|
| array |
getConstraints
(string $table)
Returns list of constraints in given table.
|
| array |
getForeignKeys
(string $table)
Returns metadata for all foreign keys in a table.
|
| array |
getFunctions
()
Returns list of user defined functions (UDF).
|
| array |
Returns list of generators.
|
| array |
getIndexes
(string $table)
Returns metadata for all indexes in a table (the constraints are included).
|
| array |
getIndices
(string $table)
Returns list of indices in given table (the constraints are not listed).
|
| int|FALSE |
getInsertId
(string $sequence)
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
|
| array |
Returns list of stored procedures.
|
| array |
getProceduresMeta
(string 0)
Returns metadata from stored procedures and their input and output parameters.
|
| resource |
getResource
()
Returns the connection resource.
|
| array |
Returns metadata for all columns in a result set.
|
| mysqli_result |
Returns the result set resource.
|
| int |
getRowCount
()
Returns the number of rows in a result set.
|
| array |
getTables
()
Returns list of tables.
|
| array |
getTriggers
([string $table =
NULL])
Returns list of triggers for given table.
|
| array |
getTriggersMeta
([string $table =
NULL], string 1)
Returns metadata for all triggers in a table or database.
|
| bool |
Is in transaction?
|
| IDibiResultDriver|NULL |
query
(string $sql)
Executes the SQL query.
|
| void |
rollback
([string $savepoint =
NULL])
Rollback changes in a transaction.
|
| boolean |
seek
(int $row)
Moves cursor position without fetching row.
|
| string |
unescape
(string $value, string $type)
Decodes data from result set.
|
| Constant Summary | |||
|---|---|---|---|
| int | ERROR_EXCEPTION_THROWN |
-836 |
line 32 |
| Constructor Details | ||
|---|---|---|
|
line 50 __constructpublic __construct () |
||
| Method Details | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 318 applyLimitpublic void applyLimit (string &$sql, int $limit, int $offset) Injects LIMIT/OFFSET to the SQL query.
|
|||||||||||||||||||||
|
line 169 beginpublic void begin ([string $savepoint = Begins a transaction (if supported).
|
|||||||||||||||||||||
|
line 186 commitpublic void commit ([string $savepoint = Commits statements in a transaction.
|
|||||||||||||||||||||
|
line 64 connectpublic void connect (&$config) Connects to a database.
|
|||||||||||||||||||||
|
line 102 disconnectpublic void disconnect () Disconnects from a database.
|
|||||||||||||||||||||
|
line 255 escapepublic string escape (mixed $value, string $type) Encodes data for use in a SQL statement.
|
|||||||||||||||||||||
|
line 287 escapeLikepublic string escapeLike (string $value, int $pos) Encodes string for use in a LIKE statement.
|
|||||||||||||||||||||
|
line 348 fetchpublic array fetch (bool $assoc) Fetches the row at current position and moves the internal cursor to the next position.
|
|||||||||||||||||||||
|
line 385 freepublic void free () Frees the resources allocated for this result set.
|
|||||||||||||||||||||
|
line 144 getAffectedRowspublic int|FALSE getAffectedRows () Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
|
|||||||||||||||||||||
|
line 449 getColumnspublic array getColumns (string $table) Returns metadata for all columns in a table.
|
|||||||||||||||||||||
|
line 598 getConstraintspublic array getConstraints (string $table) Returns list of constraints in given table.
|
|||||||||||||||||||||
|
line 542 getForeignKeyspublic array getForeignKeys (string $table) Returns metadata for all foreign keys in a table.
|
|||||||||||||||||||||
|
line 794 getFunctionspublic array getFunctions () Returns list of user defined functions (UDF).
|
|||||||||||||||||||||
|
line 773 getGeneratorspublic array getGenerators () Returns list of generators.
|
|||||||||||||||||||||
|
line 506 getIndexespublic array getIndexes (string $table) Returns metadata for all indexes in a table (the constraints are included).
|
|||||||||||||||||||||
|
line 574 getIndicespublic array getIndices (string $table) Returns list of indices in given table (the constraints are not listed).
|
|||||||||||||||||||||
|
line 156 getInsertIdpublic int|FALSE getInsertId (string $sequence) Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
|
|||||||||||||||||||||
|
line 753 getProcedurespublic array getProcedures () Returns list of stored procedures.
|
|||||||||||||||||||||
|
line 699 getProceduresMetapublic array getProceduresMeta (string 0) Returns metadata from stored procedures and their input and output parameters.
|
|||||||||||||||||||||
|
line 237 getResourcepublic resource getResource () Returns the connection resource.
|
|||||||||||||||||||||
|
line 408 getResultColumnspublic array getResultColumns () Returns metadata for all columns in a result set.
|
|||||||||||||||||||||
|
line 397 getResultResourcepublic mysqli_result getResultResource () Returns the result set resource.
|
|||||||||||||||||||||
|
line 336 getRowCountpublic int getRowCount () Returns the number of rows in a result set.
|
|||||||||||||||||||||
|
line 423 getTablespublic array getTables () Returns list of tables.
|
|||||||||||||||||||||
|
line 676 getTriggerspublic array getTriggers ([string $table = Returns list of triggers for given table. (Only if user has permissions on ALTER TABLE, INSERT/UPDATE/DELETE record in table)
|
|||||||||||||||||||||
|
line 626 getTriggersMetapublic array getTriggersMeta ([string $table = Returns metadata for all triggers in a table or database. (Only if user has permissions on ALTER TABLE, INSERT/UPDATE/DELETE record in table)
|
|||||||||||||||||||||
|
line 226 inTransactionpublic bool inTransaction () Is in transaction?
|
|||||||||||||||||||||
|
line 115 querypublic IDibiResultDriver|NULL query (string $sql) Executes the SQL query.
|
|||||||||||||||||||||
|
line 207 rollbackpublic void rollback ([string $savepoint = Rollback changes in a transaction.
|
|||||||||||||||||||||
|
line 374 seekpublic boolean seek (int $row) Moves cursor position without fetching row.
|
|||||||||||||||||||||
|
line 301 unescapepublic string unescape (string $value, string $type) Decodes data from result set.
|
|||||||||||||||||||||