evt-message_store-postgres-database 0.1.0.1 → 0.1.1.0

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
  SHA256:
3
- metadata.gz: 5b4ccf105d58cd4c4eb046424a60fcb50fe18508747fbae7bd151b24fdb44163
4
- data.tar.gz: 3c140fa9b7792e9740130334df09bb3b36879887242eaa86002fe2ec99cb643d
3
+ metadata.gz: 71e924a4b6f01fbe2206d6cd9d47b59cd433cf45653a2d08fc340b98c66e676f
4
+ data.tar.gz: 062d60c1977721aa026439d88e332fa4b1f890131fcb2012c9ba5d9677dda93c
5
5
  SHA512:
6
- metadata.gz: e08cf20395702f3c4df4cdf3f8556fa70e8fc33203e6edf8059a448749545f5b6fae5bd66589f5008577465aee8ae3fb0c968e4b9a4229e7a15cb9fa4ea6c63c
7
- data.tar.gz: 3975cdd03be4e318011f6f436dfeaa19491bf697dd1586516e298339a6b1e94707d758d4fc9a11e2b210b2e3d26ce5ba2e0c56670f8e3de50b77411d811be2a6
6
+ metadata.gz: 97b9d721da9a4b4db0968845239c4b57614bf88a74fa3cb27521f24a3d882aa6537db9c262d0aae2e1ecdfcbfc42f216fe25ee30380148c5ab08a0ffbef0e0b7
7
+ data.tar.gz: 9c92372c1ea837f44d8367e1a0caf9865e49d6632484c875cdb1d20fc466b179b27d8380c22934e179f365eb8bba51dfc109fc66da41c9840245e2519e6aaceb
@@ -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
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ root = File.expand_path '../database', __dir__
4
+ script_filename = 'write-test-message.sh'
5
+ script_filepath = File.join root, script_filename
6
+
7
+ system script_filepath
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.1
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