evt-event_source-postgres 0.17.2.0 → 0.18.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/event_source/loader.rb +1 -0
- data/lib/event_source/postgres.rb +0 -1
- data/lib/event_source/postgres/write.rb +6 -6
- metadata +5 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99db535e5886f4dac065cdc2ece637adcfdeaecb
|
4
|
+
data.tar.gz: 2ae804f2b86e1bf476e1a838eb51685d5a5f0064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23c7de69db9890d2a513865382cca707817af56d60b9e8eb0a9cec78c501ac21aebc43766c3c4924eeeb9a7dfdc34538846c467d6998ac41894ccc84d1c0864b
|
7
|
+
data.tar.gz: 17e57502c94956b2d634368abc6ea0befbf55cead355e3950796d3c96700eb73d03132bd9688bc2a477f0c3f2ca87454f8168e9b4a4af7734dcf42ff532c53db
|
@@ -0,0 +1 @@
|
|
1
|
+
lib/event_source/postgres.rb
|
@@ -10,7 +10,7 @@ module EventSource
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def write(batch, stream_name, expected_version: nil)
|
13
|
-
logger.trace { "Writing batch (Stream Name: #{stream_name}, Number of Events: #{batch.length}, Expected Version: #{expected_version.inspect})" }
|
13
|
+
logger.trace(tag: :write) { "Writing batch (Stream Name: #{stream_name}, Number of Events: #{batch.length}, Expected Version: #{expected_version.inspect})" }
|
14
14
|
|
15
15
|
unless expected_version.nil?
|
16
16
|
expected_version = ExpectedVersion.canonize(expected_version)
|
@@ -27,18 +27,18 @@ module EventSource
|
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
logger.debug { "Wrote batch (Stream Name: #{stream_name}, Number of Events: #{batch.length}, Expected Version: #{expected_version.inspect})" }
|
30
|
+
logger.debug(tag: :write) { "Wrote batch (Stream Name: #{stream_name}, Number of Events: #{batch.length}, Expected Version: #{expected_version.inspect})" }
|
31
31
|
|
32
32
|
last_position
|
33
33
|
end
|
34
34
|
|
35
35
|
def write_event_data(event_data, stream_name, expected_version: nil)
|
36
|
-
logger.trace { "Writing event data (Stream Name: #{stream_name}, Type: #{event_data.type}, Expected Version: #{expected_version.inspect})" }
|
37
|
-
logger.trace(tags: [:data, :event_data]) { event_data.pretty_inspect }
|
36
|
+
logger.trace(tag: :write) { "Writing event data (Stream Name: #{stream_name}, Type: #{event_data.type}, Expected Version: #{expected_version.inspect})" }
|
37
|
+
logger.trace(tags: [:data, :event_data, :write]) { event_data.pretty_inspect }
|
38
38
|
|
39
39
|
put.(event_data, stream_name, expected_version: expected_version).tap do
|
40
|
-
logger.debug { "Wrote event data (Stream Name: #{stream_name}, Type: #{event_data.type}, Expected Version: #{expected_version.inspect})" }
|
41
|
-
logger.debug(tags: [:data, :event_data]) { event_data.pretty_inspect }
|
40
|
+
logger.debug(tag: :write) { "Wrote event data (Stream Name: #{stream_name}, Type: #{event_data.type}, Expected Version: #{expected_version.inspect})" }
|
41
|
+
logger.debug(tags: [:data, :event_data, :write]) { event_data.pretty_inspect }
|
42
42
|
end
|
43
43
|
end
|
44
44
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-event_source-postgres
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.18.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
8
|
autorequire:
|
9
9
|
bindir: scripts
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-event_source
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: evt-cycle
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: evt-settings
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,9 +83,9 @@ dependencies:
|
|
97
83
|
description: " "
|
98
84
|
email: opensource@eventide-project.org
|
99
85
|
executables:
|
86
|
+
- evt-pg-create-db
|
100
87
|
- evt-pg-delete-db
|
101
88
|
- evt-pg-list-events
|
102
|
-
- evt-pg-create-db
|
103
89
|
- evt-pg-recreate-db
|
104
90
|
extensions: []
|
105
91
|
extra_rdoc_files: []
|
@@ -120,6 +106,7 @@ files:
|
|
120
106
|
- database/test/write-event-expected-version.sql
|
121
107
|
- database/test/write-event.sql
|
122
108
|
- database/uninstall.sh
|
109
|
+
- lib/event_source/loader.rb
|
123
110
|
- lib/event_source/postgres.rb
|
124
111
|
- lib/event_source/postgres/controls.rb
|
125
112
|
- lib/event_source/postgres/controls/category.rb
|
@@ -163,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
150
|
version: '0'
|
164
151
|
requirements: []
|
165
152
|
rubyforge_project:
|
166
|
-
rubygems_version: 2.6.
|
153
|
+
rubygems_version: 2.6.11
|
167
154
|
signing_key:
|
168
155
|
specification_version: 4
|
169
156
|
summary: Event source client for PostgreSQL
|