Engine
interface Engine
Database platform specific operations and reflection capabilities.
Constants
SupportSequence |
|
SupportSelectUngroupedColumns |
|
SupportMultiInsertAsSelect |
|
SupportMultiColumnAsOrCondition |
|
SupportSubselect |
|
SupportSchema |
|
Methods
Checks if the engine supports a specific feature.
Converts a value from the database to a PHP value.
Escapes an identifier for use in an SQL statement.
Applies LIMIT and OFFSET clauses to an SQL query.
Returns a list of all tables in the database.
Returns detailed information about columns in a table.
Returns information about indexes in a table.
Returns information about foreign keys in a table.
Details
at line 33
bool
isSupported(string $feature)
Checks if the engine supports a specific feature.
at line 36
string|null
classifyException(DriverException $e)
Maps a driver exception to an appropriate exception class.
at line 39
mixed
convertToPhp(mixed $value, array $meta, TypeConverter $converter)
Converts a value from the database to a PHP value.
at line 44
string
delimit(string $name)
Escapes an identifier for use in an SQL statement.
at line 47
string
formatDateTime(DateTimeInterface $value)
Formats a date-time value for use in an SQL statement.
at line 50
string
formatDateInterval(DateInterval $value)
Formats a date-time interval for use in an SQL statement.
at line 53
string
applyLimit(string $sql, int|null $limit, int|null $offset)
Applies LIMIT and OFFSET clauses to an SQL query.
at line 61
array
getTables()
Returns a list of all tables in the database.
at line 67
array
getColumns(string $table)
Returns detailed information about columns in a table.
at line 73
array
getIndexes(string $table)
Returns information about indexes in a table.
at line 79
array
getForeignKeys(string $table)
Returns information about foreign keys in a table.