| TrinoResult-class | R Documentation |
An S4 class representing the result of a statement submitted to Trino.
## S4 method for signature 'TrinoResult'
show(object)
## S4 method for signature 'TrinoResult'
dbGetStatement(res, ...)
## S4 method for signature 'TrinoResult'
dbGetRowCount(res, ...)
## S4 method for signature 'TrinoResult'
dbGetRowsAffected(res, ...)
## S4 method for signature 'TrinoResult'
dbColumnInfo(res, ...)
object |
A TrinoResult object. |
res |
A TrinoResult object. |
... |
Unused, for compatibility with the generic. |
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.
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 the
update_type and update_count of a statement that changes something.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.