An S4 class representing the result of a statement submitted to Trino.
Usage
# S4 method for class 'TrinoResult'
show(object)
# S4 method for class 'TrinoResult'
dbGetStatement(res, ...)
# S4 method for class 'TrinoResult'
dbGetRowCount(res, ...)
# S4 method for class 'TrinoResult'
dbGetRowsAffected(res, ...)
# S4 method for class 'TrinoResult'
dbColumnInfo(res, ...)Details
Trino returns results page by page; each payload carries a nextUri to
follow until the query reaches a terminal state. Because that progress is
mutated as rows are fetched, and S4 slots are copy-on-modify, the mutable
part of the result lives in the state environment rather than in slots.
This makes res behave like a cursor, as DBI expects.
Slots
connectionThe TrinoConnection the statement was sent on.
statementThe SQL statement, as a string.
stateEnvironment holding the mutable cursor state:
next_uri,columns,data,completed,rows_fetched,query_id, and theupdate_typeandupdate_countof a statement that changes something.