#' Query local Athena
#' @importFrom DBI dbGetQuery
#' @importFrom DBI dbDisconnect
#' @export
get_athena_query <-
function (sql_statement)
{
conn <- connect_to_local_postgres(dbname = "athena")
data <- DBI::dbGetQuery(conn = conn, statement = sql_statement)
DBI::dbDisconnect(conn)
return(data)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.