Executor Reference

class pyqldb.session.executor.Executor(transaction)[source]

A class to handle lambda execution.

Parameters

transaction (pyqldb.transaction.transaction.Transaction) – The transaction that this executor is running within.

abort()[source]

Abort the transaction and roll back any changes.

Raises

LambdaAbortedError – When invoked.

execute_statement(statement, parameters=[])[source]

Execute the statement.

Parameters
  • statement (str) – The statement to execute.

  • parameters (list) – Optional list of Ion values to fill in parameters of the statement.

Return type

pyqldb.cursor.stream_cursor.StreamCursor

Returns

Cursor on the result set of the statement.

Raises

TransactionClosedError – When this transaction is closed.