Description Usage Arguments See Also Examples
Snowflake DBI wrapper
Connect to Snowflake
1 2 3 4 5 6 |
drv |
An object created by |
account_name |
Snowflake account name, which is the subdomain part of your Snowflake warehouse |
region_id |
id of the region assigned to your Snowflake account |
user |
Snowflake username |
password |
Snowflake password |
db |
default database to use |
schema |
default schema to use |
warehouse |
default warehouse / compute cluster to use |
... |
other parameters passed to the JDBC driver |
Snowflake JDBC Manual for more connections options.
1 2 3 4 5 6 7 8 9 10 | ## Not run:
require(DBI)
con <- dbConnect(AWR.Snowflake::Snowflake(),
account_name = 'foobar', user = 'username', password = '***', db = 'SNOWFLAKE_SAMPLE_DATA')
dbListTables(con)
dbGetQuery(con, 'SELECT COUNT(*) from TPCDS_SF100TCL.call_center')
dbGetQuery(con, 'SELECT * FROM tpch_sf1.lineitem limit 5')
dbDisconnect(con)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.