dbGetStatement | R Documentation |
Returns the statement that was passed to [dbSendQuery()] or [dbSendStatement()].
## S4 method for signature 'AthenaResult'
dbGetStatement(res, ...)
res |
An object inheriting from DBIResult. |
... |
Other arguments passed on to methods. |
dbGetStatement()
returns a character.
dbGetStatement
## Not run:
# Note:
# - Require AWS Account to run below example.
# - Different connection methods can be used please see `noctua::dbConnect` documnentation
library(DBI)
# Demo connection to Athena using profile name
con <- dbConnect(noctua::athena())
rs <- dbSendQuery(con, "SHOW TABLES in default")
dbGetStatement(rs)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.