ISupplementalDriver
interface ISupplementalDriver
Supplemental PDO database driver.
Constants
SUPPORT_SEQUENCE |
|
SUPPORT_SELECT_UNGROUPED_COLUMNS |
|
SUPPORT_MULTI_INSERT_AS_SELECT |
|
SUPPORT_MULTI_COLUMN_AS_OR_COND |
|
SUPPORT_SUBSELECT |
|
SUPPORT_SCHEMA |
|
Methods
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 (IStructure::FIELD_*) in result set.
Cheks if driver supports specific property
Details
at line 26
DriverException
convertException(PDOException $e)
No description
at line 33
string
delimite($name)
Delimites identifier for use in a SQL statement.
at line 40
mixed
formatBool($value)
Formats boolean for use in a SQL statement.
at line 46
string
formatDateTime($value)
Formats date-time for use in a SQL statement.
at line 60
string
formatLike($value, $pos)
Encodes string for use in a LIKE statement.
at line 69
void
applyLimit($sql, $limit, $offset)
Injects LIMIT/OFFSET to the SQL query.
at line 76
array
normalizeRow($row)
Normalizes result row.
at line 86
array
getTables()
Returns list of tables.
at line 93
array
getColumns($table)
Returns metadata for all columns in a table.
at line 100
array
getIndexes($table)
Returns metadata for all indexes in a table.
at line 107
array
getForeignKeys($table)
Returns metadata for all foreign keys in a table.
at line 114
array
getColumnTypes(PDOStatement $statement)
Returns associative array of detected types (IStructure::FIELD_*) in result set.
at line 121
bool
isSupported($item)
Cheks if driver supports specific property