ath 0.2.2 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -3
- data/exe/ath +1 -1
- data/lib/ath/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 399f1d61c2594b897dfaa078b3a37efcf845e4d4
|
|
4
|
+
data.tar.gz: 991941010b0cdc593d03b8cdb90c7661e0626c60
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ab2de1eeee5ecbf2e56995c0bac3681e2438fd984404a141c8f0cc0dfc7f3f094db60e07b4db565a6a7c3218a1db9402e893c97137056d6f7adb25ee96adcaa
|
|
7
|
+
data.tar.gz: 27e37541d13f6fa18626be07a33a846d5bda8b43bbda8f3083362eacfbebf0c2044aa5c922287bb1a501003cb1c8cb07ee3dee00edbbed4ddaaf498d5c15ac61
|
data/README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
ath is a interactive [Amazon Athena](https://aws.amazon.com/athena/) shell.
|
|
4
4
|
|
|
5
|
+
[](https://asciinema.org/a/127476)
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
Add this line to your application's Gemfile:
|
|
@@ -20,7 +22,10 @@ Or install it yourself as:
|
|
|
20
22
|
|
|
21
23
|
## Getting Started
|
|
22
24
|
|
|
23
|
-
```
|
|
25
|
+
```sh
|
|
26
|
+
$ export AWS_ACCESS_KEY_ID=...
|
|
27
|
+
$ export AWS_SECRET_ACCESS_KEY=...
|
|
28
|
+
$ export AWS_REGION=ap-northeast-1
|
|
24
29
|
$ export ATH_OUTPUT_LOCATION=s3://my-bucket
|
|
25
30
|
$ #export ATH_PAGER='column -t -s,'
|
|
26
31
|
|
|
@@ -91,7 +96,7 @@ default> /save cf881630-a845-424a-8035-afe155505cac
|
|
|
91
96
|
Save to /Users/.../cf881630-a845-424a-8035-afe155505cac.csv
|
|
92
97
|
```
|
|
93
98
|
|
|
94
|
-
```
|
|
99
|
+
```sh
|
|
95
100
|
$ echo 'select count(*) from elb_logs' | ath -d sampledb -f -
|
|
96
101
|
"_col0"
|
|
97
102
|
"1356206"
|
|
@@ -110,7 +115,8 @@ Usage: ath [options]
|
|
|
110
115
|
--output-location S3URI
|
|
111
116
|
-d, --database DATABASE
|
|
112
117
|
-e, --execute QUERY
|
|
113
|
-
-f, --file
|
|
118
|
+
-f, --file QUERY_FILE
|
|
119
|
+
--pager PAGER
|
|
114
120
|
--[no-]progress
|
|
115
121
|
--debug
|
|
116
122
|
```
|
data/exe/ath
CHANGED
|
@@ -30,7 +30,7 @@ ARGV.options do |opt|
|
|
|
30
30
|
opt.on('' , '--output-location S3URI') {|v| options[:output_location] = v }
|
|
31
31
|
opt.on('-d', '--database DATABASE') {|v| options[:database] = v }
|
|
32
32
|
opt.on('-e', '--execute QUERY') {|v| query = v }
|
|
33
|
-
opt.on('-f', '--file
|
|
33
|
+
opt.on('-f', '--file QUERY_FILE') {|v| query_file = v }
|
|
34
34
|
opt.on('', '--pager PAGER') {|v| options[:pager] = v }
|
|
35
35
|
opt.on('', '--[no-]progress') {|v| options[:progress] = v }
|
|
36
36
|
opt.on('' , '--debug') { options[:debug] = true }
|
data/lib/ath/version.rb
CHANGED