dbGetStatement: Get the statement associated with a result set

Description Usage Arguments Value See Also Examples

Description

Returns the statement that was passed to [dbSendQuery()] or [dbSendStatement()].

Usage

1
2
## S4 method for signature 'AthenaResult'
dbGetStatement(res, ...)

Arguments

res

An object inheriting from DBIResult.

...

Other arguments passed on to methods.

Value

dbGetStatement() returns a character.

See Also

dbGetStatement

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
# 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)

## End(Not run)

RAthena documentation built on Nov. 26, 2021, 5:19 p.m.