ADSQLTableConstraint

public struct ADSQLTableConstraint

Holds information about a constraint being applied to table from a CREATE TABLE SQL instruction.

  • The type of the table constraint.

    Declaration

    Swift

    public var type: TableConstraintType = .primaryKey
  • The type of conflict handling for this table constraint.

    Declaration

    Swift

    public var conflictHandling: ADSQLConflictHandling = .none
  • The value for a Check constraint.

    Declaration

    Swift

    public var expression: ADSQLExpression?
  • A list of columns that this constraint effects.

    Declaration

    Swift

    public var columnList: [String] = []
  • Initializes a new instance of the table constraint.

    Declaration

    Swift

    public init()
  • Initializes a new instance of the table constraint.

    Declaration

    Swift

    public init(typeOf: TableConstraintType, withExpression expression: ADSQLExpression? = nil)

    Parameters

    typeOf

    The type of constraint being created.

    expression

    The value for a Check type of constraint.