ColumnSchemaAwareInterface
in
Table of Contents
Methods
- convertColumnDefinition() : array<string, mixed>|null
- Convert a SQL column definition to an abstract type definition.
- getColumnSql() : string|null
- Generate the SQL fragment for a single column in a table.
Methods
convertColumnDefinition()
Convert a SQL column definition to an abstract type definition.
public
convertColumnDefinition(array<string|int, mixed> $definition, DriverInterface $driver) : array<string, mixed>|null
Parameters
- $definition : array<string|int, mixed>
-
The column definition.
- $driver : DriverInterface
-
The driver instance being used.
Return values
array<string, mixed>|null —Array of column information, or null
in case the column isn't processed by this type.
getColumnSql()
Generate the SQL fragment for a single column in a table.
public
getColumnSql(TableSchemaInterface $schema, string $column, DriverInterface $driver) : string|null
Parameters
- $schema : TableSchemaInterface
-
The table schema instance the column is in.
- $column : string
-
The name of the column.
- $driver : DriverInterface
-
The driver instance being used.
Return values
string|null —An SQL fragment, or null
in case the column isn't processed by this type.