OdbcDriver
class OdbcDriver extends Object implements ISupplementalDriver
Supplemental ODBC database driver.
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 (IReflection::FIELD_*) in result set.
No description
Details
at line 27
string
delimite($name)
Delimites identifier for use in a SQL statement.
at line 36
mixed
formatBool($value)
Formats boolean for use in a SQL statement.
at line 45
string
formatDateTime($value)
Formats date-time for use in a SQL statement.
at line 54
string
formatLike($value, $pos)
Encodes string for use in a LIKE statement.
at line 64
void
applyLimit($sql, $limit, $offset)
Injects LIMIT/OFFSET to the SQL query.
at line 82
array
normalizeRow($row)
Normalizes result row.
at line 94
array
getTables()
Returns list of tables.
at line 103
array
getColumns($table)
Returns metadata for all columns in a table.
at line 112
array
getIndexes($table)
Returns metadata for all indexes in a table.
at line 121
array
getForeignKeys($table)
Returns metadata for all foreign keys in a table.
at line 130
array
getColumnTypes(PDOStatement $statement)
Returns associative array of detected types (IReflection::FIELD_*) in result set.
at line 140
bool
isSupported($item)
No description