Access and Query Amazon Athena via DBI/JDBC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.4KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/jdbc.r
  3. \docType{methods}
  4. \name{dbConnect,AthenaDriver-method}
  5. \alias{dbConnect,AthenaDriver-method}
  6. \title{AthenaJDBC}
  7. \usage{
  8. \S4method{dbConnect}{AthenaDriver}(drv,
  9. provider = "com.amazonaws.athena.jdbc.shaded.com.amazonaws.auth.DefaultAWSCredentialsProviderChain",
  10. region = "us-east-1", s3_staging_dir = Sys.getenv("AWS_S3_STAGING_DIR"),
  11. schema_name = "default", max_error_retries = 10,
  12. connection_timeout = 10000, socket_timeout = 10000,
  13. retry_base_delay = 100, retry_max_backoff_time = 1000, log_path,
  14. log_level, ...)
  15. }
  16. \arguments{
  17. \item{provider}{JDBC auth provider (ideally leave default)}
  18. \item{region}{AWS region the Athena tables are in}
  19. \item{s3_staging_dir}{A write-able bucket on S3 that you have permissions for}
  20. \item{schema_name}{LOL if only this actually worked with Amazon's hacked Presto driver}
  21. \item{max_error_retries, connection_timeout, socket_timeout, retry_base_delay, retry_max_backoff_time}{technical connection info that you should only muck with if you know what you're doing.}
  22. \item{log_path, log_level}{The Athena JDBC driver can (shockingly) provide a decent bit
  23. of data in logs. Set this to a temporary directory or somethign log4j can use.}
  24. \item{...}{unused}
  25. }
  26. \description{
  27. AthenaJDBC
  28. }
  29. \references{
  30. <https://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html>
  31. }