Class EntityQueryContextProviderAbstract

A query context provider vends transactional and non-transactional query contexts.

Constructors

Methods

  • Type Parameters

    • T

    Parameters

    • outerQueryInterface: any

    Returns ((transactionScope: ((queryInterface: any) => Promise<T>)) => Promise<T>)

      • (transactionScope): Promise<T>
      • Parameters

        • transactionScope: ((queryInterface: any) => Promise<T>)
            • (queryInterface): Promise<T>
            • Parameters

              • queryInterface: any

              Returns Promise<T>

        Returns Promise<T>

  • Vend a transaction runner for use in runInTransactionAsync.

    Type Parameters

    • T

    Parameters

    Returns ((transactionScope: ((queryInterface: any) => Promise<T>)) => Promise<T>)

      • (transactionScope): Promise<T>
      • Parameters

        • transactionScope: ((queryInterface: any) => Promise<T>)
            • (queryInterface): Promise<T>
            • Parameters

              • queryInterface: any

              Returns Promise<T>

        Returns Promise<T>