redshift_connector-queuery 10.0.0 → 10.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44e282de30cd6a22a17e1447c57307fde96b5d602d931214b2fe4381e9bae0d2
4
- data.tar.gz: 8942b67704a904beb98538e5b3205d44adfd7ce492d8783a4802913da8bbcd92
3
+ metadata.gz: d4accb1a6b817bf721e37f0317cfdf958baca92f8977c3b9e2b1cbe24d20084d
4
+ data.tar.gz: 36ad8c8918f69a3e0d02faa5696f689aac17fb6a262a9ecc81cc3fd7b4640180
5
5
  SHA512:
6
- metadata.gz: 66e4a3b100707eb125833caa826dbb20c94e8489ed37782d65bf92d1110cd9543efec449e83bc9bee89e7d203967a6d9dfcafbb0ad19036b0227610b03e6f470
7
- data.tar.gz: d24cd113783b166aaa3ac8cc68ab56f0ffdd2d11f8f29ed0950e9c1aa0af151476fcdbb214f99f412ce23ddf681e404351134397a63c0c2ac1265b0105623a77
6
+ metadata.gz: 24bb7af8049f00301f58bb3bf3d36e7d8fcc1a20ddf3bb3234b0aacd0371b874866a71ea8d4f1fcde38eca02607783897b714a89ffec52daa3f0a2684b95ee8d
7
+ data.tar.gz: f8445abe7fe97d83cac1c37d3a31bf51c948939b2703dc5da9c2e3984d61ad007f225b539c5daf1810a976e80dcc832cb38cccdb2df3c92bbb312844589d93fc
data/README.md CHANGED
@@ -3,10 +3,13 @@
3
3
  redshift_connector adapter for Queuery (Redshift HTTP API).
4
4
  Queuery is Cookpad internal system, you may not need this library.
5
5
 
6
+ This library is formerly called as "redshift-connector-queuery".
7
+
6
8
  ## Setup
7
9
 
8
10
  Add following line to your Gemfile.
9
11
  ```
12
+ gem 'redshift_connector'
10
13
  gem 'redshift_connector-queuery'
11
14
  ```
12
15
 
@@ -13,8 +13,8 @@ module RedshiftConnector
13
13
  ExporterBuilder.new(ds: self, exporter_class: QueueryExporter)
14
14
  end
15
15
 
16
- def execute_query(stmt, params = [])
17
- @client.query(stmt, params)
16
+ def execute_query(stmt, params = [], enable_cast: false)
17
+ @client.query(stmt, params, enable_cast: enable_cast)
18
18
  rescue QueueryClient::QueryError => ex
19
19
  raise ExportError, ex.message
20
20
  end
@@ -3,8 +3,8 @@ require 'redshift_connector/exception'
3
3
 
4
4
  module RedshiftConnector
5
5
  class QueueryDirectDataSource < QueueryDataSource
6
- def execute_query(stmt, params = [])
7
- super(stmt, params).direct
6
+ def execute_query(stmt, params = [], enable_cast: false)
7
+ super(stmt, params, enable_cast: enable_cast).direct
8
8
  end
9
9
  end
10
10
  end
@@ -2,12 +2,14 @@ require 'redshift_connector/logger'
2
2
 
3
3
  module RedshiftConnector
4
4
  class QueueryExporter
5
- def initialize(ds:, query:, bundle_params: nil, enable_sort: false, logger: RedshiftConnector.logger)
5
+ def initialize(ds:, query:, query_params: [], bundle_params: nil, enable_sort: false, enable_cast: false, logger: RedshiftConnector.logger)
6
6
  @ds = ds
7
7
  @query = query
8
+ @query_params = query_params
8
9
  @bundle_params = bundle_params
9
10
  @bundle = nil
10
11
  @enable_sort = enable_sort
12
+ @enable_cast = enable_cast
11
13
  @logger = logger
12
14
  end
13
15
 
@@ -22,7 +24,7 @@ module RedshiftConnector
22
24
  @logger.info "[SQL/Queuery] #{stmt.strip}"
23
25
  # FIXME: support enable_sort
24
26
  # FIXME: pass bundle_params?
25
- @bundle = @ds.execute_query(stmt)
27
+ @bundle = @ds.execute_query(stmt, @query_params, enable_cast: @enable_cast)
26
28
  @bundle
27
29
  end
28
30
  end
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'redshift_connector-queuery'
4
- s.version = '10.0.0'
4
+ s.version = '10.1.0'
5
5
  s.summary = 'Queuery adapter for redshift_connector'
6
6
  s.license = 'MIT'
7
7
 
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  s.require_path = 'lib'
14
14
 
15
15
  s.required_ruby_version = '>= 2.1.0'
16
- s.add_dependency 'redshift_connector', '~> 8.0'
17
- s.add_dependency 'queuery_client', '~> 1.0'
16
+ s.add_dependency 'redshift_connector', '~> 8.1'
17
+ s.add_dependency 'queuery_client', '~> 1.1'
18
18
  s.add_development_dependency 'test-unit'
19
19
  s.add_development_dependency 'rake'
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redshift_connector-queuery
3
3
  version: !ruby/object:Gem::Version
4
- version: 10.0.0
4
+ version: 10.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-23 00:00:00.000000000 Z
11
+ date: 2021-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redshift_connector
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '8.0'
19
+ version: '8.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '8.0'
26
+ version: '8.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: queuery_client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.0'
33
+ version: '1.1'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.0'
40
+ version: '1.1'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: test-unit
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description:
69
+ description:
70
70
  email:
71
71
  - aamine@loveruby.net
72
72
  executables: []
@@ -85,7 +85,7 @@ homepage: https://github.com/bricolages/redshift_connector-queuery
85
85
  licenses:
86
86
  - MIT
87
87
  metadata: {}
88
- post_install_message:
88
+ post_install_message:
89
89
  rdoc_options: []
90
90
  require_paths:
91
91
  - lib
@@ -100,9 +100,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubyforge_project:
104
- rubygems_version: 2.7.6.2
105
- signing_key:
103
+ rubygems_version: 3.1.6
104
+ signing_key:
106
105
  specification_version: 4
107
106
  summary: Queuery adapter for redshift_connector
108
107
  test_files: []