Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Executable

Interface for execution against QLDB.

Hierarchy

Index

Properties

Properties

executeLambda

executeLambda: function

Execute a lambda within a new transaction and commit the transaction, retrying up to the retry limit if an OCC conflict or retriable exception occurs.

param

A lambda representing the block of code to be executed within the transaction. This cannot have any side effects as it may be invoked multiple times, and the result cannot be trusted until the transaction is committed.

param

An optional lambda that is invoked when the querylambda is about to be retried due to an OCC conflict or retriable exception.

returns

Promise which fulfills with the return value of the queryLambda which could be a Result on the result set of a statement within the lambda.

Type declaration

    • (queryLambda: function, retryIndicator?: function): Promise<any>
    • Parameters

      • queryLambda: function
      • Optional retryIndicator: function
          • (retryAttempt: number): void
          • Parameters

            • retryAttempt: number

            Returns void

      Returns Promise<any>

Generated using TypeDoc