evt-event_source-postgres 0.17.1.0 → 0.17.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/database/list-events.sh +13 -1
- metadata +4 -5
- data/lib/event_source/loader.rb +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 756cde09c6f7c272b1c2e0c8ff15306e8f90e027
|
4
|
+
data.tar.gz: 816f85c45e16418986910ea3bb126e367b7453b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f573c88c9cd3a33caecb46060e25acc0999abfa6026279a8aaad00b612540e1f67433aacf9fef5d64017faf3fff508d15d7257d020dc483e9f70a74f676572f7
|
7
|
+
data.tar.gz: 5e5485a959db0064a4b33b0b647042ddb6a27aa92c3c59c5a41c0536a09d550d066ceef0997f684aeabdf91523b78637a42387693d7866bc5c6448363c910714
|
data/database/list-events.sh
CHANGED
@@ -35,6 +35,18 @@ else
|
|
35
35
|
fi
|
36
36
|
echo "Table name is: $table"
|
37
37
|
|
38
|
+
if [ -z ${STREAM_NAME+x} ]; then
|
39
|
+
echo "(STREAM_NAME is not set)"
|
40
|
+
stream_name=''
|
41
|
+
else
|
42
|
+
stream_name=$STREAM_NAME
|
43
|
+
echo "Stream name is: $STREAM_NAME"
|
44
|
+
fi
|
45
|
+
|
38
46
|
echo
|
39
47
|
|
40
|
-
|
48
|
+
if [ -z $stream_name ]; then
|
49
|
+
psql $database -c "SELECT * FROM $table"
|
50
|
+
else
|
51
|
+
psql $database -c "SELECT * FROM $table WHERE stream_name = '$stream_name'"
|
52
|
+
fi
|
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.17.
|
4
|
+
version: 0.17.2.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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-event_source
|
@@ -97,9 +97,9 @@ dependencies:
|
|
97
97
|
description: " "
|
98
98
|
email: opensource@eventide-project.org
|
99
99
|
executables:
|
100
|
-
- evt-pg-create-db
|
101
100
|
- evt-pg-delete-db
|
102
101
|
- evt-pg-list-events
|
102
|
+
- evt-pg-create-db
|
103
103
|
- evt-pg-recreate-db
|
104
104
|
extensions: []
|
105
105
|
extra_rdoc_files: []
|
@@ -120,7 +120,6 @@ files:
|
|
120
120
|
- database/test/write-event-expected-version.sql
|
121
121
|
- database/test/write-event.sql
|
122
122
|
- database/uninstall.sh
|
123
|
-
- lib/event_source/loader.rb
|
124
123
|
- lib/event_source/postgres.rb
|
125
124
|
- lib/event_source/postgres/controls.rb
|
126
125
|
- lib/event_source/postgres/controls/category.rb
|
@@ -164,7 +163,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
164
163
|
version: '0'
|
165
164
|
requirements: []
|
166
165
|
rubyforge_project:
|
167
|
-
rubygems_version: 2.6.
|
166
|
+
rubygems_version: 2.6.8
|
168
167
|
signing_key:
|
169
168
|
specification_version: 4
|
170
169
|
summary: Event source client for PostgreSQL
|
data/lib/event_source/loader.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
lib/event_source/postgres.rb
|