Executor Reference

class pyqldb.execution.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 (Variable length argument list) –

    Ion values or Python native types that are convertible to Ion for filling in parameters of the statement.

    Details on conversion support and rules.

Return type

pyqldb.cursor.stream_cursor.StreamCursor

Returns

Cursor on the result set of the statement.

property transaction_id

The read-only ID of this transaction.