couchbase 3.4.3 → 3.4.5

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.
Files changed (179) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/ext/couchbase/CMakeLists.txt +22 -1
  4. data/ext/couchbase/core/bucket.cxx +183 -152
  5. data/ext/couchbase/core/bucket.hxx +17 -4
  6. data/ext/couchbase/core/cluster.hxx +41 -13
  7. data/ext/couchbase/core/cluster_options.hxx +3 -0
  8. data/ext/couchbase/core/crud_component.cxx +51 -22
  9. data/ext/couchbase/core/error_context/key_value.cxx +2 -1
  10. data/ext/couchbase/core/error_context/key_value.hxx +10 -12
  11. data/ext/couchbase/core/impl/build_deferred_query_indexes.cxx +115 -50
  12. data/ext/couchbase/core/impl/cluster.cxx +6 -0
  13. data/ext/couchbase/core/impl/create_bucket.cxx +158 -0
  14. data/ext/couchbase/core/impl/create_collection.cxx +83 -0
  15. data/ext/couchbase/core/impl/create_query_index.cxx +172 -59
  16. data/ext/couchbase/core/impl/create_scope.cxx +69 -0
  17. data/ext/couchbase/core/impl/dns_srv_tracker.cxx +2 -1
  18. data/ext/couchbase/core/impl/drop_bucket.cxx +66 -0
  19. data/ext/couchbase/core/impl/drop_collection.cxx +76 -0
  20. data/ext/couchbase/core/impl/drop_query_index.cxx +138 -59
  21. data/ext/couchbase/core/impl/drop_scope.cxx +68 -0
  22. data/ext/couchbase/core/impl/flush_bucket.cxx +66 -0
  23. data/ext/couchbase/core/impl/get_all_buckets.cxx +178 -0
  24. data/ext/couchbase/core/impl/get_all_query_indexes.cxx +67 -37
  25. data/ext/couchbase/core/impl/get_all_scopes.cxx +94 -0
  26. data/ext/couchbase/core/impl/get_bucket.cxx +168 -0
  27. data/ext/couchbase/core/impl/internal_manager_error_context.cxx +113 -0
  28. data/ext/couchbase/core/impl/internal_manager_error_context.hxx +60 -0
  29. data/ext/couchbase/core/impl/key_value_error_category.cxx +2 -4
  30. data/ext/couchbase/core/impl/key_value_error_context.cxx +98 -0
  31. data/ext/couchbase/core/impl/lookup_in.cxx +1 -0
  32. data/ext/couchbase/core/impl/lookup_in_all_replicas.cxx +178 -0
  33. data/ext/couchbase/core/impl/lookup_in_all_replicas.hxx +80 -0
  34. data/ext/couchbase/core/impl/lookup_in_any_replica.cxx +169 -0
  35. data/ext/couchbase/core/impl/lookup_in_any_replica.hxx +75 -0
  36. data/ext/couchbase/core/impl/lookup_in_replica.cxx +104 -0
  37. data/ext/couchbase/core/impl/lookup_in_replica.hxx +67 -0
  38. data/ext/couchbase/core/impl/manager_error_context.cxx +100 -0
  39. data/ext/couchbase/core/impl/query.cxx +1 -0
  40. data/ext/couchbase/core/impl/query_error_context.cxx +75 -0
  41. data/ext/couchbase/core/impl/update_bucket.cxx +133 -0
  42. data/ext/couchbase/core/impl/update_collection.cxx +83 -0
  43. data/ext/couchbase/core/impl/watch_query_indexes.cxx +53 -29
  44. data/ext/couchbase/core/io/dns_client.cxx +111 -40
  45. data/ext/couchbase/core/io/dns_config.cxx +5 -4
  46. data/ext/couchbase/core/io/http_session.hxx +24 -1
  47. data/ext/couchbase/core/io/mcbp_command.hxx +9 -2
  48. data/ext/couchbase/core/io/mcbp_session.cxx +80 -43
  49. data/ext/couchbase/core/io/mcbp_session.hxx +4 -3
  50. data/ext/couchbase/core/logger/custom_rotating_file_sink.cxx +1 -1
  51. data/ext/couchbase/core/logger/logger.cxx +80 -20
  52. data/ext/couchbase/core/logger/logger.hxx +31 -0
  53. data/ext/couchbase/core/management/bucket_settings.hxx +8 -5
  54. data/ext/couchbase/core/management/bucket_settings_json.hxx +12 -2
  55. data/ext/couchbase/core/meta/features.hxx +42 -0
  56. data/ext/couchbase/core/operations/document_lookup_in.cxx +8 -1
  57. data/ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx +192 -0
  58. data/ext/couchbase/core/operations/document_lookup_in_any_replica.hxx +188 -0
  59. data/ext/couchbase/core/operations/document_query.cxx +11 -0
  60. data/ext/couchbase/core/operations/document_query.hxx +1 -0
  61. data/ext/couchbase/core/operations/management/CMakeLists.txt +1 -0
  62. data/ext/couchbase/core/operations/management/bucket_create.cxx +30 -9
  63. data/ext/couchbase/core/operations/management/bucket_update.cxx +27 -6
  64. data/ext/couchbase/core/operations/management/collection_create.cxx +5 -1
  65. data/ext/couchbase/core/operations/management/collection_create.hxx +1 -0
  66. data/ext/couchbase/core/operations/management/collection_update.cxx +87 -0
  67. data/ext/couchbase/core/operations/management/collection_update.hxx +54 -0
  68. data/ext/couchbase/core/operations/management/collections.hxx +1 -0
  69. data/ext/couchbase/core/operations.hxx +2 -0
  70. data/ext/couchbase/core/origin.cxx +270 -0
  71. data/ext/couchbase/core/origin.hxx +2 -0
  72. data/ext/couchbase/core/protocol/client_response.hxx +1 -0
  73. data/ext/couchbase/core/protocol/cmd_hello.hxx +1 -0
  74. data/ext/couchbase/core/protocol/cmd_lookup_in_replica.cxx +107 -0
  75. data/ext/couchbase/core/protocol/cmd_lookup_in_replica.hxx +137 -0
  76. data/ext/couchbase/core/protocol/hello_feature.hxx +6 -0
  77. data/ext/couchbase/core/protocol/hello_feature_fmt.hxx +3 -0
  78. data/ext/couchbase/core/protocol/status.cxx +2 -2
  79. data/ext/couchbase/core/range_scan_options.cxx +3 -27
  80. data/ext/couchbase/core/range_scan_options.hxx +13 -17
  81. data/ext/couchbase/core/range_scan_orchestrator.cxx +388 -170
  82. data/ext/couchbase/core/range_scan_orchestrator.hxx +13 -2
  83. data/ext/couchbase/core/range_scan_orchestrator_options.hxx +5 -3
  84. data/ext/couchbase/core/scan_options.hxx +0 -19
  85. data/ext/couchbase/core/scan_result.cxx +19 -5
  86. data/ext/couchbase/core/scan_result.hxx +5 -2
  87. data/ext/couchbase/core/timeout_defaults.hxx +3 -4
  88. data/ext/couchbase/core/topology/capabilities.hxx +4 -0
  89. data/ext/couchbase/core/topology/capabilities_fmt.hxx +11 -0
  90. data/ext/couchbase/core/topology/collections_manifest.hxx +2 -0
  91. data/ext/couchbase/core/topology/collections_manifest_fmt.hxx +1 -1
  92. data/ext/couchbase/core/topology/collections_manifest_json.hxx +3 -0
  93. data/ext/couchbase/core/topology/configuration.hxx +20 -0
  94. data/ext/couchbase/core/topology/configuration_json.hxx +8 -1
  95. data/ext/couchbase/core/utils/connection_string.cxx +62 -47
  96. data/ext/couchbase/core/utils/connection_string.hxx +1 -0
  97. data/ext/couchbase/couchbase/analytics_error_context.hxx +1 -1
  98. data/ext/couchbase/couchbase/behavior_options.hxx +19 -2
  99. data/ext/couchbase/couchbase/bucket.hxx +14 -0
  100. data/ext/couchbase/couchbase/bucket_manager.hxx +135 -0
  101. data/ext/couchbase/couchbase/build_query_index_options.hxx +0 -30
  102. data/ext/couchbase/couchbase/cluster.hxx +14 -0
  103. data/ext/couchbase/couchbase/collection.hxx +111 -0
  104. data/ext/couchbase/couchbase/collection_manager.hxx +160 -0
  105. data/ext/couchbase/couchbase/collection_query_index_manager.hxx +7 -48
  106. data/ext/couchbase/couchbase/create_bucket_options.hxx +41 -0
  107. data/ext/couchbase/couchbase/create_collection_options.hxx +44 -0
  108. data/ext/couchbase/couchbase/create_primary_query_index_options.hxx +0 -29
  109. data/ext/couchbase/couchbase/create_query_index_options.hxx +0 -33
  110. data/ext/couchbase/couchbase/create_scope_options.hxx +41 -0
  111. data/ext/couchbase/couchbase/drop_bucket_options.hxx +41 -0
  112. data/ext/couchbase/couchbase/drop_collection_options.hxx +41 -0
  113. data/ext/couchbase/couchbase/drop_primary_query_index_options.hxx +0 -30
  114. data/ext/couchbase/couchbase/drop_query_index_options.hxx +0 -31
  115. data/ext/couchbase/couchbase/drop_scope_options.hxx +41 -0
  116. data/ext/couchbase/couchbase/error_codes.hxx +1 -2
  117. data/ext/couchbase/couchbase/error_context.hxx +10 -2
  118. data/ext/couchbase/couchbase/flush_bucket_options.hxx +41 -0
  119. data/ext/couchbase/{core/topology/error_map_fmt.hxx → couchbase/fmt/key_value_error_map_attribute.hxx} +21 -21
  120. data/ext/couchbase/couchbase/get_all_buckets_options.hxx +44 -0
  121. data/ext/couchbase/couchbase/get_all_query_indexes_options.hxx +0 -30
  122. data/ext/couchbase/couchbase/get_all_scopes_options.hxx +44 -0
  123. data/ext/couchbase/couchbase/get_and_lock_options.hxx +2 -2
  124. data/ext/couchbase/couchbase/get_and_touch_options.hxx +2 -2
  125. data/ext/couchbase/couchbase/get_bucket_options.hxx +43 -0
  126. data/ext/couchbase/couchbase/get_options.hxx +2 -2
  127. data/ext/couchbase/couchbase/insert_options.hxx +3 -3
  128. data/ext/couchbase/couchbase/key_value_error_context.hxx +7 -2
  129. data/ext/couchbase/couchbase/lookup_in_all_replicas_options.hxx +109 -0
  130. data/ext/couchbase/couchbase/lookup_in_any_replica_options.hxx +101 -0
  131. data/ext/couchbase/couchbase/lookup_in_options.hxx +2 -2
  132. data/ext/couchbase/couchbase/lookup_in_replica_result.hxx +74 -0
  133. data/ext/couchbase/couchbase/lookup_in_result.hxx +26 -0
  134. data/ext/couchbase/couchbase/management/bucket_settings.hxx +119 -0
  135. data/ext/couchbase/couchbase/management/collection_spec.hxx +29 -0
  136. data/ext/couchbase/couchbase/management/scope_spec.hxx +29 -0
  137. data/ext/couchbase/couchbase/manager_error_context.hxx +29 -53
  138. data/ext/couchbase/couchbase/mutate_in_options.hxx +2 -2
  139. data/ext/couchbase/couchbase/query_error_context.hxx +3 -1
  140. data/ext/couchbase/couchbase/query_index_manager.hxx +16 -83
  141. data/ext/couchbase/couchbase/query_options.hxx +18 -0
  142. data/ext/couchbase/couchbase/remove_options.hxx +2 -2
  143. data/ext/couchbase/couchbase/replace_options.hxx +3 -3
  144. data/ext/couchbase/couchbase/security_options.hxx +15 -0
  145. data/ext/couchbase/couchbase/subdocument_error_context.hxx +4 -2
  146. data/ext/couchbase/couchbase/touch_options.hxx +2 -2
  147. data/ext/couchbase/couchbase/unlock_options.hxx +2 -2
  148. data/ext/couchbase/couchbase/update_bucket_options.hxx +41 -0
  149. data/ext/couchbase/couchbase/update_collection_options.hxx +44 -0
  150. data/ext/couchbase/couchbase/upsert_options.hxx +3 -3
  151. data/ext/couchbase/couchbase/watch_query_indexes_options.hxx +0 -31
  152. data/ext/couchbase/test/CMakeLists.txt +1 -0
  153. data/ext/couchbase/test/test_integration_collections.cxx +6 -0
  154. data/ext/couchbase/test/test_integration_crud.cxx +5 -0
  155. data/ext/couchbase/test/test_integration_examples.cxx +137 -1
  156. data/ext/couchbase/test/test_integration_management.cxx +1009 -309
  157. data/ext/couchbase/test/test_integration_query.cxx +19 -7
  158. data/ext/couchbase/test/test_integration_range_scan.cxx +351 -112
  159. data/ext/couchbase/test/test_integration_search.cxx +10 -1
  160. data/ext/couchbase/test/test_integration_subdoc.cxx +721 -7
  161. data/ext/couchbase/test/test_transaction_public_async_api.cxx +13 -12
  162. data/ext/couchbase/test/test_transaction_public_blocking_api.cxx +27 -21
  163. data/ext/couchbase/test/test_unit_connection_string.cxx +29 -0
  164. data/ext/couchbase/test/test_unit_query.cxx +75 -0
  165. data/ext/couchbase.cxx +735 -60
  166. data/ext/revisions.rb +3 -3
  167. data/lib/couchbase/cluster.rb +1 -1
  168. data/lib/couchbase/collection.rb +108 -0
  169. data/lib/couchbase/collection_options.rb +100 -1
  170. data/lib/couchbase/errors.rb +5 -0
  171. data/lib/couchbase/key_value_scan.rb +125 -0
  172. data/lib/couchbase/management/bucket_manager.rb +22 -15
  173. data/lib/couchbase/management/collection_manager.rb +158 -9
  174. data/lib/couchbase/options.rb +151 -0
  175. data/lib/couchbase/scope.rb +1 -1
  176. data/lib/couchbase/utils/time.rb +14 -1
  177. data/lib/couchbase/version.rb +1 -1
  178. metadata +59 -8
  179. data/ext/couchbase/core/impl/collection_query_index_manager.cxx +0 -93
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.4.3
4
+ version: 3.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Avseyev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-05-17 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Modern SDK for Couchbase Server
14
14
  email:
@@ -114,11 +114,13 @@ files:
114
114
  - ext/couchbase/core/impl/bootstrap_state_listener.hxx
115
115
  - ext/couchbase/core/impl/build_deferred_query_indexes.cxx
116
116
  - ext/couchbase/core/impl/cluster.cxx
117
- - ext/couchbase/core/impl/collection_query_index_manager.cxx
118
117
  - ext/couchbase/core/impl/common_error_category.cxx
119
118
  - ext/couchbase/core/impl/configuration_profiles_registry.cxx
120
119
  - ext/couchbase/core/impl/conjunction_query.cxx
120
+ - ext/couchbase/core/impl/create_bucket.cxx
121
+ - ext/couchbase/core/impl/create_collection.cxx
121
122
  - ext/couchbase/core/impl/create_query_index.cxx
123
+ - ext/couchbase/core/impl/create_scope.cxx
122
124
  - ext/couchbase/core/impl/date_range.cxx
123
125
  - ext/couchbase/core/impl/date_range_facet.cxx
124
126
  - ext/couchbase/core/impl/date_range_facet_result.cxx
@@ -127,7 +129,10 @@ files:
127
129
  - ext/couchbase/core/impl/disjunction_query.cxx
128
130
  - ext/couchbase/core/impl/dns_srv_tracker.cxx
129
131
  - ext/couchbase/core/impl/dns_srv_tracker.hxx
132
+ - ext/couchbase/core/impl/drop_bucket.cxx
133
+ - ext/couchbase/core/impl/drop_collection.cxx
130
134
  - ext/couchbase/core/impl/drop_query_index.cxx
135
+ - ext/couchbase/core/impl/drop_scope.cxx
131
136
  - ext/couchbase/core/impl/encoded_search_facet.hxx
132
137
  - ext/couchbase/core/impl/encoded_search_query.hxx
133
138
  - ext/couchbase/core/impl/encoded_search_sort.hxx
@@ -135,23 +140,29 @@ files:
135
140
  - ext/couchbase/core/impl/expiry.cxx
136
141
  - ext/couchbase/core/impl/fail_fast_retry_strategy.cxx
137
142
  - ext/couchbase/core/impl/field_level_encryption_error_category.cxx
143
+ - ext/couchbase/core/impl/flush_bucket.cxx
138
144
  - ext/couchbase/core/impl/geo_bounding_box_query.cxx
139
145
  - ext/couchbase/core/impl/geo_distance_query.cxx
140
146
  - ext/couchbase/core/impl/geo_polygon_query.cxx
141
147
  - ext/couchbase/core/impl/get.cxx
148
+ - ext/couchbase/core/impl/get_all_buckets.cxx
142
149
  - ext/couchbase/core/impl/get_all_query_indexes.cxx
143
150
  - ext/couchbase/core/impl/get_all_replicas.cxx
144
151
  - ext/couchbase/core/impl/get_all_replicas.hxx
152
+ - ext/couchbase/core/impl/get_all_scopes.cxx
145
153
  - ext/couchbase/core/impl/get_and_lock.cxx
146
154
  - ext/couchbase/core/impl/get_and_touch.cxx
147
155
  - ext/couchbase/core/impl/get_any_replica.cxx
148
156
  - ext/couchbase/core/impl/get_any_replica.hxx
157
+ - ext/couchbase/core/impl/get_bucket.cxx
149
158
  - ext/couchbase/core/impl/get_replica.cxx
150
159
  - ext/couchbase/core/impl/get_replica.hxx
151
160
  - ext/couchbase/core/impl/increment.cxx
152
161
  - ext/couchbase/core/impl/insert.cxx
153
162
  - ext/couchbase/core/impl/internal_date_range_facet_result.cxx
154
163
  - ext/couchbase/core/impl/internal_date_range_facet_result.hxx
164
+ - ext/couchbase/core/impl/internal_manager_error_context.cxx
165
+ - ext/couchbase/core/impl/internal_manager_error_context.hxx
155
166
  - ext/couchbase/core/impl/internal_numeric_range_facet_result.cxx
156
167
  - ext/couchbase/core/impl/internal_numeric_range_facet_result.hxx
157
168
  - ext/couchbase/core/impl/internal_search_error_context.cxx
@@ -168,8 +179,16 @@ files:
168
179
  - ext/couchbase/core/impl/internal_term_facet_result.cxx
169
180
  - ext/couchbase/core/impl/internal_term_facet_result.hxx
170
181
  - ext/couchbase/core/impl/key_value_error_category.cxx
182
+ - ext/couchbase/core/impl/key_value_error_context.cxx
171
183
  - ext/couchbase/core/impl/lookup_in.cxx
184
+ - ext/couchbase/core/impl/lookup_in_all_replicas.cxx
185
+ - ext/couchbase/core/impl/lookup_in_all_replicas.hxx
186
+ - ext/couchbase/core/impl/lookup_in_any_replica.cxx
187
+ - ext/couchbase/core/impl/lookup_in_any_replica.hxx
188
+ - ext/couchbase/core/impl/lookup_in_replica.cxx
189
+ - ext/couchbase/core/impl/lookup_in_replica.hxx
172
190
  - ext/couchbase/core/impl/management_error_category.cxx
191
+ - ext/couchbase/core/impl/manager_error_context.cxx
173
192
  - ext/couchbase/core/impl/match_all_query.cxx
174
193
  - ext/couchbase/core/impl/match_none_query.cxx
175
194
  - ext/couchbase/core/impl/match_phrase_query.cxx
@@ -189,6 +208,7 @@ files:
189
208
  - ext/couchbase/core/impl/prepend.cxx
190
209
  - ext/couchbase/core/impl/query.cxx
191
210
  - ext/couchbase/core/impl/query_error_category.cxx
211
+ - ext/couchbase/core/impl/query_error_context.cxx
192
212
  - ext/couchbase/core/impl/query_string_query.cxx
193
213
  - ext/couchbase/core/impl/regexp_query.cxx
194
214
  - ext/couchbase/core/impl/remove.cxx
@@ -238,6 +258,8 @@ files:
238
258
  - ext/couchbase/core/impl/transaction_get_result.cxx
239
259
  - ext/couchbase/core/impl/transaction_op_error_category.cxx
240
260
  - ext/couchbase/core/impl/unlock.cxx
261
+ - ext/couchbase/core/impl/update_bucket.cxx
262
+ - ext/couchbase/core/impl/update_collection.cxx
241
263
  - ext/couchbase/core/impl/upsert.cxx
242
264
  - ext/couchbase/core/impl/view_error_category.cxx
243
265
  - ext/couchbase/core/impl/watch_query_indexes.cxx
@@ -379,6 +401,8 @@ files:
379
401
  - ext/couchbase/core/operations/document_insert.hxx
380
402
  - ext/couchbase/core/operations/document_lookup_in.cxx
381
403
  - ext/couchbase/core/operations/document_lookup_in.hxx
404
+ - ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx
405
+ - ext/couchbase/core/operations/document_lookup_in_any_replica.hxx
382
406
  - ext/couchbase/core/operations/document_mutate_in.cxx
383
407
  - ext/couchbase/core/operations/document_mutate_in.hxx
384
408
  - ext/couchbase/core/operations/document_prepend.cxx
@@ -460,6 +484,8 @@ files:
460
484
  - ext/couchbase/core/operations/management/collection_create.hxx
461
485
  - ext/couchbase/core/operations/management/collection_drop.cxx
462
486
  - ext/couchbase/core/operations/management/collection_drop.hxx
487
+ - ext/couchbase/core/operations/management/collection_update.cxx
488
+ - ext/couchbase/core/operations/management/collection_update.hxx
463
489
  - ext/couchbase/core/operations/management/collections.hxx
464
490
  - ext/couchbase/core/operations/management/collections_manifest_get.cxx
465
491
  - ext/couchbase/core/operations/management/collections_manifest_get.hxx
@@ -559,6 +585,7 @@ files:
559
585
  - ext/couchbase/core/operations/mcbp_noop.cxx
560
586
  - ext/couchbase/core/operations/mcbp_noop.hxx
561
587
  - ext/couchbase/core/operations/operation_traits.hxx
588
+ - ext/couchbase/core/origin.cxx
562
589
  - ext/couchbase/core/origin.hxx
563
590
  - ext/couchbase/core/pending_operation.hxx
564
591
  - ext/couchbase/core/ping_collector.hxx
@@ -618,6 +645,8 @@ files:
618
645
  - ext/couchbase/core/protocol/cmd_insert.hxx
619
646
  - ext/couchbase/core/protocol/cmd_lookup_in.cxx
620
647
  - ext/couchbase/core/protocol/cmd_lookup_in.hxx
648
+ - ext/couchbase/core/protocol/cmd_lookup_in_replica.cxx
649
+ - ext/couchbase/core/protocol/cmd_lookup_in_replica.hxx
621
650
  - ext/couchbase/core/protocol/cmd_mutate_in.cxx
622
651
  - ext/couchbase/core/protocol/cmd_mutate_in.hxx
623
652
  - ext/couchbase/core/protocol/cmd_noop.cxx
@@ -710,7 +739,6 @@ files:
710
739
  - ext/couchbase/core/topology/configuration_fmt.hxx
711
740
  - ext/couchbase/core/topology/configuration_json.hxx
712
741
  - ext/couchbase/core/topology/error_map.hxx
713
- - ext/couchbase/core/topology/error_map_fmt.hxx
714
742
  - ext/couchbase/core/topology/error_map_json.hxx
715
743
  - ext/couchbase/core/tracing/CMakeLists.txt
716
744
  - ext/couchbase/core/tracing/constants.hxx
@@ -815,6 +843,7 @@ files:
815
843
  - ext/couchbase/couchbase/boolean_field_query.hxx
816
844
  - ext/couchbase/couchbase/boolean_query.hxx
817
845
  - ext/couchbase/couchbase/bucket.hxx
846
+ - ext/couchbase/couchbase/bucket_manager.hxx
818
847
  - ext/couchbase/couchbase/build_query_index_options.hxx
819
848
  - ext/couchbase/couchbase/cas.hxx
820
849
  - ext/couchbase/couchbase/certificate_authenticator.hxx
@@ -830,6 +859,7 @@ files:
830
859
  - ext/couchbase/couchbase/codec/tao_json_serializer.hxx
831
860
  - ext/couchbase/couchbase/codec/transcoder_traits.hxx
832
861
  - ext/couchbase/couchbase/collection.hxx
862
+ - ext/couchbase/couchbase/collection_manager.hxx
833
863
  - ext/couchbase/couchbase/collection_query_index_manager.hxx
834
864
  - ext/couchbase/couchbase/common_durability_options.hxx
835
865
  - ext/couchbase/couchbase/common_options.hxx
@@ -838,8 +868,11 @@ files:
838
868
  - ext/couchbase/couchbase/configuration_profiles_registry.hxx
839
869
  - ext/couchbase/couchbase/conjunction_query.hxx
840
870
  - ext/couchbase/couchbase/counter_result.hxx
871
+ - ext/couchbase/couchbase/create_bucket_options.hxx
872
+ - ext/couchbase/couchbase/create_collection_options.hxx
841
873
  - ext/couchbase/couchbase/create_primary_query_index_options.hxx
842
874
  - ext/couchbase/couchbase/create_query_index_options.hxx
875
+ - ext/couchbase/couchbase/create_scope_options.hxx
843
876
  - ext/couchbase/couchbase/date_range.hxx
844
877
  - ext/couchbase/couchbase/date_range_facet.hxx
845
878
  - ext/couchbase/couchbase/date_range_facet_result.hxx
@@ -848,8 +881,11 @@ files:
848
881
  - ext/couchbase/couchbase/disjunction_query.hxx
849
882
  - ext/couchbase/couchbase/dns_options.hxx
850
883
  - ext/couchbase/couchbase/doc_id_query.hxx
884
+ - ext/couchbase/couchbase/drop_bucket_options.hxx
885
+ - ext/couchbase/couchbase/drop_collection_options.hxx
851
886
  - ext/couchbase/couchbase/drop_primary_query_index_options.hxx
852
887
  - ext/couchbase/couchbase/drop_query_index_options.hxx
888
+ - ext/couchbase/couchbase/drop_scope_options.hxx
853
889
  - ext/couchbase/couchbase/durability_level.hxx
854
890
  - ext/couchbase/couchbase/error_codes.hxx
855
891
  - ext/couchbase/couchbase/error_context.hxx
@@ -857,10 +893,12 @@ files:
857
893
  - ext/couchbase/couchbase/exists_result.hxx
858
894
  - ext/couchbase/couchbase/expiry.hxx
859
895
  - ext/couchbase/couchbase/fail_fast_retry_strategy.hxx
896
+ - ext/couchbase/couchbase/flush_bucket_options.hxx
860
897
  - ext/couchbase/couchbase/fmt/analytics_scan_consistency.hxx
861
898
  - ext/couchbase/couchbase/fmt/analytics_status.hxx
862
899
  - ext/couchbase/couchbase/fmt/cas.hxx
863
900
  - ext/couchbase/couchbase/fmt/durability_level.hxx
901
+ - ext/couchbase/couchbase/fmt/key_value_error_map_attribute.hxx
864
902
  - ext/couchbase/couchbase/fmt/key_value_extended_error_info.hxx
865
903
  - ext/couchbase/couchbase/fmt/key_value_status_code.hxx
866
904
  - ext/couchbase/couchbase/fmt/mutation_token.hxx
@@ -873,11 +911,14 @@ files:
873
911
  - ext/couchbase/couchbase/geo_distance_query.hxx
874
912
  - ext/couchbase/couchbase/geo_point.hxx
875
913
  - ext/couchbase/couchbase/geo_polygon_query.hxx
914
+ - ext/couchbase/couchbase/get_all_buckets_options.hxx
876
915
  - ext/couchbase/couchbase/get_all_query_indexes_options.hxx
877
916
  - ext/couchbase/couchbase/get_all_replicas_options.hxx
917
+ - ext/couchbase/couchbase/get_all_scopes_options.hxx
878
918
  - ext/couchbase/couchbase/get_and_lock_options.hxx
879
919
  - ext/couchbase/couchbase/get_and_touch_options.hxx
880
920
  - ext/couchbase/couchbase/get_any_replica_options.hxx
921
+ - ext/couchbase/couchbase/get_bucket_options.hxx
881
922
  - ext/couchbase/couchbase/get_options.hxx
882
923
  - ext/couchbase/couchbase/get_replica_result.hxx
883
924
  - ext/couchbase/couchbase/get_result.hxx
@@ -890,10 +931,16 @@ files:
890
931
  - ext/couchbase/couchbase/key_value_error_map_info.hxx
891
932
  - ext/couchbase/couchbase/key_value_extended_error_info.hxx
892
933
  - ext/couchbase/couchbase/key_value_status_code.hxx
934
+ - ext/couchbase/couchbase/lookup_in_all_replicas_options.hxx
935
+ - ext/couchbase/couchbase/lookup_in_any_replica_options.hxx
893
936
  - ext/couchbase/couchbase/lookup_in_options.hxx
937
+ - ext/couchbase/couchbase/lookup_in_replica_result.hxx
894
938
  - ext/couchbase/couchbase/lookup_in_result.hxx
895
939
  - ext/couchbase/couchbase/lookup_in_specs.hxx
940
+ - ext/couchbase/couchbase/management/bucket_settings.hxx
941
+ - ext/couchbase/couchbase/management/collection_spec.hxx
896
942
  - ext/couchbase/couchbase/management/query_index.hxx
943
+ - ext/couchbase/couchbase/management/scope_spec.hxx
897
944
  - ext/couchbase/couchbase/manager_error_context.hxx
898
945
  - ext/couchbase/couchbase/match_all_query.hxx
899
946
  - ext/couchbase/couchbase/match_none_query.hxx
@@ -1007,6 +1054,8 @@ files:
1007
1054
  - ext/couchbase/couchbase/transactions/transactions_config.hxx
1008
1055
  - ext/couchbase/couchbase/transactions/transactions_query_config.hxx
1009
1056
  - ext/couchbase/couchbase/unlock_options.hxx
1057
+ - ext/couchbase/couchbase/update_bucket_options.hxx
1058
+ - ext/couchbase/couchbase/update_collection_options.hxx
1010
1059
  - ext/couchbase/couchbase/upsert_options.hxx
1011
1060
  - ext/couchbase/couchbase/wan_development_configuration_profile.hxx
1012
1061
  - ext/couchbase/couchbase/watch_query_indexes_options.hxx
@@ -1049,6 +1098,7 @@ files:
1049
1098
  - ext/couchbase/test/test_unit_json_transcoder.cxx
1050
1099
  - ext/couchbase/test/test_unit_jsonsl.cxx
1051
1100
  - ext/couchbase/test/test_unit_options.cxx
1101
+ - ext/couchbase/test/test_unit_query.cxx
1052
1102
  - ext/couchbase/test/test_unit_search.cxx
1053
1103
  - ext/couchbase/test/test_unit_transaction_logging.cxx
1054
1104
  - ext/couchbase/test/test_unit_transaction_utils.cxx
@@ -2359,6 +2409,7 @@ files:
2359
2409
  - lib/couchbase/diagnostics.rb
2360
2410
  - lib/couchbase/errors.rb
2361
2411
  - lib/couchbase/json_transcoder.rb
2412
+ - lib/couchbase/key_value_scan.rb
2362
2413
  - lib/couchbase/logger.rb
2363
2414
  - lib/couchbase/management.rb
2364
2415
  - lib/couchbase/management/analytics_index_manager.rb
@@ -2394,9 +2445,9 @@ metadata:
2394
2445
  homepage_uri: https://docs.couchbase.com/ruby-sdk/current/hello-world/start-using-sdk.html
2395
2446
  bug_tracker_uri: https://couchbase.com/issues/browse/RCBC
2396
2447
  mailing_list_uri: https://forums.couchbase.com/c/ruby-sdk
2397
- source_code_uri: https://github.com/couchbase/couchbase-ruby-client/tree/3.4.3
2398
- changelog_uri: https://github.com/couchbase/couchbase-ruby-client/releases/tag/3.4.3
2399
- documentation_uri: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.4.3/index.html
2448
+ source_code_uri: https://github.com/couchbase/couchbase-ruby-client/tree/3.4.5
2449
+ changelog_uri: https://github.com/couchbase/couchbase-ruby-client/releases/tag/3.4.5
2450
+ documentation_uri: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.4.5/index.html
2400
2451
  github_repo: ssh://github.com/couchbase/couchbase-ruby-client
2401
2452
  rubygems_mfa_required: 'true'
2402
2453
  post_install_message:
@@ -2409,7 +2460,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
2409
2460
  requirements:
2410
2461
  - - ">"
2411
2462
  - !ruby/object:Gem::Version
2412
- version: '2.7'
2463
+ version: '3.0'
2413
2464
  required_rubygems_version: !ruby/object:Gem::Requirement
2414
2465
  requirements:
2415
2466
  - - ">="
@@ -1,93 +0,0 @@
1
- /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
- /*
3
- * Copyright 2020-Present Couchbase, Inc.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
-
18
- #include <core/query_context.hxx>
19
- #include <couchbase/collection_query_index_manager.hxx>
20
-
21
- namespace couchbase
22
- {
23
-
24
- void
25
- collection_query_index_manager::get_all_indexes(const get_all_query_indexes_options& options, get_all_query_indexes_handler&& handler) const
26
- {
27
- return core::impl::initiate_get_all_query_indexes(core_,
28
- "",
29
- options.build(),
30
- core::query_context(bucket_name_, scope_name_),
31
- collection_name_,
32
- std::forward<get_all_query_indexes_handler>(handler));
33
- }
34
-
35
- void
36
- collection_query_index_manager::create_index(std::string index_name,
37
- std::vector<std::string> fields,
38
- const create_query_index_options& options,
39
- create_query_index_handler&& handler) const
40
- {
41
- return core::impl::initiate_create_query_index(core_,
42
- "",
43
- std::move(index_name),
44
- std::move(fields),
45
- options.build(),
46
- { bucket_name_, scope_name_ },
47
- collection_name_,
48
- std::forward<create_query_index_handler>(handler));
49
- }
50
-
51
- void
52
- collection_query_index_manager::create_primary_index(const create_primary_query_index_options& options,
53
- create_query_index_handler&& handler) const
54
- {
55
- return core::impl::initiate_create_primary_query_index(
56
- core_, "", options.build(), { bucket_name_, scope_name_ }, collection_name_, std::move(handler));
57
- }
58
-
59
- void
60
- collection_query_index_manager::drop_primary_index(const drop_primary_query_index_options& options,
61
- drop_query_index_handler&& handler) const
62
- {
63
- return core::impl::initiate_drop_primary_query_index(
64
- core_, "", options.build(), { bucket_name_, scope_name_ }, collection_name_, std::move(handler));
65
- }
66
- void
67
- collection_query_index_manager::drop_index(std::string index_name,
68
- const drop_query_index_options& options,
69
- drop_query_index_handler&& handler) const
70
- {
71
- return core::impl::initiate_drop_query_index(
72
- core_, "", std::move(index_name), options.build(), { bucket_name_, scope_name_ }, collection_name_, std::move(handler));
73
- }
74
- void
75
- collection_query_index_manager::build_deferred_indexes(const build_query_index_options& options,
76
- build_deferred_query_indexes_handler&& handler) const
77
- {
78
- return core::impl::initiate_build_deferred_indexes(core_,
79
- "",
80
- options.build(),
81
- { bucket_name_, scope_name_ },
82
- collection_name_,
83
- std::forward<build_deferred_query_indexes_handler>(handler));
84
- }
85
- void
86
- collection_query_index_manager::watch_indexes(std::vector<std::string> index_names,
87
- const watch_query_indexes_options& options,
88
- watch_query_indexes_handler&& handler) const
89
- {
90
- return core::impl::initiate_watch_query_indexes(
91
- core_, "", std::move(index_names), options.build(), { bucket_name_, scope_name_ }, collection_name_, std::move(handler));
92
- }
93
- } // namespace couchbase