evt-message_store-postgres 0.4.2.0 → 0.6.0.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
  SHA1:
3
- metadata.gz: e829f486640cb338fad6c776a2228d4d2d262424
4
- data.tar.gz: 4cfe187dd12a3edf49ed372d2ade361cb53f2685
3
+ metadata.gz: 29994a4845ad38d939e85afbb4fd09b760007fc1
4
+ data.tar.gz: 7425b52ea9995bf6d7495c171a309c57c1599d24
5
5
  SHA512:
6
- metadata.gz: 6ae5549046f2eae1f2054c08d0acc8e6e68dbc1b02f209c09164a29c0f8335e03c767461250f3eedd799a07df70c0a5030db72afd24bd47ad2bf2199b26f4674
7
- data.tar.gz: a0d19f8e82707204f388898977ec07dd220e3efb9f8770db4ba3d5c1144da3de75c3be6880e78dd3244eb4e5372bdfde0c4871d9fc77117612dcea031b6a1f80
6
+ metadata.gz: 42a07064d7e9b86240edfc0083c3bbe2f9c7630dae4df45b0d59f49c8d6e9c5e70eb0c678ed0715179bfc6668f5f3e77c9abb6316f942bec791468edda6c8f3f
7
+ data.tar.gz: 710771e2e94393ed7fab1a7f70a7beb6e14e56fbada6d173fe490e74cc884747216045ce4dfeaff36773322411087fad5b43b22ae3e033d3b91f704b85cecb2f
@@ -28,7 +28,7 @@ echo
28
28
  function create-user {
29
29
  echo "Database user is: $user"
30
30
 
31
- user_exists=`psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='$user'"`
31
+ user_exists=`psql postgres -qtAXc "SELECT 1 FROM pg_roles WHERE rolname='$user'"`
32
32
 
33
33
  if [ "$user_exists" = "1" ]; then
34
34
  echo "Database user \"$user\" was previously created. Not creating again."
@@ -86,10 +86,6 @@ function create-indexes {
86
86
  psql $database -f $base/indexes/messages-id.sql
87
87
  echo "messages_category_global_position_idx"
88
88
  psql $database -f $base/indexes/messages-category-global-position.sql
89
- echo "messages_category_idx"
90
- psql $database -f $base/indexes/messages-category.sql
91
- echo "messages_stream_name_idx"
92
- psql $database -f $base/indexes/messages-stream-name.sql
93
89
  echo "messages_stream_name_position_uniq_idx"
94
90
  psql $database -f $base/indexes/messages-stream-name-position-uniq.sql
95
91
  echo
@@ -28,7 +28,7 @@ echo
28
28
  function delete-user {
29
29
  echo "Database user is: $user"
30
30
 
31
- user_exists=`psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='$user'"`
31
+ user_exists=`psql postgres -qtAXc "SELECT 1 FROM pg_roles WHERE rolname='$user'"`
32
32
 
33
33
  if [ "$user_exists" = "1" ]; then
34
34
  echo "Deleting database user \"$user\"..."
@@ -43,7 +43,7 @@ function delete-user {
43
43
  function delete-database {
44
44
  echo "Database name is: $database"
45
45
 
46
- database_exists=`psql postgres -tAc "SELECT 1 FROM pg_database WHERE datname='$database'"`
46
+ database_exists=`psql postgres -qtAXc "SELECT 1 FROM pg_database WHERE datname='$database'"`
47
47
 
48
48
  if [ "$database_exists" = "1" ]; then
49
49
  echo "Deleting database \"$database\"..."
@@ -4,7 +4,7 @@ module MessageStore
4
4
  class SelectStatement
5
5
  include Log::Dependency
6
6
 
7
- initializer :stream_name, w(:position), w(:batch_size), :condition
7
+ initializer :stream_name, na(:position), na(:batch_size), :condition
8
8
 
9
9
  def position
10
10
  @position ||= Defaults.position
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evt-message_store-postgres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2.0
4
+ version: 0.6.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-10-19 00:00:00.000000000 Z
11
+ date: 2018-01-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-message_store
@@ -83,9 +83,9 @@ dependencies:
83
83
  description: " "
84
84
  email: opensource@eventide-project.org
85
85
  executables:
86
+ - evt-pg-create-db
86
87
  - evt-pg-delete-db
87
88
  - evt-pg-list-messages
88
- - evt-pg-create-db
89
89
  - evt-pg-recreate-db
90
90
  extensions: []
91
91
  extra_rdoc_files: []
@@ -96,10 +96,8 @@ files:
96
96
  - database/functions/stream-version.sql
97
97
  - database/functions/write-message.sql
98
98
  - database/indexes/messages-category-global-position.sql
99
- - database/indexes/messages-category.sql
100
99
  - database/indexes/messages-id.sql
101
100
  - database/indexes/messages-stream-name-position-uniq.sql
102
- - database/indexes/messages-stream-name.sql
103
101
  - database/install.sh
104
102
  - database/list-messages.sh
105
103
  - database/table/messages-table.sql
@@ -149,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
147
  version: '0'
150
148
  requirements: []
151
149
  rubyforge_project:
152
- rubygems_version: 2.6.14
150
+ rubygems_version: 2.6.11
153
151
  signing_key:
154
152
  specification_version: 4
155
153
  summary: Message store implementation for PostgreSQL
@@ -1 +0,0 @@
1
- CREATE INDEX CONCURRENTLY "messages_category_idx" ON "public"."messages" USING btree(category(stream_name) COLLATE "default" "pg_catalog"."text_ops" ASC NULLS LAST);
@@ -1 +0,0 @@
1
- CREATE INDEX CONCURRENTLY "messages_stream_name_idx" ON "public"."messages" USING btree(stream_name COLLATE "default" "pg_catalog"."text_ops" ASC NULLS LAST);