A transaction in Sprite, contains the transaction id, and methods to commit or rollback the transaction.

the DatabaseSession the transaction is taking place of

the id of the transaction

Constructors

Accessors

Methods

Constructors

Accessors

Methods

  • Perform a CRUD operation in the transaction.

    Type Parameters

    • T

    Parameters

    • language: ArcadeSupportedQueryLanguages

      the query language to use

    • command: string

      the command to execute

    • Optionalparameters: Record<string, string | number | boolean>

    Returns Promise<T>

    the result of the CRUD operation