View source: R/athena_connection.R
refresh_athena_connection | R Documentation |
Refreshes an athena connection to the AP (e.g. if the credentials have expired).
refresh_athena_connection(conn)
conn |
This is the connection which will be refreshed. |
con <- connect_athena() # creates a connection with sensible defaults
data <- dbGetQuery(con, "SELECT * FROM database.table") # queries and puts data in R environment
# Some time later...
refresh_athena_connection(con) # refresh the connection for any further queries on the same session
dbDisconnect(con) # disconnects the connection
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.