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.
Interface for execution against QLDB.