Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDbTransaction

Defines transaction operations.

Hierarchy

Implemented by

Index

Methods

transaction

  • Execute async operations in the given action callback inside a database transaction block. The action callback must return a promise that is fulfilled if all operations have executed without errors, and that is rejected if any of the operations fail. All transactional operations must be invoked on the transaction context passed in the action callback.

    Returns a promise that if fulfilled signals that the transaction has been committed. In this case, the promise resolves to the value of the resolved action callback. The promise is rejected if the transaction is rolled back because the action callback's returned promise has been rejected.

    Type parameters

    • T

    Parameters

    Returns Promise<T>

Generated using TypeDoc