ADSQLTransactionInstruction

public struct ADSQLTransactionInstruction: ADSQLInstruction

Holds all information about a SQL BEGIN, COMMIT, END, ROLLBACK, SAVEPOINT or RELEASE instruction.

  • Defines the type of transaction being performed.

    See more

    Declaration

    Swift

    public enum Action
  • Defined the type of transaction.

    Declaration

    Swift

    public var action: Action = .beginImmediate
  • For ROLLBACK, SAVEPOINT and RELEASE transactions, defines the name of the save point.

    Declaration

    Swift

    public var savepointName: String = ""
  • Creates a new instance of the transaction.

    Declaration

    Swift

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

    Declaration

    Swift

    public init(forAction: Action)

    Parameters

    forAction

    The type of transaction being created.