Returns the statement that was passed to [dbSendQuery()] or [dbSendStatement()].
# S4 method for AthenaResult
dbGetStatement(res, ...)
An object inheriting from DBIResult.
Other arguments passed on to methods.
dbGetStatement()
returns a character.
if (FALSE) {
# Note:
# - Require AWS Account to run below example.
# - Different connection methods can be used please see `RAthena::dbConnect` documnentation
library(DBI)
# Demo connection to Athena using profile name
con <- dbConnect(RAthena::athena())
rs <- dbSendQuery(con, "SHOW TABLES in default")
dbGetStatement(rs)
}