athena_temp_db: athena_temp_db

View source: R/utils.R

athena_temp_dbR Documentation

athena_temp_db

Description

Returns a string containing the temporary database name for an Athena Connection. Will also check if that temporary database exists and if not will create it, unless check_exists = FALSE.

Usage

athena_temp_db(conn, check_exists = TRUE)

Arguments

conn

This is a connection object returned by connect_athena().

check_exists

This is TRUE by default. If set to FALSE then it will not check if the temporary database exists and will not create it if it does not exist.

Examples

 con <- connect_athena() # creates a connection with sensible defaults
 athena_temp_db(con)
 > [1] "mojap_de_temp_alpha_user_Rdbtools_User"


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