dbGetTables | R Documentation |
Method to get Athena schema, tables and table types return as a data.frame
dbGetTables(conn, ...)
## S4 method for signature 'AthenaConnection'
dbGetTables(conn, catalog = NULL, schema = NULL, ...)
conn |
A DBIConnection object, as returned by
|
... |
Other parameters passed on to methods. |
catalog |
Athena catalog, default set to NULL to return all tables from all Athena catalogs |
schema |
Athena schema, default set to NULL to return all tables from all Athena schemas. Note: The use of DATABASE and SCHEMA is interchangeable within Athena. |
dbGetTables()
returns a data.frame.
## Not run:
# Note:
# - Require AWS Account to run below example.
# - Different connection methods can be used please see `noctua::dbConnect` documnentation
library(DBI)
library(noctua)
# Demo connection to Athena using profile name
con <- dbConnect(noctua::athena())
# Return hierarchy of tables in Athena
dbGetTables(con)
# Disconnect conenction
dbDisconnect(con)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.