refresh_athena_connection: refresh_athena_connection

View source: R/athena_connection.R

refresh_athena_connectionR Documentation

refresh_athena_connection

Description

Refreshes an athena connection to the AP (e.g. if the credentials have expired).

Usage

refresh_athena_connection(conn)

Arguments

conn

This is the connection which will be refreshed.

Examples

 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

moj-analytical-services/Rdbtools documentation built on June 22, 2024, 8:46 p.m.