ADSQLCreateTriggerInstruction

public struct ADSQLCreateTriggerInstruction: ADSQLInstruction

Holds information about a SQL CREATE TRIGGER instruction.

  • Defines when a triger should be fired.

    See more

    Declaration

    Swift

    public enum WhenToTrigger
  • Defines the trigger’s type.

    See more

    Declaration

    Swift

    public enum TriggerType
  • The name of the trigger being created.

    Declaration

    Swift

    public var triggerName: String = ""
  • Defines when the trigger should fire.

    Declaration

    Swift

    public var triggerWhen: WhenToTrigger = .before
  • Defines the type of trigger being created.

    Declaration

    Swift

    public var triggerType: TriggerType = .delete
  • Defines the list of columns that form the trigger.

    Declaration

    Swift

    public var columnList: [String] = []
  • Defines the table that the trigger is being created against.

    Declaration

    Swift

    public var tableName: String = ""
  • If true, the trigger will execute after each table row being modified by a SQL statement.

    Declaration

    Swift

    public var forEachRow: Bool = false
  • The expression defining when the trigger will fire.

    Declaration

    Swift

    public var whenExpression: ADSQLExpression?
  • A list of instruction to run when the trigger fires.

    Declaration

    Swift

    public var instructions: [ADSQLInstruction] = []