Interface IDibiDriver
dibi driver interface.
| 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
(string $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.
|
| int|FALSE |
Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
|
| int|FALSE |
getInsertId
($sequence)
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
|
| IDibiReflector |
getReflector
()
Returns the connection reflector.
|
| mixed |
getResource
()
Returns the connection resource.
|
| IDibiResultDriver|NULL |
query
(string $sql)
Internal: Executes the SQL query.
|
| void |
rollback
([string $savepoint =
NULL])
Rollback changes in a transaction.
|
| Method Details | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
line 184 applyLimitpublic void applyLimit (string &$sql, int $limit, int $offset) Injects LIMIT/OFFSET to the SQL query.
|
|||||||||||||||||||||
|
line 130 beginpublic void begin ([string $savepoint = Begins a transaction (if supported).
|
|||||||||||||||||||||
|
line 138 commitpublic void commit ([string $savepoint = Commits statements in a transaction.
|
|||||||||||||||||||||
|
line 95 connectpublic void connect (&$config) Connects to a database.
|
|||||||||||||||||||||
|
line 102 disconnectpublic void disconnect () Disconnects from a database.
|
|||||||||||||||||||||
|
line 167 escapepublic string escape (string $value, string $type) Encodes data for use in a SQL statement.
|
|||||||||||||||||||||
|
line 175 escapeLikepublic string escapeLike (string $value, int $pos) Encodes string for use in a LIKE statement.
|
|||||||||||||||||||||
|
line 116 getAffectedRowspublic int|FALSE getAffectedRows () Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
|
|||||||||||||||||||||
|
line 122 getInsertIdpublic int|FALSE getInsertId ($sequence) Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
|
|||||||||||||||||||||
|
line 158 getReflectorpublic IDibiReflector getReflector () Returns the connection reflector. |
|||||||||||||||||||||
|
line 152 getResourcepublic mixed getResource () Returns the connection resource. |
|||||||||||||||||||||
|
line 110 querypublic IDibiResultDriver|NULL query (string $sql) Internal: Executes the SQL query.
|
|||||||||||||||||||||
|
line 146 rollbackpublic void rollback ([string $savepoint = Rollback changes in a transaction.
|
|||||||||||||||||||||