Member Junction
    Preparing search index...

    Internal class used by TransactionGroupBase and sub-classes to manage individual transactions

    Index

    Constructors

    • Creates a new TransactionItem

      Parameters

      • baseEntity: BaseEntity

        The base entity object this transaction is associated with

      • operationType: "Delete" | "Create" | "Update"

        The type of operation (Create, Update, Delete)

      • instruction: string

        The SQL or GraphQL instruction to execute

      • vars: any

        Variables to pass to the SQL or GraphQL

      • extraData: any

        Additional data needed for processing by the provider

      • callBack: (result: Record<string, any>, success: boolean) => void

        Callback function that gets called when the transaction completes

      Returns TransactionItem

    Properties

    PrepareBeforeSubmit?: () => Promise<void>
    RevertAfterRollback?: () => void

    Accessors

    • get CallBack(): (result: Record<string, any>, success: boolean) => void

      Callback function that gets called when the transaction is complete

      Returns (result: Record<string, any>, success: boolean) => void

      A function that takes a result object (database row) and a success boolean