Skip to content

Commit 4ecd509

Browse files
detulesimonpcouch
andauthored
Snowflake/driver class (#865)
* snowflake(): instantiates object inheriting from OdbcDriver * roxygenize --------- Co-authored-by: simonpcouch <simonpatrickcouch@gmail.com>
1 parent 629595a commit 4ecd509

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ exportClasses(PostgreSQL)
4444
exportClasses(Redshift)
4545
exportClasses(SQLite)
4646
exportClasses(Snowflake)
47+
exportClasses(SnowflakeOdbcDriver)
4748
exportClasses(Teradata)
4849
exportMethods(dbAppendTable)
4950
exportMethods(dbBegin)

R/driver-snowflake.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,13 +152,17 @@ setMethod("odbcDataType", "Snowflake",
152152
#' }
153153
#' @export
154154
snowflake <- function() {
155-
new("Snowflake")
155+
new("SnowflakeOdbcDriver")
156156
}
157157

158+
#' @rdname snowflake
159+
#' @export
160+
setClass("SnowflakeOdbcDriver", contains = "OdbcDriver")
161+
158162
#' @rdname snowflake
159163
#' @export
160164
setMethod(
161-
"dbConnect", "Snowflake",
165+
"dbConnect", "SnowflakeOdbcDriver",
162166
function(drv,
163167
account = Sys.getenv("SNOWFLAKE_ACCOUNT"),
164168
driver = NULL,

man/snowflake.Rd

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)