ADSQLColumnDefinition

public struct ADSQLColumnDefinition

Holds information about a column definition read from a CREATE TABLE instruction when parsing a SQL statement.

  • The column name.

    Declaration

    Swift

    public var name: String = ""
  • The optional column alias.

    Declaration

    Swift

    public var alias: String = ""
  • The type of information stored in the column as defined by a ADSQLColumnType.

    Declaration

    Swift

    public var type: ADSQLColumnType = .noneType
  • A list of optional constraints for the column

    Declaration

    Swift

    public var constraints: [ADSQLColumnConstraint] = []
  • Creates a new instance of the column definition.

    Declaration

    Swift

    public init()
  • Creates a new instance of the column definition.

    Declaration

    Swift

    public init(columnName name: String)

    Parameters

    name

    The name of the column to create.