BaseQldbSession Reference

class pyqldb.session.base_qldb_session.BaseQldbSession[source]

An abstract base class representing a session to a specific ledger within QLDB.

abstract close()[source]

Close this QldbSession. This method must be overridden.

abstract execute_lambda(query_lambda, retry_indicator)[source]

Implicitly start a transaction, execute the lambda function, and commit the transaction, retrying up to the retry limit if an OCC conflict or retriable exception occurs. This method must be overridden.

abstract execute_statement(statement, parameters, retry_indicator)[source]

Implicitly start a transaction, execute the statement, and commit the transaction, retrying up to the retry limit if an OCC conflict or retriable exception occurs. This method must be overridden.

abstract property ledger_name

Get the ledger name. This method must be overridden.

abstract list_tables()[source]

Get the list of table names in the ledger. This method must be overridden.

abstract property session_token

Get the session token. This method must be overridden.

abstract start_transaction()[source]

Start a transaction using an available database session. This method must be overridden.