dbShow | R Documentation |
Executes a statement to return the data description language (DDL) of the Athena table.
dbShow(conn, name, ...)
## S4 method for signature 'AthenaConnection'
dbShow(conn, name, ...)
conn |
A DBIConnection object, as returned by
|
name |
The table name, passed on to
|
... |
Other parameters passed on to methods. |
dbShow()
returns SQL
characters of the Athena table DDL.
## 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())
# write iris table to Athena
dbWriteTable(con, "iris",
iris,
partition = c("timestamp" = format(Sys.Date(), "%Y%m%d")),
s3.location = "s3://path/to/store/athena/table/"
)
# return table ddl
noctua::dbShow(con, "iris")
# disconnect from Athena
dbDisconnect(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.