Description Usage Arguments Details Source Examples
View source: R/flaky_current.R
Queries for context variables related to the current Snowflake session. Examples are ROLE, CLIENT, etc.
1 | flaky_current(current_set, con = getOption("flaky.con"))
|
current_set |
Optional character vector that contains the base of context variable. When missing all variables are returned. |
con |
A connection object. Typically generated by [flaky_connect()]. |
The boilerplate parts of the base name are added by the function. For example '"region"' will become 'CURRENT_REGION()' and '"role"' will become 'CURRENT_ROLE()'.
<https://docs.snowflake.net/manuals/sql-reference/functions-context.html>
1 2 3 4 5 6 7 8 9 10 | /dontrun{
# See all variables
flaky_current()
# See one variable
flaky_current("warehouse")
# See a few variables
flaky_current(c("role", "schema"))
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.