Interface ColumnSchemaAwareInterface
Namespace: Cake\Database\Type
Method Summary
-
convertColumnDefinition() public
Convert a SQL column definition to an abstract type definition.
-
getColumnSql() public
Generate the SQL fragment for a single column in a table.
Method Detail
convertColumnDefinition() ¶ public
convertColumnDefinition(array $definition, Cake\Database\DriverInterface $driver): array<string, mixed>|null
Convert a SQL column definition to an abstract type definition.
Parameters
-
array
$definition The column definition.
-
Cake\Database\DriverInterface
$driver The driver instance being used.
Returns
array<string, mixed>|null
getColumnSql() ¶ public
getColumnSql(Cake\Database\Schema\TableSchemaInterface $schema, string $column, Cake\Database\DriverInterface $driver): string|null
Generate the SQL fragment for a single column in a table.
Parameters
-
Cake\Database\Schema\TableSchemaInterface
$schema The table schema instance the column is in.
-
string
$column The name of the column.
-
Cake\Database\DriverInterface
$driver The driver instance being used.
Returns
string|null