Driver
interface Driver
dibi driver interface.
Methods
Connects to a database.
Disconnects from a database.
Internal: Executes the SQL query.
Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
Begins a transaction (if supported).
Commits statements in a transaction.
Rollback changes in a transaction.
Returns the connection resource.
Returns the connection reflector.
Encodes data for use in a SQL statement.
No description
No description
No description
No description
No description
Encodes string for use in a LIKE statement.
Injects LIMIT/OFFSET to the SQL query.
Details
at line 33
void
connect(array $config)
Connects to a database.
at line 40
void
disconnect()
Disconnects from a database.
at line 48
ResultDriver|null
query($sql)
Internal: Executes the SQL query.
at line 54
int|false
getAffectedRows()
Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
at line 60
int|false
getInsertId($sequence)
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
at line 68
void
begin($savepoint = null)
Begins a transaction (if supported).
at line 76
void
commit($savepoint = null)
Commits statements in a transaction.
at line 84
void
rollback($savepoint = null)
Rollback changes in a transaction.
at line 90
mixed
getResource()
Returns the connection resource.
at line 96
Reflector
getReflector()
Returns the connection reflector.
at line 103
string
escapeText($value)
Encodes data for use in a SQL statement.
at line 109
string
escapeBinary($value)
No description
at line 115
string
escapeIdentifier($value)
No description
at line 121
string
escapeBool($value)
No description
at line 127
string
escapeDate($value)
No description
at line 133
string
escapeDateTime($value)
No description
at line 141
string
escapeLike($value, $pos)
Encodes string for use in a LIKE statement.
at line 150
void
applyLimit($sql, $limit, $offset)
Injects LIMIT/OFFSET to the SQL query.