Creates a PooledQldbSession.
The QldbSession object that represents a session to a QLDB ledger.
A lambda that is invoked when PooledQldbSession.close
is called.
Check and throw if this session is closed.
Close this PooledQldbSession
and return the underlying QldbSession
to the pool.
Implicitly start a transaction, execute the lambda, and commit the transaction, retrying up to the retry limit if an OCC conflict or retriable exception occurs.
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.
An optional lambda that is invoked when the querylambda
is about to be retried due to an
OCC conflict or retriable exception.
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.
Return the name of the ledger for the session.
Returns the name of the ledger as a string.
Return the session token for this session.
Returns the session token as a string.
Lists all tables in the ledger.
Promise which fulfills with an array of table names.
Start a transaction using an available database session.
Promise which fulfills with a Transaction object.
Generated using TypeDoc
Represents a pooled session object. See
QldbSessionImpl
for more details.