Skip to content

Initializer

init(column:dataType:constraints:)

Create a new columm definition from a name, data type, and zero or more constraints.
init(column: any SQLExpression, dataType: any SQLExpression, constraints: [any SQLExpression] = [])

Parameters

column

The column name to create or alter.

dataType

The desired data type of the column.

constraints

The constraints to apply to the column, if any.