Skip to content

Initializer

init(_:dataType:constraints:)

Create a new columm definition from a name, data type, and zero or more constraints.
init(_ name: String, dataType: SQLDataType, constraints: [SQLColumnConstraintAlgorithm] = [])

Parameters

name

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.