No known key found for this signature in database
GPG Key ID: 1D7529BE14E2BBA9
6 changed files with
51 additions and
8 deletions
-
.codecov.yml
-
.travis.yml
-
DESCRIPTION
-
README.Rmd
-
README.md
-
tests/testthat/test-metis.R
|
@ -0,0 +1 @@ |
|
|
|
|
|
comment: false |
|
@ -0,0 +1,22 @@ |
|
|
|
|
|
language: r |
|
|
|
|
|
|
|
|
|
|
|
warnings_are_errors: true |
|
|
|
|
|
|
|
|
|
|
|
cache: packages |
|
|
|
|
|
|
|
|
|
|
|
sudo: required |
|
|
|
|
|
|
|
|
|
|
|
jdk: |
|
|
|
|
|
- oraclejdk8 |
|
|
|
|
|
|
|
|
|
|
|
addons: |
|
|
|
|
|
apt: |
|
|
|
|
|
packages: |
|
|
|
|
|
- oracle-java8-set-default |
|
|
|
|
|
|
|
|
|
|
|
after_success: |
|
|
|
|
|
- Rscript -e 'covr::codecov()' |
|
|
|
|
|
|
|
|
|
|
|
r: |
|
|
|
|
|
- oldrel |
|
|
|
|
|
- release |
|
@ -6,7 +6,7 @@ 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("Derek", "Abdine", role = "ctb", comment = "Authentication driver update"), |
|
|
person("Zachary", "Kurtz", email = "zdkurtz@gmail.com", role = "ctb") |
|
|
person("Zachary", "Kurtz", email = "zdkurtz@gmail.com", role = "ctb") |
|
|
) |
|
|
) |
|
|
Maintainer: Bob Rudis <bob@rud.is> |
|
|
Maintainer: Bob Rudis <bob@rud.is> |
|
|
|
@ -18,6 +18,10 @@ Sys.setenv( |
|
|
options(width=120) |
|
|
options(width=120) |
|
|
``` |
|
|
``` |
|
|
|
|
|
|
|
|
|
|
|
[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/metis.svg?branch=master)](https://travis-ci.org/hrbrmstr/metis) |
|
|
|
|
|
[![Coverage Status](https://codecov.io/gh/hrbrmstr/metis/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/metis |
|
|
|
|
|
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/metis)](https://cran.r-project.org/package=metis) |
|
|
|
|
|
|
|
|
# metis |
|
|
# metis |
|
|
|
|
|
|
|
|
Access and Query Amazon Athena via DBI/JDBC |
|
|
Access and Query Amazon Athena via DBI/JDBC |
|
|
|
@ -1,4 +1,8 @@ |
|
|
|
|
|
|
|
|
|
|
|
[![Travis-CI Build Status](https://travis-ci.org/hrbrmstr/metis.svg?branch=master)](https://travis-ci.org/hrbrmstr/metis) |
|
|
|
|
|
[![Coverage Status](https://codecov.io/gh/hrbrmstr/metis/branch/master/graph/badge.svg)](https://codecov.io/gh/hrbrmstr/metis |
|
|
|
|
|
[![CRAN_Status_Badge](http://www.r-pkg.org/badges/version/metis)](https://cran.r-project.org/package=metis) |
|
|
|
|
|
|
|
|
# metis |
|
|
# metis |
|
|
|
|
|
|
|
|
Access and Query Amazon Athena via DBI/JDBC |
|
|
Access and Query Amazon Athena via DBI/JDBC |
|
|
|
@ -6,6 +6,16 @@ drv <- metis::Athena() |
|
|
|
|
|
|
|
|
expect_is(drv, "AthenaDriver") |
|
|
expect_is(drv, "AthenaDriver") |
|
|
|
|
|
|
|
|
|
|
|
if (identical(Sys.getenv("TRAVIS"), "true")) { |
|
|
|
|
|
|
|
|
|
|
|
metis::dbConnect( |
|
|
|
|
|
drv = drv, |
|
|
|
|
|
Schema = "sampledb", |
|
|
|
|
|
S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1", |
|
|
|
|
|
) -> con |
|
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
metis::dbConnect( |
|
|
metis::dbConnect( |
|
|
drv = drv, |
|
|
drv = drv, |
|
|
Schema = "sampledb", |
|
|
Schema = "sampledb", |
|
@ -14,6 +24,8 @@ metis::dbConnect( |
|
|
S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1", |
|
|
S3OutputLocation = "s3://aws-athena-query-results-569593279821-us-east-1", |
|
|
) -> con |
|
|
) -> con |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
expect_is(con, "AthenaConnection") |
|
|
expect_is(con, "AthenaConnection") |
|
|
|
|
|
|
|
|
expect_equal(dbListTables(con, schema="sampledb"), "elb_logs") |
|
|
expect_equal(dbListTables(con, schema="sampledb"), "elb_logs") |
|
|