kura 0.2.21 → 0.2.22
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/ChangeLog.md +12 -5
- data/lib/kura/client.rb +3 -2
- data/lib/kura/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ced0454866cce47fb153fd79b0ba5856981bfd2a
|
|
4
|
+
data.tar.gz: 9d7907d50ca71e9d05f908503d0f770c7bf3c022
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 69b2dad105170e5ad0e299575ddb5c9d5b1b4b51761da63f8d9ae641139cd79efc409f97e3a7ae6286ca638eb7a37b19f2e60e20d2430418d053c658c32c3fa6
|
|
7
|
+
data.tar.gz: 2f67d1a5d3d95699e615cc156d34c9fadbeaf15a2bf210aa9b92c0fa4257ad5f6a2032a819e1a7908a52cd5cfe2553f3458e8bb40fc69f35efc2dcf90781ac7e
|
data/ChangeLog.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
# 0.2.22
|
|
2
|
+
|
|
3
|
+
## Enhancements
|
|
4
|
+
|
|
5
|
+
* Support DML queries.
|
|
6
|
+
You shold pass `mode: nil` and `allow_large_results: false` explicitly to Kura::Client#query.
|
|
7
|
+
|
|
1
8
|
# 0.2.21
|
|
2
9
|
|
|
3
10
|
## Incompatible Changes
|
|
@@ -28,7 +35,7 @@
|
|
|
28
35
|
|
|
29
36
|
## Enhancements
|
|
30
37
|
|
|
31
|
-
* Add
|
|
38
|
+
* Add keyword argument `use_legacy_sql` to Kura::Client#insert_table to
|
|
32
39
|
support create View with Standard SQL.
|
|
33
40
|
|
|
34
41
|
# 0.2.17
|
|
@@ -71,7 +78,7 @@
|
|
|
71
78
|
## Enhancements
|
|
72
79
|
|
|
73
80
|
* Support job APIs in batch requests.
|
|
74
|
-
Until now load/query/extract/copy methods
|
|
81
|
+
Until now load/query/extract/copy methods received block to be yielded when
|
|
75
82
|
the keyword argument :wait was specified and polling every second.
|
|
76
83
|
In batch request (in block of Kura::Client#batch), you cannot specified :wait
|
|
77
84
|
keyword argument and block will be yielded when batch response are passed.
|
|
@@ -127,7 +134,7 @@
|
|
|
127
134
|
|
|
128
135
|
## Enhancements
|
|
129
136
|
|
|
130
|
-
* Add Kura::Client#batch and support
|
|
137
|
+
* Add Kura::Client#batch and support Batches API call for #projects, #datasets, #dataset,
|
|
131
138
|
#tables, #table, #list\_tabledata. The results of these api call are passwed to blocks.
|
|
132
139
|
See also https://github.com/google/google-api-ruby-client#batches
|
|
133
140
|
The job insertion methods (load, query, extract, copy) are not supported to call in batch's block.
|
|
@@ -209,10 +216,10 @@
|
|
|
209
216
|
## Incompatible Changes
|
|
210
217
|
|
|
211
218
|
* Kura::Client#load: 3rd argument `source_uris` is now optional (default value is nil)
|
|
212
|
-
because is is not required on multipart upload. `source_uris` and
|
|
219
|
+
because is is not required on multipart upload. `source_uris` and keyword argument `file` is exclusive.
|
|
213
220
|
* Kura::Client#load: 4th argument `schema` become keyword argument. It is marked as [Optional] in
|
|
214
221
|
[API Reference](https://cloud.google.com/bigquery/docs/reference/v2/jobs#configuration.load.schema)
|
|
215
|
-
* Kura::Client#query: 1st and 2nd argument `dataset_id`, `table_id` become
|
|
222
|
+
* Kura::Client#query: 1st and 2nd argument `dataset_id`, `table_id` become keyword argument.
|
|
216
223
|
destinationTable is an [Optional] parameter.
|
|
217
224
|
|
|
218
225
|
## Enhancements
|
data/lib/kura/client.rb
CHANGED
|
@@ -345,11 +345,9 @@ module Kura
|
|
|
345
345
|
wait: nil,
|
|
346
346
|
dry_run: false,
|
|
347
347
|
&blk)
|
|
348
|
-
write_disposition = mode_to_write_disposition(mode)
|
|
349
348
|
configuration = Google::Apis::BigqueryV2::JobConfiguration.new({
|
|
350
349
|
query: Google::Apis::BigqueryV2::JobConfigurationQuery.new({
|
|
351
350
|
query: sql,
|
|
352
|
-
write_disposition: write_disposition,
|
|
353
351
|
allow_large_results: normalize_parameter(allow_large_results),
|
|
354
352
|
flatten_results: normalize_parameter(flatten_results),
|
|
355
353
|
priority: priority,
|
|
@@ -357,6 +355,9 @@ module Kura
|
|
|
357
355
|
use_legacy_sql: use_legacy_sql,
|
|
358
356
|
})
|
|
359
357
|
})
|
|
358
|
+
if mode
|
|
359
|
+
configuration.query.write_disposition = mode_to_write_disposition(mode)
|
|
360
|
+
end
|
|
360
361
|
if dry_run
|
|
361
362
|
configuration.dry_run = true
|
|
362
363
|
wait = nil
|
data/lib/kura/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: kura
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.22
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chikanaga Tomoyuki
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-11-
|
|
11
|
+
date: 2016-11-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-api-client
|
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
149
149
|
version: '0'
|
|
150
150
|
requirements: []
|
|
151
151
|
rubyforge_project:
|
|
152
|
-
rubygems_version: 2.5.
|
|
152
|
+
rubygems_version: 2.5.2
|
|
153
153
|
signing_key:
|
|
154
154
|
specification_version: 4
|
|
155
155
|
summary: Interface to BigQuery API v2.
|