Skip to content

daroczig/AWR.Snowflake

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
R
 
 
 
 
man
 
 
 
 
 
 
 
 

AWR.Snowflake

This is an R client to interact with Snowflake, including wrapper functions around the Snowflake JDBC driver.

Installation

The package is not yet hosted on CRAN.

But you can easily install the most recent development version of the R package as well:

devtools::install_github('daroczig/AWR.Snowflake')

What is it good for?

This provides a simplified DBI driver for Snowflake:

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)

Installing and loading the JDBC driver package is handled automatically.

What if I want to do other cool things with Snowflake and R?

Most database functionality is actually provided by RJDBC, but if you have Snowflake-specific features in mind, please open a ticket on the feature request, or even better, submit a pull request :)

It doesn't work here!

To be able to use this package, you need to have a Snowflake account. If you do not have one already, you sign up for a free trial.

About

Snowflake JDBC DBI Wrapper for R

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages