couchbase 3.0.0.alpha.2 → 3.0.0.alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests-dev-preview.yml +52 -0
  3. data/.gitmodules +3 -0
  4. data/.idea/vcs.xml +1 -0
  5. data/.yardopts +1 -0
  6. data/README.md +1 -1
  7. data/Rakefile +5 -1
  8. data/bin/init-cluster +13 -5
  9. data/couchbase.gemspec +2 -1
  10. data/examples/managing_query_indexes.rb +1 -1
  11. data/examples/managing_search_indexes.rb +62 -0
  12. data/examples/search.rb +187 -0
  13. data/ext/.clang-tidy +1 -0
  14. data/ext/build_version.hxx.in +1 -1
  15. data/ext/couchbase/bucket.hxx +0 -40
  16. data/ext/couchbase/couchbase.cxx +2578 -1368
  17. data/ext/couchbase/io/http_session.hxx +27 -7
  18. data/ext/couchbase/io/mcbp_parser.hxx +2 -0
  19. data/ext/couchbase/io/mcbp_session.hxx +53 -24
  20. data/ext/couchbase/io/session_manager.hxx +6 -1
  21. data/ext/couchbase/operations.hxx +13 -0
  22. data/ext/couchbase/operations/bucket_create.hxx +1 -0
  23. data/ext/couchbase/operations/bucket_drop.hxx +1 -0
  24. data/ext/couchbase/operations/bucket_flush.hxx +1 -0
  25. data/ext/couchbase/operations/bucket_get.hxx +1 -0
  26. data/ext/couchbase/operations/bucket_get_all.hxx +1 -0
  27. data/ext/couchbase/operations/bucket_update.hxx +1 -0
  28. data/ext/couchbase/operations/cluster_developer_preview_enable.hxx +1 -0
  29. data/ext/couchbase/operations/collection_create.hxx +6 -1
  30. data/ext/couchbase/operations/collection_drop.hxx +1 -0
  31. data/ext/couchbase/operations/command.hxx +86 -11
  32. data/ext/couchbase/operations/document_decrement.hxx +1 -0
  33. data/ext/couchbase/operations/document_exists.hxx +1 -0
  34. data/ext/couchbase/operations/document_get.hxx +1 -0
  35. data/ext/couchbase/operations/document_get_and_lock.hxx +1 -0
  36. data/ext/couchbase/operations/document_get_and_touch.hxx +1 -0
  37. data/ext/couchbase/operations/document_get_projected.hxx +243 -0
  38. data/ext/couchbase/operations/document_increment.hxx +4 -1
  39. data/ext/couchbase/operations/document_insert.hxx +1 -0
  40. data/ext/couchbase/operations/document_lookup_in.hxx +1 -0
  41. data/ext/couchbase/operations/document_mutate_in.hxx +1 -0
  42. data/ext/couchbase/operations/document_query.hxx +13 -2
  43. data/ext/couchbase/operations/document_remove.hxx +1 -0
  44. data/ext/couchbase/operations/document_replace.hxx +1 -0
  45. data/ext/couchbase/operations/document_search.hxx +337 -0
  46. data/ext/couchbase/operations/document_touch.hxx +1 -0
  47. data/ext/couchbase/operations/document_unlock.hxx +1 -0
  48. data/ext/couchbase/operations/document_upsert.hxx +1 -0
  49. data/ext/couchbase/operations/query_index_build_deferred.hxx +1 -0
  50. data/ext/couchbase/operations/query_index_create.hxx +1 -0
  51. data/ext/couchbase/operations/query_index_drop.hxx +1 -0
  52. data/ext/couchbase/operations/query_index_get_all.hxx +1 -0
  53. data/ext/couchbase/operations/scope_create.hxx +1 -0
  54. data/ext/couchbase/operations/scope_drop.hxx +1 -0
  55. data/ext/couchbase/operations/scope_get_all.hxx +2 -0
  56. data/ext/couchbase/operations/search_index.hxx +62 -0
  57. data/ext/couchbase/operations/search_index_analyze_document.hxx +92 -0
  58. data/ext/couchbase/operations/search_index_control_ingest.hxx +78 -0
  59. data/ext/couchbase/operations/search_index_control_plan_freeze.hxx +80 -0
  60. data/ext/couchbase/operations/search_index_control_query.hxx +80 -0
  61. data/ext/couchbase/operations/search_index_drop.hxx +77 -0
  62. data/ext/couchbase/operations/search_index_get.hxx +80 -0
  63. data/ext/couchbase/operations/search_index_get_all.hxx +82 -0
  64. data/ext/couchbase/operations/search_index_get_documents_count.hxx +81 -0
  65. data/ext/couchbase/operations/search_index_upsert.hxx +106 -0
  66. data/ext/couchbase/protocol/client_opcode.hxx +10 -0
  67. data/ext/couchbase/protocol/cmd_get_collection_id.hxx +117 -0
  68. data/ext/couchbase/timeout_defaults.hxx +32 -0
  69. data/ext/couchbase/version.hxx +1 -1
  70. data/ext/test/main.cxx +5 -5
  71. data/lib/couchbase/binary_collection.rb +16 -12
  72. data/lib/couchbase/binary_collection_options.rb +4 -0
  73. data/lib/couchbase/cluster.rb +88 -8
  74. data/lib/couchbase/collection.rb +39 -15
  75. data/lib/couchbase/collection_options.rb +19 -2
  76. data/lib/couchbase/json_transcoder.rb +2 -2
  77. data/lib/couchbase/management/bucket_manager.rb +37 -23
  78. data/lib/couchbase/management/collection_manager.rb +15 -6
  79. data/lib/couchbase/management/query_index_manager.rb +16 -6
  80. data/lib/couchbase/management/search_index_manager.rb +61 -14
  81. data/lib/couchbase/search_options.rb +1492 -0
  82. data/lib/couchbase/version.rb +1 -1
  83. metadata +22 -2
@@ -14,5 +14,5 @@
14
14
 
15
15
  module Couchbase
16
16
  VERSION = {} unless defined?(VERSION)
17
- VERSION.update(:sdk => "3.0.0.alpha.2".freeze)
17
+ VERSION.update(:sdk => "3.0.0.alpha.3".freeze)
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.2
4
+ version: 3.0.0.alpha.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Avseyev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-02 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -75,6 +75,7 @@ extensions:
75
75
  extra_rdoc_files: []
76
76
  files:
77
77
  - ".github/workflows/tests-6.0.3.yml"
78
+ - ".github/workflows/tests-dev-preview.yml"
78
79
  - ".github/workflows/tests.yml"
79
80
  - ".gitignore"
80
81
  - ".gitmodules"
@@ -82,6 +83,7 @@ files:
82
83
  - ".idea/dictionaries/gem_terms.xml"
83
84
  - ".idea/inspectionProfiles/Project_Default.xml"
84
85
  - ".idea/vcs.xml"
86
+ - ".yardopts"
85
87
  - Gemfile
86
88
  - LICENSE.txt
87
89
  - README.md
@@ -94,8 +96,10 @@ files:
94
96
  - examples/managing_buckets.rb
95
97
  - examples/managing_collections.rb
96
98
  - examples/managing_query_indexes.rb
99
+ - examples/managing_search_indexes.rb
97
100
  - examples/query.rb
98
101
  - examples/query_with_consistency.rb
102
+ - examples/search.rb
99
103
  - examples/subdocument.rb
100
104
  - ext/.clang-format
101
105
  - ext/.clang-tidy
@@ -159,6 +163,7 @@ files:
159
163
  - ext/couchbase/operations/document_get.hxx
160
164
  - ext/couchbase/operations/document_get_and_lock.hxx
161
165
  - ext/couchbase/operations/document_get_and_touch.hxx
