evt-message_store-postgres-database 0.1.0.1 → 0.1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71e924a4b6f01fbe2206d6cd9d47b59cd433cf45653a2d08fc340b98c66e676f
|
4
|
+
data.tar.gz: 062d60c1977721aa026439d88e332fa4b1f890131fcb2012c9ba5d9677dda93c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97b9d721da9a4b4db0968845239c4b57614bf88a74fa3cb27521f24a3d882aa6537db9c262d0aae2e1ecdfcbfc42f216fe25ee30380148c5ab08a0ffbef0e0b7
|
7
|
+
data.tar.gz: 9c92372c1ea837f44d8367e1a0caf9865e49d6632484c875cdb1d20fc466b179b27d8380c22934e179f365eb8bba51dfc109fc66da41c9840245e2519e6aaceb
|
File without changes
|
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env bash
|
2
|
+
|
3
|
+
set -u
|
4
|
+
|
5
|
+
instances=1
|
6
|
+
if [ ! -z ${INSTANCES+x} ]; then
|
7
|
+
instances=$INSTANCES
|
8
|
+
fi
|
9
|
+
|
10
|
+
stream_name='someStream-123'
|
11
|
+
if [ ! -z ${STREAM_NAME+x} ]; then
|
12
|
+
stream_name=$STREAM_NAME
|
13
|
+
fi
|
14
|
+
|
15
|
+
echo
|
16
|
+
echo "Writing $instances Messages to $stream_name"
|
17
|
+
echo "= = ="
|
18
|
+
echo
|
19
|
+
|
20
|
+
for (( i=1; i<=instances; i++ )); do
|
21
|
+
uuid=$(uuidgen)
|
22
|
+
echo "Instance: $i, ID: $uuid, Stream Name: $stream_name"
|
23
|
+
psql message_store -c "SELECT write_message('$uuid'::varchar, '$stream_name'::varchar, 'SomeType'::varchar, '{\"attribute\": \"some value\"}'::jsonb, '{\"metaAttribute\": \"some meta value\"}'::jsonb);" > /dev/null
|
24
|
+
done
|
25
|
+
|
26
|
+
echo
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-message_store-postgres-database
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
@@ -15,6 +15,7 @@ email: opensource@eventide-project.org
|
|
15
15
|
executables:
|
16
16
|
- evt-pg-print-messages
|
17
17
|
- evt-pg-delete-db
|
18
|
+
- evt-pg-write-test-message
|
18
19
|
- evt-pg-create-db
|
19
20
|
- evt-pg-recreate-db
|
20
21
|
extensions: []
|
@@ -33,16 +34,18 @@ files:
|
|
33
34
|
- database/indexes/messages-category-global-position.sql
|
34
35
|
- database/indexes/messages-id.sql
|
35
36
|
- database/indexes/messages-stream-name-position-uniq.sql
|
37
|
+
- database/install-functions.sh
|
36
38
|
- database/install.sh
|
37
|
-
- database/install_functions.sh
|
38
39
|
- database/print-messages.sh
|
39
40
|
- database/table/messages-table.sql
|
40
41
|
- database/types/message.sql
|
41
42
|
- database/uninstall.sh
|
43
|
+
- database/write-test-message.sh
|
42
44
|
- scripts/evt-pg-create-db
|
43
45
|
- scripts/evt-pg-delete-db
|
44
46
|
- scripts/evt-pg-print-messages
|
45
47
|
- scripts/evt-pg-recreate-db
|
48
|
+
- scripts/evt-pg-write-test-message
|
46
49
|
homepage: https://github.com/eventide-project/message-store-postgres-database
|
47
50
|
licenses:
|
48
51
|
- MIT
|