[NOT RECOMMENDED] It is not recommended to use this class directly during transaction execution.
Instead, please use QldbDriver.executeLambda to execute the transaction.
[NOT RECOMMENDED] It is not recommended to use this class directly during transaction execution.
Instead, please use QldbDriver.executeLambda to execute the transaction.
Type declaration
(): void
Returns void
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.
[NOT RECOMMENDED] It is not recommended to use this method.
Type declaration
(): string
Returns string
getSessionToken
getSessionToken:function
deprecated
[NOT RECOMMENDED] It is not recommended to use this method.
Type declaration
(): string
Returns string
getTableNames
getTableNames:function
deprecated
[NOT RECOMMENDED] It is not recommended to use this method.
Instead, please use QldbDriver.getTableNames to get table names.
Type declaration
(): Promise<string[]>
Returns Promise<string[]>
startTransaction
startTransaction:function
deprecated
[NOT RECOMMENDED] It is not recommended to use this class directly during transaction execution.
Instead, please use QldbDriver.executeLambda to execute the transaction.
[NOT RECOMMENDED] It is not recommended to use this class directly during transaction execution. Instead, please use
QldbDriver.executeLambda
to execute the transaction.