Query history#

Query history#

class pystarburst.query_history.QueryHistory(session: Session)#

Bases: object

A context manager that listens to and records SQL queries that are pushed down to the Trino cluster.

property queries: List[QueryRecord]#
class pystarburst.query_history.QueryRecord(query_id: str, sql_text: str)#

Bases: NamedTuple

Contains the query information returned from the Trino cluster after the query is run.

query_id: str#

Alias for field number 0

sql_text: str#

Alias for field number 1