| dbGetQuery,TrinoConnection,character-method | R Documentation |
Submits the statement, fetches every row and clears the result, even if fetching fails.
## S4 method for signature 'TrinoConnection,character'
dbGetQuery(conn, statement, n = -1, ...)
conn |
A TrinoConnection object. |
statement |
A single SQL statement. |
n |
Number of rows to return; |
... |
Unused, for compatibility with the generic. |
A tibble.
con <- DBI::dbConnect(RTrino::Trino(), host = Sys.getenv("RTRINO_TEST_URL"),
catalog = "tpch", schema = "tiny")
DBI::dbGetQuery(con, "SELECT * FROM nation LIMIT 5")
DBI::dbGetQuery(con, "SELECT * FROM nation", n = 3)
DBI::dbDisconnect(con)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.