-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
64 lines (45 loc) · 1.36 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
output: rmarkdown::github_document
editor_options:
chunk_output_type: console
---
# awsathena
rJava Interface to AWS Athena SDK
## Description
Provides R wrapper methods to core 'aws-java-sdk-athena' Java library methods
to interrogate and orchestrate Amazon Athena queries.
## What's Inside the Tin?
The following functions are implemented:
- `collect_async`: Collect Amazon Athena 'dplyr' query results asynchronously
- `download_query_execution_results`: Use S3 to download the results of an Athena Query
- `get_query_execution`: Get Query Execution
- `get_query_results_metadata`: Get Query Execution Results Metadata (Schema)
- `list_query_executions`: List Query Executions
- `s3_download_file`: Download a key from a bucket to a local file
- `start_query_execution`: Start Query Execution
- `stop_query_execution`: Stop Query Execution
## Installation
```{r eval=FALSE}
devtools::install_git("[email protected]:~hrbrmstr/awsathena")
# OR
devtools::install_gitlab("hrbrmstr/awsathena")
# OR
devtools::install_github("hrbrmstr/awsathena")
```
## Usage
```{r}
library(rJava)
library(awsathenajars)
library(awsathena)
packageVersion("awsathena")
```
### Basics
```{r}
qx <- list_query_executions(profile = "personal")
head(qx)
str(get_query_execution(qx[[1]], profile = "personal"), 1)
```
## `awsathenajars` Metrics
```{r cloc, echo=FALSE}
cloc::cloc_pkg_md()
```