bricolage-streamingload 0.7.0 → 0.7.1

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
  SHA1:
3
- metadata.gz: 9ed3297c2097f1da818e1b4154ebcd3bff47e941
4
- data.tar.gz: c18ff930dec156e6c7fab8b254265dc849be4687
3
+ metadata.gz: 14a3e79cc5b39bd90b848b1d3b030bf244ddee15
4
+ data.tar.gz: b82cce95ef1573cb2dd0fd74214777afd3f972ae
5
5
  SHA512:
6
- metadata.gz: 6c406eb887a2aa9ffce4762dde410ff7c9b0576b21ebe14e5041a009639fde8d05b76c54cbaefc64c64dac5f78ee6658be8f28544eb720086077212905757ef0
7
- data.tar.gz: 3cfbe66849b04561ee76dc8a070eb8e94f98204323480e1bf1423ff936e22b66369bb8013859f3d84d2cd60dc0412509da6967e5b7b7034e97220e9de6c37dd0
6
+ metadata.gz: 6daab7f6d72fd79261d047ac8f5a0ab0f8dcdd0fb392b1ee013dd6c0616fe90b83ab3637274dc4e7fdab23c81b3a6d3888ce614083ff1ca07b9778017aab6e76
7
+ data.tar.gz: 1c0041319e7091f869f51c182dad162e81c37f4683d990b5cd224ff5ec93ec004936cc22d44eb961e9628e8962eaaf0c253c30a8036f44331ad5970bae5a3fc6
@@ -0,0 +1,12 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'bricolage/commandlineapplication'
4
+
5
+ app = Bricolage::CommandLineApplication.define {|opts|
6
+ opts.data_source_option('--queue-ds', 'Target queue data soure.', short: '-D', kind: 'sqs')
7
+ }
8
+ queue = app.data_source('--queue-ds')
9
+ ARGF.each do |line|
10
+ table_name = line.strip
11
+ queue.send_event('flushtable', tableName: table_name)
12
+ end
@@ -6,6 +6,7 @@ module Bricolage
6
6
 
7
7
  def SQSDataSource.new_mock(**args)
8
8
  SQSDataSource.new(
9
+ region: 'ap-northeast-1',
9
10
  url: 'http://sqs/000000000000/queue-name',
10
11
  access_key_id: 'access_key_id_1',
11
12
  secret_access_key: 'secret_access_key_1',
@@ -1,5 +1,5 @@
1
1
  module Bricolage
2
2
  module StreamingLoad
3
- VERSION = '0.7.0'
3
+ VERSION = '0.7.1'
4
4
  end
5
5
  end
@@ -63,7 +63,7 @@ module Bricolage
63
63
  conn.update("truncate strload_objects")
64
64
  conn.update("truncate strload_task_objects")
65
65
  conn.update("truncate strload_tasks")
66
- conn.update("insert into strload_tables values ('testschema', 'desttable', 'testschema.desttable', 100, 1800, false)")
66
+ conn.update("insert into strload_tables values (1, 'testschema.desttable', 'testschema', 'desttable', 100, 1800, false)")
67
67
  }
68
68
  dispatcher.event_loop
69
69
 
@@ -155,9 +155,9 @@ module Bricolage
155
155
  conn.update("truncate strload_objects")
156
156
  conn.update("truncate strload_task_objects")
157
157
  conn.update("truncate strload_tasks")
158
- conn.update("insert into strload_tables values ('testschema', 'aaa', 'testschema.aaa', 100, 1800, false)")
159
- conn.update("insert into strload_tables values ('testschema', 'bbb', 'testschema.bbb', 100, 1800, false)")
160
- conn.update("insert into strload_tables values ('testschema', 'ccc', 'testschema.ccc', 100, 1800, false)")
158
+ conn.update("insert into strload_tables values (1, 'testschema.aaa', 'testschema', 'aaa', 100, 1800, false)")
159
+ conn.update("insert into strload_tables values (2, 'testschema.bbb', 'testschema', 'bbb', 100, 1800, false)")
160
+ conn.update("insert into strload_tables values (3, 'testschema.ccc', 'testschema', 'ccc', 100, 1800, false)")
161
161
  }
162
162
  dispatcher.event_loop
163
163
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bricolage-streamingload
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-22 00:00:00.000000000 Z
12
+ date: 2016-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bricolage
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - '='
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 5.17.1
20
+ version: 5.17.2
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - '='
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 5.17.1
27
+ version: 5.17.2
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: pg
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -103,6 +103,7 @@ executables:
103
103
  - bricolage-streaming-loader
104
104
  - send-checkpoint-event
105
105
  - send-data-event
106
+ - send-flushtable-event
106
107
  - send-load-task
107
108
  - send-shutdown-event
108
109
  extensions: []
@@ -113,6 +114,7 @@ files:
113
114
  - bin/bricolage-streaming-loader
114
115
  - bin/send-checkpoint-event
115
116
  - bin/send-data-event
117
+ - bin/send-flushtable-event
116
118
  - bin/send-load-task
117
119
  - bin/send-shutdown-event
118
120
  - lib/bricolage/nulllogger.rb