Browse Source

restored contributors

master
boB Rudis 5 years ago
parent
commit
350b6e2ef2
No known key found for this signature in database GPG Key ID: 1D7529BE14E2BBA9
  1. 2
      .Rbuildignore
  2. 2
      .gitignore
  3. 6
      DESCRIPTION
  4. 13
      R/jdbc.r
  5. 13
      man/dbConnect-AthenaDriver-method.Rd
  6. 2
      vignettes/athena-connection-parameters.Rmd

2
.Rbuildignore

@ -1,3 +1,5 @@
^Meta$
^doc$
^LICENSE\.md$ ^LICENSE\.md$
^.*\.Rproj$ ^.*\.Rproj$
^\.Rproj\.user$ ^\.Rproj\.user$

2
.gitignore

@ -1,3 +1,5 @@
Meta
doc
inst/doc inst/doc
.DS_Store .DS_Store
.Rproj.user .Rproj.user

6
DESCRIPTION

@ -5,7 +5,9 @@ Version: 0.3.0
Date: 2019-02-14 Date: 2019-02-14
Authors@R: c( Authors@R: c(
person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre"), person("Bob", "Rudis", email = "bob@rud.is", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-5670-2640")) comment = c(ORCID = "0000-0001-5670-2640")),
person("Derek", "Abdine", comment = "Authentication driver update"),
person("Zachary", "Kurtz", email = "zdkurtz@gmail.com", role = "ctb")
) )
Maintainer: Bob Rudis <bob@rud.is> Maintainer: Bob Rudis <bob@rud.is>
Encoding: UTF-8 Encoding: UTF-8
@ -31,5 +33,5 @@ Imports:
aws.signature aws.signature
RoxygenNote: 6.1.1 RoxygenNote: 6.1.1
Remotes: Remotes:
hrbrmstr/metis.jars hrbrmstr/metis-jars
VignetteBuilder: knitr VignetteBuilder: knitr

13
R/jdbc.r

@ -37,7 +37,7 @@ Athena <- function(identifier.quote = '`') {
#' AthenaJDBC #' AthenaJDBC
#' #'
#' Connect to Athena #' Connect to Athenadb
#' #'
#' Mandatory JDBC connection parameters are also named function #' Mandatory JDBC connection parameters are also named function
#' parameters. You can use `...` to supply additional/optional #' parameters. You can use `...` to supply additional/optional
@ -64,9 +64,9 @@ Athena <- function(identifier.quote = '`') {
#' @param S3OutputLocation A write-able bucket on S3 that you have permissions for #' @param S3OutputLocation A write-able bucket on S3 that you have permissions for
#' @param MaxErrorRetry,ConnectTimeout,SocketTimeout #' @param MaxErrorRetry,ConnectTimeout,SocketTimeout
#' technical connection info that you should only muck with if you know what you're doing. #' technical connection info that you should only muck with if you know what you're doing.
#' @param LogPath,LogPath The Athena JDBC driver can (shockingly) provide a decent bit #' @param LogLevel,LogPath The Athena JDBC driver can provide a decent bit
#' of data in logs. Set this to a temporary directory or something log4j can use. For #' of data in logs. Set this to a temporary directory or something `log4j` can use. For
#' `LogPath` use the names ("INFO", "DEBUG", "WARN", "ERROR", "ALL", "OFF", "FATAL", "TRACE") or #' `LogPath` use the names ("`INFO`", "`DEBUG`", "`WARN`", "`ERROR`", "`ALL`", "`OFF`", "`FATAL`", "`TRACE`") or
#' their corresponding integer values 0-6. #' their corresponding integer values 0-6.
#' @param fetch_size Athena results fetch size #' @param fetch_size Athena results fetch size
#' @param ... passed on to the driver. See Details. #' @param ... passed on to the driver. See Details.
@ -82,7 +82,10 @@ setMethod(
drv, drv,
Schema = "default", Schema = "default",
AwsRegion = "us-east-1", AwsRegion = "us-east-1",
AwsCredentialsProviderClass = "com.simba.athena.amazonaws.auth.DefaultAWSCredentialsProviderChain", AwsCredentialsProviderClass = paste0(c(
"com", "simba", "athena", "amazonaws","auth",
"DefaultAWSCredentialsProviderChain"
), collapse = "."),
S3OutputLocation = Sys.getenv("AWS_S3_STAGING_DIR", unset = ""), S3OutputLocation = Sys.getenv("AWS_S3_STAGING_DIR", unset = ""),
MaxErrorRetry = 10, MaxErrorRetry = 10,
ConnectTimeout = 10000, ConnectTimeout = 10000,

13
man/dbConnect-AthenaDriver-method.Rd

@ -7,8 +7,9 @@
\usage{ \usage{
\S4method{dbConnect}{AthenaDriver}(drv, Schema = "default", \S4method{dbConnect}{AthenaDriver}(drv, Schema = "default",
AwsRegion = "us-east-1", AwsRegion = "us-east-1",
AwsCredentialsProviderClass = "com.simba.athena.amazonaws.auth.DefaultAWSCredentialsProviderChain", AwsCredentialsProviderClass = paste0(c("com", "simba", "athena",
S3OutputLocation = Sys.getenv("AWS_S3_STAGING_DIR", unset = ""), "amazonaws", "auth", "DefaultAWSCredentialsProviderChain"), collapse =
"."), S3OutputLocation = Sys.getenv("AWS_S3_STAGING_DIR", unset = ""),
MaxErrorRetry = 10, ConnectTimeout = 10000, SocketTimeout = 10000, MaxErrorRetry = 10, ConnectTimeout = 10000, SocketTimeout = 10000,
LogPath = "", LogLevel = 0, fetch_size = 1000L, ...) LogPath = "", LogLevel = 0, fetch_size = 1000L, ...)
} }
@ -30,9 +31,9 @@ comma-separated list of String arguments.}
\item{MaxErrorRetry, ConnectTimeout, SocketTimeout}{technical connection info that you should only muck with if you know what you're doing.} \item{MaxErrorRetry, ConnectTimeout, SocketTimeout}{technical connection info that you should only muck with if you know what you're doing.}
\item{LogPath, LogPath}{The Athena JDBC driver can (shockingly) provide a decent bit \item{LogLevel, LogPath}{The Athena JDBC driver can provide a decent bit
of data in logs. Set this to a temporary directory or something log4j can use. For of data in logs. Set this to a temporary directory or something `log4j` can use. For
`LogPath` use the names ("INFO", "DEBUG", "WARN", "ERROR", "ALL", "OFF", "FATAL", "TRACE") or `LogPath` use the names ("`INFO`", "`DEBUG`", "`WARN`", "`ERROR`", "`ALL`", "`OFF`", "`FATAL`", "`TRACE`") or
their corresponding integer values 0-6.} their corresponding integer values 0-6.}
\item{fetch_size}{Athena results fetch size} \item{fetch_size}{Athena results fetch size}
@ -40,7 +41,7 @@ their corresponding integer values 0-6.}
\item{...}{passed on to the driver. See Details.} \item{...}{passed on to the driver. See Details.}
} }
\description{ \description{
Connect to Athena Connect to Athenadb
} }
\details{ \details{
Mandatory JDBC connection parameters are also named function Mandatory JDBC connection parameters are also named function

2
vignettes/athena-connection-parameters.Rmd

@ -12,7 +12,7 @@ vignette: >
```{r setup, include = FALSE} ```{r setup, include = FALSE}
knitr::opts_chunk$set( knitr::opts_chunk$set(
collapse = TRUE, collapse = TRUE,
comment = "#>" comment = "##"
) )
``` ```

Loading…
Cancel
Save