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 +4 -4
- data/bin/send-flushtable-event +12 -0
- data/lib/bricolage/sqsmock.rb +1 -0
- data/lib/bricolage/streamingload/version.rb +1 -1
- data/test/streamingload/test_dispatcher.rb +4 -4
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14a3e79cc5b39bd90b848b1d3b030bf244ddee15
|
4
|
+
data.tar.gz: b82cce95ef1573cb2dd0fd74214777afd3f972ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/bricolage/sqsmock.rb
CHANGED
@@ -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', '
|
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', '
|
159
|
-
conn.update("insert into strload_tables values ('testschema', '
|
160
|
-
conn.update("insert into strload_tables values ('testschema', '
|
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.
|
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-
|
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.
|
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.
|
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
|