Description Usage Arguments Details Value Author(s) Examples
View source: R/flaky_connect.R
Connect to Snowflake using a DSN or connection string.
1 | flaky_connect(dsn = NULL, connection_string = NULL, set_default = TRUE, ...)
|
dsn |
Data Service Name as defined in '~/.odbc.ini'. |
connection_string |
Semi-colon separated string of key=value pairs. See Details for an example. |
set_default |
Set connection to default for session. |
... |
Additional ODBC keywords, these will be joined with the other arguments to form the final connection string. |
If using 'connection_string' it should be defined in the following structure: '"<name>=<value>;<name2>=<value2>"'.
A connection object.
Nick DiQuattro
1 2 3 4 5 6 7 8 | ## Not run:
# For a DSN named warehouse
con <- flaky_connect("warehouse")
# If you need to temporarily connect to a different set of credentials
other_con <- flaky_connect("warehouse_2", set_default = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.