Driver
interface Driver
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 32
void
connect(array $config)
Connects to a database.
at line 39
void
disconnect()
Disconnects from a database.
at line 47
ResultDriver|null
query($sql)
Internal: Executes the SQL query.
at line 53
int|false
getAffectedRows()
Gets the number of affected rows by the last INSERT, UPDATE or DELETE query.
at line 59
int|false
getInsertId($sequence)
Retrieves the ID generated for an AUTO_INCREMENT column by the previous INSERT query.
at line 67
void
begin($savepoint = null)
Begins a transaction (if supported).
at line 75
void
commit($savepoint = null)
Commits statements in a transaction.
at line 83
void
rollback($savepoint = null)
Rollback changes in a transaction.
at line 89
mixed
getResource()
Returns the connection resource.
at line 95
Reflector
getReflector()
Returns the connection reflector.
at line 102
string
escapeText($value)
Encodes data for use in a SQL statement.
at line 108
string
escapeBinary($value)
No description
at line 114
string
escapeIdentifier($value)
No description
at line 120
string
escapeBool($value)
No description
at line 126
string
escapeDate($value)
No description
at line 132
string
escapeDateTime($value)
No description
at line 140
string
escapeLike($value, $pos)
Encodes string for use in a LIKE statement.
at line 149
void
applyLimit($sql, $limit, $offset)
Injects LIMIT/OFFSET to the SQL query.