ADSQLInsertInstruction

public struct ADSQLInsertInstruction: ADSQLInstruction

Holds all information about a SQL INSERT instruction.

  • The type of insert to perform.

    Declaration

    Swift

    public var action: Action = .insert
  • The name of the table that a row is being inserted into.

    Declaration

    Swift

    public var tableName: String = ""
  • The name of the columns being inserted into the table row.

    Declaration

    Swift

    public var columnNames: [String] = []
  • The values to insert into the table row.

    Declaration

    Swift

    public var values: [ADSQLExpression] = []
  • An optional SELECT statement used to populate the new table row(s).

    Declaration

    Swift

    public var selectStatement: ADSQLSelectInstruction?
  • If true, the new row should be created with the default value of the table.

    Declaration

    Swift

    public var defaultValues: Bool = false