ADSQLCreateTableInstruction

public struct ADSQLCreateTableInstruction: ADSQLInstruction

Holds information about a SQL CREATE TABLE instruction.

  • The name of the table being created.

    Declaration

    Swift

    public var name: String = ""
  • If true this is a temporary table, else false.

    Declaration

    Swift

    public var isTemporary: Bool = false
  • If true the table should only be created if it doesn’t already exist, else false.

    Declaration

    Swift

    public var ifNotExists: Bool = false
  • A list of columns being created in the table.

    Declaration

    Swift

    public var columns: [ADSQLColumnDefinition] = []
  • An optional list of constraints being applied to the table.

    Declaration

    Swift

    public var constraints: [ADSQLTableConstraint] = []
  • If true the table does not have an internal row id, else false.

    Declaration

    Swift

    public var withoutRowID: Bool = false
  • If this is a CREATE TABLE name AS SELECT… statement, this property holds the SELECT statement.

    Declaration

    Swift

    public var selectStatement: ADSQLSelectInstruction?
  • Initializes a new instance of the Create Table Instruction.

    Declaration

    Swift

    public init()
  • Initializes a new instance of the Create Table Instruction.

    Declaration

    Swift

    public init(tableName name: String, _ isTemporary: Bool, _ ifNotExists: Bool)

    Parameters

    name

    The name of the table being created.

    isTemporary

    Is a temporary table being created.

    ifNotExists

    Should the table only be created if it doesn’t already exist?