166
+ - ext/couchbase/operations/document_get_projected.hxx
162
167
  - ext/couchbase/operations/document_increment.hxx
163
168
  - ext/couchbase/operations/document_insert.hxx
164
169
  - ext/couchbase/operations/document_lookup_in.hxx
@@ -166,6 +171,7 @@ files:
166
171
  - ext/couchbase/operations/document_query.hxx
167
172
  - ext/couchbase/operations/document_remove.hxx
168
173
  - ext/couchbase/operations/document_replace.hxx
174
+ - ext/couchbase/operations/document_search.hxx
169
175
  - ext/couchbase/operations/document_touch.hxx
170
176
  - ext/couchbase/operations/document_unlock.hxx
171
177
  - ext/couchbase/operations/document_upsert.hxx
@@ -176,6 +182,16 @@ files:
176
182
  - ext/couchbase/operations/scope_create.hxx
177
183
  - ext/couchbase/operations/scope_drop.hxx
178
184
  - ext/couchbase/operations/scope_get_all.hxx
185
+ - ext/couchbase/operations/search_index.hxx
186
+ - ext/couchbase/operations/search_index_analyze_document.hxx
187
+ - ext/couchbase/operations/search_index_control_ingest.hxx
188
+ - ext/couchbase/operations/search_index_control_plan_freeze.hxx
189
+ - ext/couchbase/operations/search_index_control_query.hxx
190
+ - ext/couchbase/operations/search_index_drop.hxx
191
+ - ext/couchbase/operations/search_index_get.hxx
192
+ - ext/couchbase/operations/search_index_get_all.hxx
193
+ - ext/couchbase/operations/search_index_get_documents_count.hxx
194
+ - ext/couchbase/operations/search_index_upsert.hxx
179
195
  - ext/couchbase/platform/base64.cc
180
196
  - ext/couchbase/platform/base64.h
181
197
  - ext/couchbase/platform/random.cc
@@ -194,6 +210,7 @@ files:
194
210
  - ext/couchbase/protocol/cmd_get_and_lock.hxx
195
211
  - ext/couchbase/protocol/cmd_get_and_touch.hxx
196
212
  - ext/couchbase/protocol/cmd_get_cluster_config.hxx
213
+ - ext/couchbase/protocol/cmd_get_collection_id.hxx
197
214
  - ext/couchbase/protocol/cmd_get_collections_manifest.hxx
198
215
  - ext/couchbase/protocol/cmd_get_error_map.hxx
199
216
  - ext/couchbase/protocol/cmd_hello.hxx
@@ -221,6 +238,7 @@ files:
221
238
  - ext/couchbase/protocol/status.hxx
222
239
  - ext/couchbase/protocol/unsigned_leb128.h
223
240
  - ext/couchbase/service_type.hxx
241
+ - ext/couchbase/timeout_defaults.hxx
224
242
  - ext/couchbase/utils/byteswap.hxx
225
243
  - ext/couchbase/utils/crc32.hxx
226
244
  - ext/couchbase/utils/url_codec.hxx
@@ -2134,6 +2152,7 @@ files:
2134
2152
  - lib/couchbase/management/view_index_manager.rb
2135
2153
  - lib/couchbase/mutation_state.rb
2136
2154
  - lib/couchbase/scope.rb
2155
+ - lib/couchbase/search_options.rb
2137
2156
  - lib/couchbase/subdoc.rb
2138
2157
  - lib/couchbase/version.rb
2139
2158
  - rbi/couchbase.rbi
@@ -2144,6 +2163,7 @@ metadata:
2144
2163
  homepage_uri: https://www.couchbase.com
2145
2164
  source_code_uri: https://github.com/couchbase/couchbase-ruby-client
2146
2165
  changelog_uri: https://github.com/couchbase/couchbase-ruby-client/releases
2166
+ github_repo: ssh://github.com/couchbase/couchbase-ruby-client
2147
2167
  post_install_message:
2148
2168
  rdoc_options:
2149
2169
  - "--exclude"