Method |
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. |
|
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. |
|