ColumnConstraintType

public enum ColumnConstraintType

Defines the type of column constraint.

  • The column is the primary key for the table in an ascending order.

    Declaration

    Swift

    case primaryKeyAsc
  • The column is the primary key for the table in a descending order.

    Declaration

    Swift

    case primaryKeyDesc
  • The column’s value cannot be NULL.

    Declaration

    Swift

    case notNull
  • The column’s value must be unique inside the table.

    Declaration

    Swift

    case unique
  • A custom constraint is being applied to the columns value.

    Declaration

    Swift

    case check
  • If this column is NULL, it will be replaced with this default value.

    Declaration

    Swift

    case defaultValue
  • The columns has a collation constraint.

    Declaration

    Swift

    case collate
  • The column value is a foreign key to another table’s row.

    Declaration

    Swift

    case foreignKey