MySqlDriver
class MySqlDriver extends Object implements ISupplementalDriver
Supplemental MySQL database driver.
Constants
ERROR_ACCESS_DENIED |
|
ERROR_DUPLICATE_ENTRY |
|
ERROR_DATA_TRUNCATED |
|
Methods
Driver options:
- charset => character encoding to set (default is utf8 or utf8mb4 since MySQL 5.5.3)
- sqlmode => see http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html
Delimites identifier for use in a SQL statement.
Formats boolean for use in a SQL statement.
Formats date-time for use in a SQL statement.
Encodes string for use in a LIKE statement.
Injects LIMIT/OFFSET to the SQL query.
Normalizes result row.
Returns list of tables.
Returns metadata for all columns in a table.
Returns metadata for all indexes in a table.
Returns metadata for all foreign keys in a table.
Returns associative array of detected types (IReflection::FIELD_*) in result set.
No description
Details
at line 31
__construct(Connection $connection, array $options)
Driver options:
- charset => character encoding to set (default is utf8 or utf8mb4 since MySQL 5.5.3)
- sqlmode => see http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html
at line 49
DriverException
convertException(PDOException $e)
No description
at line 76
string
delimite($name)
Delimites identifier for use in a SQL statement.
at line 86
mixed
formatBool($value)
Formats boolean for use in a SQL statement.
at line 95
string
formatDateTime($value)
Formats date-time for use in a SQL statement.
at line 104
formatDateInterval(DateInterval $value)
Formats date-time interval for use in a SQL statement.
at line 113
string
formatLike($value, $pos)
Encodes string for use in a LIKE statement.
at line 124
void
applyLimit($sql, $limit, $offset)
Injects LIMIT/OFFSET to the SQL query.
at line 140
array
normalizeRow($row)
Normalizes result row.
at line 152
array
getTables()
Returns list of tables.
at line 168
array
getColumns($table)
Returns metadata for all columns in a table.
at line 193
array
getIndexes($table)
Returns metadata for all indexes in a table.
at line 209
array
getForeignKeys($table)
Returns metadata for all foreign keys in a table.
at line 229
array
getColumnTypes(PDOStatement $statement)
Returns associative array of detected types (IReflection::FIELD_*) in result set.
at line 250
bool
isSupported($item)
No description