Description Usage Arguments Value See Also
By default, this function queries a local database named "Athena". If a connection object is passed into the function, the database of the connection object is queried instead. The caching feature is only available when using the built-in connection to Athena.
By default, this function queries a local database named "Athena". If a connection object is passed into the function, the database of the connection object is queried instead. The caching feature is only available when using the built-in connection to Athena.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | queryAthena(
sql_statement,
conn,
conn_fun = "chariot::connectAthena()",
cache_only = FALSE,
skip_cache = FALSE,
override_cache = FALSE,
cache_resultset = TRUE,
render_sql = TRUE,
verbose = TRUE,
sleepTime = 1
)
executeAthena(
sql_statement,
conn,
conn_fun = "connectAthena()",
cache_only = FALSE,
skip_cache = FALSE,
override_cache = FALSE,
cache_resultset = TRUE,
render_sql = FALSE,
verbose = FALSE,
sleepTime = 1
)
|
sql_statement |
SQL query |
conn |
Connection object. If provided, diverts queries to the connection instead of the local Athena instance without caching features. |
cache_only |
Loads from the cache and does not query the database. A NULL object is returned if a resultset was not cached. |
skip_cache |
Skip the caching altogether and directly query the database. |
override_cache |
If TRUE, the cache will not be loaded and will be overwritten by a new query. For override_cache to take effect, skip_cache should be FALSE. |
cache_resultset |
(deprecated) If TRUE, the resultset from the query will first be loaded from the cache. The query will be executed if a cached resultset is not retrieved for this particular query, after which the resultset will be cached. If FALSE, Athena or conn will be directly queried without any caching operations. |
render_sql |
If TRUE, the SQL will be printed back in the console prior to execution. Default: FALSE |
verbose |
If TRUE, prints loading and querying operations messages to the console. Default: FALSE |
sleepTime |
Argument for |
a tibble
A tibble
parse_expr
is_conn_open
,query
,cacheQuery
,loadCachedQuery
c("typewrite", "typewrite")
,character(0)
as_tibble
typewrite_bold
,typewrite
str_replace
,str_remove
query
,cacheQuery
,loadCachedQuery
as_tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.