couchbase 3.4.2 → 3.4.4

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 (355) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/ext/couchbase/CMakeLists.txt +71 -7
  4. data/ext/couchbase/cmake/Documentation.cmake +0 -1
  5. data/ext/couchbase/cmake/OpenSSL.cmake +98 -3
  6. data/ext/couchbase/cmake/Testing.cmake +12 -4
  7. data/ext/couchbase/cmake/build_config.hxx.in +3 -0
  8. data/ext/couchbase/core/bucket.cxx +183 -151
  9. data/ext/couchbase/core/bucket.hxx +23 -1
  10. data/ext/couchbase/core/cluster.hxx +51 -13
  11. data/ext/couchbase/core/cluster_options.cxx +2 -2
  12. data/ext/couchbase/core/cluster_options.hxx +7 -6
  13. data/ext/couchbase/core/cluster_options_fwd.hxx +26 -0
  14. data/ext/couchbase/core/config_profile.hxx +1 -54
  15. data/ext/couchbase/core/config_profiles.cxx +79 -0
  16. data/ext/couchbase/core/config_profiles.hxx +56 -0
  17. data/ext/couchbase/core/crud_component.cxx +51 -22
  18. data/ext/couchbase/core/error_context/key_value.cxx +2 -1
  19. data/ext/couchbase/core/error_context/key_value.hxx +10 -12
  20. data/ext/couchbase/core/error_context/search.hxx +1 -1
  21. data/ext/couchbase/core/impl/analytics.cxx +1 -0
  22. data/ext/couchbase/core/impl/boolean_field_query.cxx +40 -0
  23. data/ext/couchbase/core/impl/boolean_query.cxx +62 -0
  24. data/ext/couchbase/core/impl/build_deferred_query_indexes.cxx +115 -50
  25. data/ext/couchbase/core/impl/cluster.cxx +8 -0
  26. data/ext/couchbase/core/impl/conjunction_query.cxx +51 -0
  27. data/ext/couchbase/core/impl/create_bucket.cxx +155 -0
  28. data/ext/couchbase/core/impl/create_query_index.cxx +172 -59
  29. data/ext/couchbase/core/impl/date_range.cxx +89 -0
  30. data/ext/couchbase/core/impl/date_range_facet.cxx +54 -0
  31. data/ext/couchbase/core/impl/date_range_facet_result.cxx +64 -0
  32. data/ext/couchbase/core/impl/date_range_query.cxx +125 -0
  33. data/ext/couchbase/core/impl/disjunction_query.cxx +51 -0
  34. data/ext/couchbase/core/impl/dns_srv_tracker.cxx +2 -1
  35. data/ext/couchbase/core/impl/drop_bucket.cxx +66 -0
  36. data/ext/couchbase/core/impl/drop_query_index.cxx +138 -59
  37. data/ext/couchbase/core/impl/encoded_search_facet.hxx +29 -0
  38. data/ext/couchbase/core/impl/encoded_search_query.hxx +29 -0
  39. data/ext/couchbase/core/impl/encoded_search_sort.hxx +29 -0
  40. data/ext/couchbase/core/impl/flush_bucket.cxx +66 -0
  41. data/ext/couchbase/core/impl/geo_bounding_box_query.cxx +46 -0
  42. data/ext/couchbase/core/impl/geo_distance_query.cxx +43 -0
  43. data/ext/couchbase/core/impl/geo_polygon_query.cxx +46 -0
  44. data/ext/couchbase/core/impl/get_all_buckets.cxx +163 -0
  45. data/ext/couchbase/core/impl/get_all_query_indexes.cxx +67 -37
  46. data/ext/couchbase/core/impl/get_bucket.cxx +153 -0
  47. data/ext/couchbase/core/impl/internal_date_range_facet_result.cxx +80 -0
  48. data/ext/couchbase/core/impl/internal_date_range_facet_result.hxx +48 -0
  49. data/ext/couchbase/core/impl/internal_manager_error_context.cxx +113 -0
  50. data/ext/couchbase/core/impl/internal_manager_error_context.hxx +60 -0
  51. data/ext/couchbase/core/impl/internal_numeric_range_facet_result.cxx +80 -0
  52. data/ext/couchbase/core/impl/internal_numeric_range_facet_result.hxx +48 -0
  53. data/ext/couchbase/core/impl/internal_search_error_context.cxx +141 -0
  54. data/ext/couchbase/core/impl/internal_search_error_context.hxx +61 -0
  55. data/ext/couchbase/core/impl/internal_search_meta_data.cxx +60 -0
  56. data/ext/couchbase/core/impl/internal_search_meta_data.hxx +41 -0
  57. data/ext/couchbase/core/impl/internal_search_result.cxx +84 -0
  58. data/ext/couchbase/core/impl/internal_search_result.hxx +43 -0
  59. data/ext/couchbase/core/impl/internal_search_row.cxx +82 -0
  60. data/ext/couchbase/core/impl/internal_search_row.hxx +56 -0
  61. data/ext/couchbase/core/impl/internal_search_row_location.hxx +32 -0
  62. data/ext/couchbase/core/impl/internal_search_row_locations.cxx +137 -0
  63. data/ext/couchbase/core/impl/internal_search_row_locations.hxx +45 -0
  64. data/ext/couchbase/core/impl/internal_term_facet_result.cxx +80 -0
  65. data/ext/couchbase/core/impl/internal_term_facet_result.hxx +48 -0
  66. data/ext/couchbase/core/impl/key_value_error_category.cxx +2 -4
  67. data/ext/couchbase/core/impl/key_value_error_context.cxx +98 -0
  68. data/ext/couchbase/core/impl/lookup_in.cxx +1 -0
  69. data/ext/couchbase/core/impl/lookup_in_all_replicas.cxx +176 -0
  70. data/ext/couchbase/core/impl/lookup_in_all_replicas.hxx +80 -0
  71. data/ext/couchbase/core/impl/lookup_in_any_replica.cxx +167 -0
  72. data/ext/couchbase/core/impl/lookup_in_any_replica.hxx +75 -0
  73. data/ext/couchbase/core/impl/lookup_in_replica.cxx +97 -0
  74. data/ext/couchbase/core/impl/lookup_in_replica.hxx +67 -0
  75. data/ext/couchbase/core/impl/manager_error_context.cxx +100 -0
  76. data/ext/couchbase/core/impl/match_all_query.cxx +35 -0
  77. data/ext/couchbase/core/impl/match_none_query.cxx +35 -0
  78. data/ext/couchbase/core/impl/match_phrase_query.cxx +43 -0
  79. data/ext/couchbase/core/impl/match_query.cxx +59 -0
  80. data/ext/couchbase/core/impl/numeric_range.cxx +49 -0
  81. data/ext/couchbase/core/impl/numeric_range_facet.cxx +54 -0
  82. data/ext/couchbase/core/impl/numeric_range_facet_result.cxx +64 -0
  83. data/ext/couchbase/core/impl/numeric_range_query.cxx +56 -0
  84. data/ext/couchbase/core/impl/phrase_query.cxx +42 -0
  85. data/ext/couchbase/core/impl/prefix_query.cxx +40 -0
  86. data/ext/couchbase/core/impl/query.cxx +1 -0
  87. data/ext/couchbase/core/impl/query_error_context.cxx +75 -0
  88. data/ext/couchbase/core/impl/query_string_query.cxx +37 -0
  89. data/ext/couchbase/core/impl/regexp_query.cxx +40 -0
  90. data/ext/couchbase/core/impl/search.cxx +191 -0
  91. data/ext/couchbase/core/impl/search_error_context.cxx +147 -0
  92. data/ext/couchbase/core/impl/search_meta_data.cxx +46 -0
  93. data/ext/couchbase/core/impl/search_result.cxx +66 -0
  94. data/ext/couchbase/core/impl/search_row.cxx +74 -0
  95. data/ext/couchbase/core/impl/search_row_location.cxx +64 -0
  96. data/ext/couchbase/core/impl/search_row_locations.cxx +66 -0
  97. data/ext/couchbase/core/impl/search_sort_field.cxx +104 -0
  98. data/ext/couchbase/core/impl/search_sort_id.cxx +43 -0
  99. data/ext/couchbase/core/impl/search_sort_score.cxx +43 -0
  100. data/ext/couchbase/core/impl/term_facet.cxx +36 -0
  101. data/ext/couchbase/core/impl/term_facet_result.cxx +64 -0
  102. data/ext/couchbase/core/impl/term_query.cxx +56 -0
  103. data/ext/couchbase/core/impl/term_range_query.cxx +57 -0
  104. data/ext/couchbase/core/impl/update_bucket.cxx +130 -0
  105. data/ext/couchbase/core/impl/watch_query_indexes.cxx +53 -29
  106. data/ext/couchbase/core/impl/wildcard_query.cxx +40 -0
  107. data/ext/couchbase/core/io/dns_client.cxx +111 -40
  108. data/ext/couchbase/core/io/dns_config.cxx +5 -4
  109. data/ext/couchbase/core/io/http_context.hxx +1 -1
  110. data/ext/couchbase/core/io/http_session.hxx +34 -1
  111. data/ext/couchbase/core/io/http_session_manager.hxx +5 -3
  112. data/ext/couchbase/core/io/mcbp_command.hxx +9 -2
  113. data/ext/couchbase/core/io/mcbp_session.cxx +106 -42
  114. data/ext/couchbase/core/io/mcbp_session.hxx +4 -3
  115. data/ext/couchbase/core/io/retry_orchestrator.hxx +3 -2
  116. data/ext/couchbase/core/json_string.hxx +5 -0
  117. data/ext/couchbase/core/logger/custom_rotating_file_sink.cxx +1 -1
  118. data/ext/couchbase/core/logger/logger.cxx +80 -20
  119. data/ext/couchbase/core/logger/logger.hxx +31 -0
  120. data/ext/couchbase/core/meta/features.hxx +25 -0
  121. data/ext/couchbase/core/meta/version.cxx +18 -4
  122. data/ext/couchbase/core/mozilla_ca_bundle.hxx +39 -0
  123. data/ext/couchbase/core/operations/document_analytics.cxx +1 -0
  124. data/ext/couchbase/core/operations/document_analytics.hxx +1 -0
  125. data/ext/couchbase/core/operations/document_append.hxx +1 -1
  126. data/ext/couchbase/core/operations/document_decrement.hxx +1 -1
  127. data/ext/couchbase/core/operations/document_exists.hxx +1 -1
  128. data/ext/couchbase/core/operations/document_get.hxx +1 -1
  129. data/ext/couchbase/core/operations/document_get_and_lock.hxx +1 -1
  130. data/ext/couchbase/core/operations/document_get_and_touch.hxx +1 -1
  131. data/ext/couchbase/core/operations/document_get_projected.hxx +1 -1
  132. data/ext/couchbase/core/operations/document_increment.hxx +1 -1
  133. data/ext/couchbase/core/operations/document_insert.hxx +1 -1
  134. data/ext/couchbase/core/operations/document_lookup_in.hxx +1 -1
  135. data/ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx +192 -0
  136. data/ext/couchbase/core/operations/document_lookup_in_any_replica.hxx +188 -0
  137. data/ext/couchbase/core/operations/document_mutate_in.hxx +1 -1
  138. data/ext/couchbase/core/operations/document_prepend.hxx +1 -1
  139. data/ext/couchbase/core/operations/document_query.cxx +13 -0
  140. data/ext/couchbase/core/operations/document_query.hxx +7 -0
  141. data/ext/couchbase/core/operations/document_remove.hxx +1 -1
  142. data/ext/couchbase/core/operations/document_replace.hxx +1 -1
  143. data/ext/couchbase/core/operations/document_search.cxx +4 -1
  144. data/ext/couchbase/core/operations/document_search.hxx +2 -1
  145. data/ext/couchbase/core/operations/document_touch.hxx +1 -1
  146. data/ext/couchbase/core/operations/document_unlock.hxx +1 -1
  147. data/ext/couchbase/core/operations/document_upsert.hxx +1 -1
  148. data/ext/couchbase/core/operations/document_view.hxx +1 -0
  149. data/ext/couchbase/core/operations.hxx +2 -0
  150. data/ext/couchbase/core/origin.cxx +270 -0
  151. data/ext/couchbase/core/origin.hxx +2 -0
  152. data/ext/couchbase/core/protocol/client_request.hxx +11 -2
  153. data/ext/couchbase/core/protocol/client_response.hxx +1 -0
  154. data/ext/couchbase/core/protocol/cmd_hello.hxx +1 -0
  155. data/ext/couchbase/core/protocol/cmd_lookup_in_replica.cxx +107 -0
  156. data/ext/couchbase/core/protocol/cmd_lookup_in_replica.hxx +137 -0
  157. data/ext/couchbase/core/protocol/hello_feature.hxx +6 -0
  158. data/ext/couchbase/core/protocol/hello_feature_fmt.hxx +3 -0
  159. data/ext/couchbase/core/protocol/status.cxx +2 -2
  160. data/ext/couchbase/core/public_fwd.hxx +21 -0
  161. data/ext/couchbase/core/range_scan_options.cxx +3 -27
  162. data/ext/couchbase/core/range_scan_options.hxx +13 -17
  163. data/ext/couchbase/core/range_scan_orchestrator.cxx +388 -170
  164. data/ext/couchbase/core/range_scan_orchestrator.hxx +13 -2
  165. data/ext/couchbase/core/range_scan_orchestrator_options.hxx +5 -3
  166. data/ext/couchbase/core/scan_options.hxx +0 -19
  167. data/ext/couchbase/core/scan_result.cxx +19 -5
  168. data/ext/couchbase/core/scan_result.hxx +5 -2
  169. data/ext/couchbase/core/timeout_defaults.hxx +2 -3
  170. data/ext/couchbase/core/tls_verify_mode.hxx +26 -0
  171. data/ext/couchbase/core/topology/capabilities.hxx +3 -0
  172. data/ext/couchbase/core/topology/capabilities_fmt.hxx +8 -0
  173. data/ext/couchbase/core/topology/collections_manifest_fmt.hxx +1 -1
  174. data/ext/couchbase/core/topology/configuration.cxx +15 -2
  175. data/ext/couchbase/core/topology/configuration.hxx +20 -1
  176. data/ext/couchbase/core/topology/configuration_json.hxx +6 -1
  177. data/ext/couchbase/core/transactions/attempt_context_testing_hooks.cxx +93 -0
  178. data/ext/couchbase/core/transactions/attempt_context_testing_hooks.hxx +48 -75
  179. data/ext/couchbase/core/transactions/cleanup_testing_hooks.cxx +52 -0
  180. data/ext/couchbase/core/transactions/cleanup_testing_hooks.hxx +17 -31
  181. data/ext/couchbase/core/transactions/exceptions.hxx +12 -9
  182. data/ext/couchbase/core/utils/connection_string.cxx +75 -43
  183. data/ext/couchbase/core/utils/connection_string.hxx +1 -0
  184. data/ext/couchbase/core/utils/json.cxx +4 -1
  185. data/ext/couchbase/couchbase/analytics_error_context.hxx +1 -1
  186. data/ext/couchbase/couchbase/behavior_options.hxx +27 -1
  187. data/ext/couchbase/couchbase/boolean_field_query.hxx +77 -0
  188. data/ext/couchbase/couchbase/boolean_query.hxx +223 -0
  189. data/ext/couchbase/couchbase/bucket_manager.hxx +135 -0
  190. data/ext/couchbase/couchbase/build_query_index_options.hxx +0 -30
  191. data/ext/couchbase/couchbase/cluster.hxx +56 -1
  192. data/ext/couchbase/couchbase/collection.hxx +111 -0
  193. data/ext/couchbase/couchbase/collection_query_index_manager.hxx +7 -48
  194. data/ext/couchbase/couchbase/conjunction_query.hxx +88 -0
  195. data/ext/couchbase/couchbase/create_bucket_options.hxx +41 -0
  196. data/ext/couchbase/couchbase/create_primary_query_index_options.hxx +0 -29
  197. data/ext/couchbase/couchbase/create_query_index_options.hxx +0 -33
  198. data/ext/couchbase/couchbase/date_range.hxx +69 -0
  199. data/ext/couchbase/couchbase/date_range_facet.hxx +56 -0
  200. data/ext/couchbase/couchbase/date_range_facet_result.hxx +55 -0
  201. data/ext/couchbase/couchbase/date_range_query.hxx +265 -0
  202. data/ext/couchbase/couchbase/disjunction_query.hxx +109 -0
  203. data/ext/couchbase/couchbase/doc_id_query.hxx +111 -0
  204. data/ext/couchbase/couchbase/drop_bucket_options.hxx +41 -0
  205. data/ext/couchbase/couchbase/drop_primary_query_index_options.hxx +0 -30
  206. data/ext/couchbase/couchbase/drop_query_index_options.hxx +0 -31
  207. data/ext/couchbase/couchbase/error_codes.hxx +1 -2
  208. data/ext/couchbase/couchbase/error_context.hxx +17 -8
  209. data/ext/couchbase/couchbase/flush_bucket_options.hxx +41 -0
  210. data/ext/couchbase/couchbase/fmt/analytics_scan_consistency.hxx +52 -0
  211. data/ext/couchbase/{core/topology/error_map_fmt.hxx → couchbase/fmt/key_value_error_map_attribute.hxx} +21 -21
  212. data/ext/couchbase/couchbase/fmt/search_scan_consistency.hxx +49 -0
  213. data/ext/couchbase/couchbase/geo_bounding_box_query.hxx +107 -0
  214. data/ext/couchbase/couchbase/geo_distance_query.hxx +109 -0
  215. data/ext/couchbase/couchbase/geo_point.hxx +32 -0
  216. data/ext/couchbase/couchbase/geo_polygon_query.hxx +85 -0
  217. data/ext/couchbase/couchbase/get_all_buckets_options.hxx +44 -0
  218. data/ext/couchbase/couchbase/get_all_query_indexes_options.hxx +0 -30
  219. data/ext/couchbase/couchbase/get_and_lock_options.hxx +2 -2
  220. data/ext/couchbase/couchbase/get_and_touch_options.hxx +2 -2
  221. data/ext/couchbase/couchbase/get_bucket_options.hxx +43 -0
  222. data/ext/couchbase/couchbase/get_options.hxx +2 -2
  223. data/ext/couchbase/couchbase/highlight_style.hxx +45 -0
  224. data/ext/couchbase/couchbase/insert_options.hxx +3 -3
  225. data/ext/couchbase/couchbase/key_value_error_context.hxx +7 -2
  226. data/ext/couchbase/couchbase/lookup_in_all_replicas_options.hxx +109 -0
  227. data/ext/couchbase/couchbase/lookup_in_any_replica_options.hxx +101 -0
  228. data/ext/couchbase/couchbase/lookup_in_options.hxx +2 -2
  229. data/ext/couchbase/couchbase/lookup_in_replica_result.hxx +74 -0
  230. data/ext/couchbase/couchbase/lookup_in_result.hxx +26 -0
  231. data/ext/couchbase/couchbase/management/bucket_settings.hxx +116 -0
  232. data/ext/couchbase/couchbase/manager_error_context.hxx +29 -53
  233. data/ext/couchbase/couchbase/match_all_query.hxx +43 -0
  234. data/ext/couchbase/couchbase/match_none_query.hxx +43 -0
  235. data/ext/couchbase/couchbase/match_operator.hxx +45 -0
  236. data/ext/couchbase/couchbase/match_phrase_query.hxx +108 -0
  237. data/ext/couchbase/couchbase/match_query.hxx +163 -0
  238. data/ext/couchbase/couchbase/mutate_in_options.hxx +2 -2
  239. data/ext/couchbase/couchbase/numeric_range.hxx +58 -0
  240. data/ext/couchbase/couchbase/numeric_range_facet.hxx +56 -0
  241. data/ext/couchbase/couchbase/numeric_range_facet_result.hxx +55 -0
  242. data/ext/couchbase/couchbase/numeric_range_query.hxx +143 -0
  243. data/ext/couchbase/couchbase/phrase_query.hxx +93 -0
  244. data/ext/couchbase/couchbase/prefix_query.hxx +82 -0
  245. data/ext/couchbase/couchbase/query_error_context.hxx +3 -1
  246. data/ext/couchbase/couchbase/query_index_manager.hxx +16 -83
  247. data/ext/couchbase/couchbase/query_options.hxx +18 -0
  248. data/ext/couchbase/couchbase/query_string_query.hxx +72 -0
  249. data/ext/couchbase/couchbase/regexp_query.hxx +82 -0
  250. data/ext/couchbase/couchbase/remove_options.hxx +2 -2
  251. data/ext/couchbase/couchbase/replace_options.hxx +3 -3
  252. data/ext/couchbase/couchbase/scope.hxx +40 -0
  253. data/ext/couchbase/couchbase/search_date_range.hxx +68 -0
  254. data/ext/couchbase/couchbase/search_error_context.hxx +138 -0
  255. data/ext/couchbase/couchbase/search_facet.hxx +60 -0
  256. data/ext/couchbase/couchbase/search_facet_result.hxx +50 -0
  257. data/ext/couchbase/couchbase/search_meta_data.hxx +85 -0
  258. data/ext/couchbase/couchbase/search_metrics.hxx +127 -0
  259. data/ext/couchbase/couchbase/search_numeric_range.hxx +69 -0
  260. data/ext/couchbase/couchbase/search_options.hxx +509 -0
  261. data/ext/couchbase/couchbase/search_query.hxx +69 -0
  262. data/ext/couchbase/couchbase/search_result.hxx +77 -0
  263. data/ext/couchbase/couchbase/search_row.hxx +104 -0
  264. data/ext/couchbase/couchbase/search_row_location.hxx +55 -0
  265. data/ext/couchbase/couchbase/search_row_locations.hxx +86 -0
  266. data/ext/couchbase/couchbase/search_scan_consistency.hxx +34 -0
  267. data/ext/couchbase/couchbase/search_sort.hxx +58 -0
  268. data/ext/couchbase/couchbase/search_sort_field.hxx +117 -0
  269. data/ext/couchbase/couchbase/search_sort_field_missing.hxx +26 -0
  270. data/ext/couchbase/couchbase/search_sort_field_mode.hxx +27 -0
  271. data/ext/couchbase/couchbase/search_sort_field_type.hxx +28 -0
  272. data/ext/couchbase/couchbase/search_sort_id.hxx +60 -0
  273. data/ext/couchbase/couchbase/search_sort_score.hxx +60 -0
  274. data/ext/couchbase/couchbase/search_term_range.hxx +51 -0
  275. data/ext/couchbase/couchbase/security_options.hxx +18 -0
  276. data/ext/couchbase/couchbase/subdocument_error_context.hxx +4 -2
  277. data/ext/couchbase/couchbase/term_facet.hxx +48 -0
  278. data/ext/couchbase/couchbase/term_facet_result.hxx +55 -0
  279. data/ext/couchbase/couchbase/term_query.hxx +151 -0
  280. data/ext/couchbase/couchbase/term_range_query.hxx +142 -0
  281. data/ext/couchbase/couchbase/touch_options.hxx +2 -2
  282. data/ext/couchbase/couchbase/tracing/request_span.hxx +63 -0
  283. data/ext/couchbase/couchbase/tracing/request_tracer.hxx +2 -40
  284. data/ext/couchbase/couchbase/transactions/async_attempt_context.hxx +83 -4
  285. data/ext/couchbase/couchbase/transactions/attempt_context.hxx +67 -0
  286. data/ext/couchbase/couchbase/transactions/transaction_get_result.hxx +2 -0
  287. data/ext/couchbase/couchbase/transactions/transaction_keyspace.hxx +11 -1
  288. data/ext/couchbase/couchbase/transactions/transaction_options.hxx +79 -8
  289. data/ext/couchbase/couchbase/transactions/transaction_query_options.hxx +128 -15
  290. data/ext/couchbase/couchbase/transactions/transaction_query_result.hxx +4 -0
  291. data/ext/couchbase/couchbase/transactions/transaction_result.hxx +1 -1
  292. data/ext/couchbase/couchbase/transactions/transactions_cleanup_config.hxx +5 -3
  293. data/ext/couchbase/couchbase/transactions/transactions_config.hxx +9 -5
  294. data/ext/couchbase/couchbase/transactions/transactions_query_config.hxx +6 -3
  295. data/ext/couchbase/couchbase/transactions.hxx +34 -1
  296. data/ext/couchbase/couchbase/unlock_options.hxx +2 -2
  297. data/ext/couchbase/couchbase/update_bucket_options.hxx +41 -0
  298. data/ext/couchbase/couchbase/upsert_options.hxx +3 -3
  299. data/ext/couchbase/couchbase/watch_query_indexes_options.hxx +0 -31
  300. data/ext/couchbase/couchbase/wildcard_query.hxx +83 -0
  301. data/ext/couchbase/test/CMakeLists.txt +8 -5
  302. data/ext/couchbase/test/benchmark_helper_integration.hxx +2 -2
  303. data/ext/couchbase/test/test_helper.hxx +5 -5
  304. data/ext/couchbase/test/test_integration_analytics.cxx +28 -6
  305. data/ext/couchbase/test/test_integration_collections.cxx +13 -3
  306. data/ext/couchbase/test/test_integration_connect.cxx +7 -3
  307. data/ext/couchbase/test/test_integration_crud.cxx +18 -3
  308. data/ext/couchbase/test/test_integration_diagnostics.cxx +11 -5
  309. data/ext/couchbase/test/test_integration_durability.cxx +12 -7
  310. data/ext/couchbase/test/test_integration_examples.cxx +419 -11
  311. data/ext/couchbase/test/test_integration_management.cxx +867 -368
  312. data/ext/couchbase/test/test_integration_query.cxx +87 -17
  313. data/ext/couchbase/test/test_integration_range_scan.cxx +363 -124
  314. data/ext/couchbase/test/test_integration_read_replica.cxx +48 -11
  315. data/ext/couchbase/test/test_integration_search.cxx +32 -3
  316. data/ext/couchbase/test/test_integration_subdoc.cxx +717 -11
  317. data/ext/couchbase/test/test_integration_tracer.cxx +5 -0
  318. data/ext/couchbase/test/test_integration_transcoders.cxx +13 -5
  319. data/ext/couchbase/test/{test_transaction_transaction_context.cxx → test_transaction_context.cxx} +1 -1
  320. data/ext/couchbase/test/test_transaction_examples.cxx +195 -0
  321. data/ext/couchbase/test/{test_transaction_transaction_public_async_api.cxx → test_transaction_public_async_api.cxx} +13 -12
  322. data/ext/couchbase/test/{test_transaction_transaction_public_blocking_api.cxx → test_transaction_public_blocking_api.cxx} +27 -21
  323. data/ext/couchbase/test/{test_transaction_transaction_simple.cxx → test_transaction_simple.cxx} +17 -5
  324. data/ext/couchbase/test/{test_transaction_transaction_simple_async.cxx → test_transaction_simple_async.cxx} +19 -21
  325. data/ext/couchbase/test/test_unit_config_profiles.cxx +1 -1
  326. data/ext/couchbase/test/test_unit_connection_string.cxx +29 -0
  327. data/ext/couchbase/test/test_unit_json_transcoder.cxx +4 -0
  328. data/ext/couchbase/test/test_unit_query.cxx +75 -0
  329. data/ext/couchbase/test/test_unit_search.cxx +427 -0
  330. data/ext/couchbase/test/test_unit_transaction_utils.cxx +10 -1
  331. data/ext/couchbase/test/test_unit_utils.cxx +8 -4
  332. data/ext/couchbase.cxx +641 -45
  333. data/ext/revisions.rb +3 -3
  334. data/lib/couchbase/authenticator.rb +0 -1
  335. data/lib/couchbase/cluster.rb +1 -5
  336. data/lib/couchbase/collection.rb +108 -0
  337. data/lib/couchbase/collection_options.rb +100 -0
  338. data/lib/couchbase/config_profiles.rb +1 -1
  339. data/lib/couchbase/errors.rb +5 -0
  340. data/lib/couchbase/json_transcoder.rb +12 -5
  341. data/lib/couchbase/key_value_scan.rb +125 -0
  342. data/lib/couchbase/management/collection_query_index_manager.rb +54 -15
  343. data/lib/couchbase/management/query_index_manager.rb +70 -5
  344. data/lib/couchbase/options.rb +151 -0
  345. data/lib/couchbase/raw_binary_transcoder.rb +37 -0
  346. data/lib/couchbase/raw_json_transcoder.rb +38 -0
  347. data/lib/couchbase/raw_string_transcoder.rb +40 -0
  348. data/lib/couchbase/scope.rb +1 -1
  349. data/lib/couchbase/search_options.rb +5 -0
  350. data/lib/couchbase/transcoder_flags.rb +62 -0
  351. data/lib/couchbase/utils/time.rb +14 -1
  352. data/lib/couchbase/version.rb +1 -1
  353. metadata +175 -13
  354. data/ext/couchbase/core/config_profile.cxx +0 -47
  355. 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.2
4
+ version: 3.4.4
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-04-12 00:00:00.000000000 Z
11
+ date: 2023-08-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Modern SDK for Couchbase Server
14
14
  email:
@@ -65,6 +65,7 @@ files:
65
65
  - ext/couchbase/core/cluster_agent_config.hxx
66
66
  - ext/couchbase/core/cluster_options.cxx
67
67
  - ext/couchbase/core/cluster_options.hxx
68
+ - ext/couchbase/core/cluster_options_fwd.hxx
68
69
  - ext/couchbase/core/cluster_state.hxx
69
70
  - ext/couchbase/core/collection_id_cache_entry.hxx
70
71
  - ext/couchbase/core/collections_component.cxx
@@ -72,8 +73,9 @@ files:
72
73
  - ext/couchbase/core/collections_component_unit_test_api.hxx
73
74
  - ext/couchbase/core/collections_options.hxx
74
75
  - ext/couchbase/core/config_listener.hxx
75
- - ext/couchbase/core/config_profile.cxx
76
76
  - ext/couchbase/core/config_profile.hxx
77
+ - ext/couchbase/core/config_profiles.cxx
78
+ - ext/couchbase/core/config_profiles.hxx
77
79
  - ext/couchbase/core/core_sdk_shim.cxx
78
80
  - ext/couchbase/core/core_sdk_shim.hxx
79
81
  - ext/couchbase/core/crud_component.cxx
@@ -107,22 +109,39 @@ files:
107
109
  - ext/couchbase/core/impl/analytics_error_category.cxx
108
110
  - ext/couchbase/core/impl/append.cxx
109
111
  - ext/couchbase/core/impl/best_effort_retry_strategy.cxx
112
+ - ext/couchbase/core/impl/boolean_field_query.cxx
113
+ - ext/couchbase/core/impl/boolean_query.cxx
110
114
  - ext/couchbase/core/impl/bootstrap_state_listener.hxx
111
115
  - ext/couchbase/core/impl/build_deferred_query_indexes.cxx
112
116
  - ext/couchbase/core/impl/cluster.cxx
113
- - ext/couchbase/core/impl/collection_query_index_manager.cxx
114
117
  - ext/couchbase/core/impl/common_error_category.cxx
115
118
  - ext/couchbase/core/impl/configuration_profiles_registry.cxx
119
+ - ext/couchbase/core/impl/conjunction_query.cxx
120
+ - ext/couchbase/core/impl/create_bucket.cxx
116
121
  - ext/couchbase/core/impl/create_query_index.cxx
122
+ - ext/couchbase/core/impl/date_range.cxx
123
+ - ext/couchbase/core/impl/date_range_facet.cxx
124
+ - ext/couchbase/core/impl/date_range_facet_result.cxx
125
+ - ext/couchbase/core/impl/date_range_query.cxx
117
126
  - ext/couchbase/core/impl/decrement.cxx
127
+ - ext/couchbase/core/impl/disjunction_query.cxx
118
128
  - ext/couchbase/core/impl/dns_srv_tracker.cxx
119
129
  - ext/couchbase/core/impl/dns_srv_tracker.hxx
130
+ - ext/couchbase/core/impl/drop_bucket.cxx
120
131
  - ext/couchbase/core/impl/drop_query_index.cxx
132
+ - ext/couchbase/core/impl/encoded_search_facet.hxx
133
+ - ext/couchbase/core/impl/encoded_search_query.hxx
134
+ - ext/couchbase/core/impl/encoded_search_sort.hxx
121
135
  - ext/couchbase/core/impl/exists.cxx
122
136
  - ext/couchbase/core/impl/expiry.cxx
123
137
  - ext/couchbase/core/impl/fail_fast_retry_strategy.cxx
124
138
  - ext/couchbase/core/impl/field_level_encryption_error_category.cxx
139
+ - ext/couchbase/core/impl/flush_bucket.cxx
140
+ - ext/couchbase/core/impl/geo_bounding_box_query.cxx
141
+ - ext/couchbase/core/impl/geo_distance_query.cxx
142
+ - ext/couchbase/core/impl/geo_polygon_query.cxx
125
143
  - ext/couchbase/core/impl/get.cxx
144
+ - ext/couchbase/core/impl/get_all_buckets.cxx
126
145
  - ext/couchbase/core/impl/get_all_query_indexes.cxx
127
146
  - ext/couchbase/core/impl/get_all_replicas.cxx
128
147
  - ext/couchbase/core/impl/get_all_replicas.hxx
@@ -130,27 +149,78 @@ files:
130
149
  - ext/couchbase/core/impl/get_and_touch.cxx
131
150
  - ext/couchbase/core/impl/get_any_replica.cxx
132
151
  - ext/couchbase/core/impl/get_any_replica.hxx
152
+ - ext/couchbase/core/impl/get_bucket.cxx
133
153
  - ext/couchbase/core/impl/get_replica.cxx
134
154
  - ext/couchbase/core/impl/get_replica.hxx
135
155
  - ext/couchbase/core/impl/increment.cxx
136
156
  - ext/couchbase/core/impl/insert.cxx
157
+ - ext/couchbase/core/impl/internal_date_range_facet_result.cxx
158
+ - ext/couchbase/core/impl/internal_date_range_facet_result.hxx
159
+ - ext/couchbase/core/impl/internal_manager_error_context.cxx
160
+ - ext/couchbase/core/impl/internal_manager_error_context.hxx
161
+ - ext/couchbase/core/impl/internal_numeric_range_facet_result.cxx
162
+ - ext/couchbase/core/impl/internal_numeric_range_facet_result.hxx
163
+ - ext/couchbase/core/impl/internal_search_error_context.cxx
164
+ - ext/couchbase/core/impl/internal_search_error_context.hxx
165
+ - ext/couchbase/core/impl/internal_search_meta_data.cxx
166
+ - ext/couchbase/core/impl/internal_search_meta_data.hxx
167
+ - ext/couchbase/core/impl/internal_search_result.cxx
168
+ - ext/couchbase/core/impl/internal_search_result.hxx
169
+ - ext/couchbase/core/impl/internal_search_row.cxx
170
+ - ext/couchbase/core/impl/internal_search_row.hxx
171
+ - ext/couchbase/core/impl/internal_search_row_location.hxx
172
+ - ext/couchbase/core/impl/internal_search_row_locations.cxx
173
+ - ext/couchbase/core/impl/internal_search_row_locations.hxx
174
+ - ext/couchbase/core/impl/internal_term_facet_result.cxx
175
+ - ext/couchbase/core/impl/internal_term_facet_result.hxx
137
176
  - ext/couchbase/core/impl/key_value_error_category.cxx
177
+ - ext/couchbase/core/impl/key_value_error_context.cxx
138
178
  - ext/couchbase/core/impl/lookup_in.cxx
179
+ - ext/couchbase/core/impl/lookup_in_all_replicas.cxx
180
+ - ext/couchbase/core/impl/lookup_in_all_replicas.hxx
181
+ - ext/couchbase/core/impl/lookup_in_any_replica.cxx
182
+ - ext/couchbase/core/impl/lookup_in_any_replica.hxx
183
+ - ext/couchbase/core/impl/lookup_in_replica.cxx
184
+ - ext/couchbase/core/impl/lookup_in_replica.hxx
139
185
  - ext/couchbase/core/impl/management_error_category.cxx
186
+ - ext/couchbase/core/impl/manager_error_context.cxx
187
+ - ext/couchbase/core/impl/match_all_query.cxx
188
+ - ext/couchbase/core/impl/match_none_query.cxx
189
+ - ext/couchbase/core/impl/match_phrase_query.cxx
190
+ - ext/couchbase/core/impl/match_query.cxx
140
191
  - ext/couchbase/core/impl/mutate_in.cxx
141
192
  - ext/couchbase/core/impl/network_error_category.cxx
193
+ - ext/couchbase/core/impl/numeric_range.cxx
194
+ - ext/couchbase/core/impl/numeric_range_facet.cxx
195
+ - ext/couchbase/core/impl/numeric_range_facet_result.cxx
196
+ - ext/couchbase/core/impl/numeric_range_query.cxx
142
197
  - ext/couchbase/core/impl/observe_poll.cxx
143
198
  - ext/couchbase/core/impl/observe_poll.hxx
144
199
  - ext/couchbase/core/impl/observe_seqno.cxx
145
200
  - ext/couchbase/core/impl/observe_seqno.hxx
201
+ - ext/couchbase/core/impl/phrase_query.cxx
202
+ - ext/couchbase/core/impl/prefix_query.cxx
146
203
  - ext/couchbase/core/impl/prepend.cxx
147
204
  - ext/couchbase/core/impl/query.cxx
148
205
  - ext/couchbase/core/impl/query_error_category.cxx
206
+ - ext/couchbase/core/impl/query_error_context.cxx
207
+ - ext/couchbase/core/impl/query_string_query.cxx
208
+ - ext/couchbase/core/impl/regexp_query.cxx
149
209
  - ext/couchbase/core/impl/remove.cxx
150
210
  - ext/couchbase/core/impl/replace.cxx
151
211
  - ext/couchbase/core/impl/retry_action.cxx
152
212
  - ext/couchbase/core/impl/retry_reason.cxx
213
+ - ext/couchbase/core/impl/search.cxx
153
214
  - ext/couchbase/core/impl/search_error_category.cxx
215
+ - ext/couchbase/core/impl/search_error_context.cxx
216
+ - ext/couchbase/core/impl/search_meta_data.cxx
217
+ - ext/couchbase/core/impl/search_result.cxx
218
+ - ext/couchbase/core/impl/search_row.cxx
219
+ - ext/couchbase/core/impl/search_row_location.cxx
220
+ - ext/couchbase/core/impl/search_row_locations.cxx
221
+ - ext/couchbase/core/impl/search_sort_field.cxx
222
+ - ext/couchbase/core/impl/search_sort_id.cxx
223
+ - ext/couchbase/core/impl/search_sort_score.cxx
154
224
  - ext/couchbase/core/impl/streaming_json_lexter_error_category.cxx
155
225
  - ext/couchbase/core/impl/subdoc/array_add_unique.cxx
156
226
  - ext/couchbase/core/impl/subdoc/array_append.cxx
@@ -174,14 +244,20 @@ files:
174
244
  - ext/couchbase/core/impl/subdoc/remove.cxx
175
245
  - ext/couchbase/core/impl/subdoc/replace.cxx
176
246
  - ext/couchbase/core/impl/subdoc/upsert.cxx
247
+ - ext/couchbase/core/impl/term_facet.cxx
248
+ - ext/couchbase/core/impl/term_facet_result.cxx
249
+ - ext/couchbase/core/impl/term_query.cxx
250
+ - ext/couchbase/core/impl/term_range_query.cxx
177
251
  - ext/couchbase/core/impl/touch.cxx
178
252
  - ext/couchbase/core/impl/transaction_error_category.cxx
179
253
  - ext/couchbase/core/impl/transaction_get_result.cxx
180
254
  - ext/couchbase/core/impl/transaction_op_error_category.cxx
181
255
  - ext/couchbase/core/impl/unlock.cxx
256
+ - ext/couchbase/core/impl/update_bucket.cxx
182
257
  - ext/couchbase/core/impl/upsert.cxx
183
258
  - ext/couchbase/core/impl/view_error_category.cxx
184
259
  - ext/couchbase/core/impl/watch_query_indexes.cxx
260
+ - ext/couchbase/core/impl/wildcard_query.cxx
185
261
  - ext/couchbase/core/impl/with_legacy_durability.hxx
186
262
  - ext/couchbase/core/io/dns_client.cxx
187
263
  - ext/couchbase/core/io/dns_client.hxx
@@ -290,6 +366,7 @@ files:
290
366
  - ext/couchbase/core/metrics/logging_meter.hxx
291
367
  - ext/couchbase/core/metrics/logging_meter_options.hxx
292
368
  - ext/couchbase/core/metrics/noop_meter.hxx
369
+ - ext/couchbase/core/mozilla_ca_bundle.hxx
293
370
  - ext/couchbase/core/n1ql_query_options.cxx
294
371
  - ext/couchbase/core/n1ql_query_options.hxx
295
372
  - ext/couchbase/core/operation_map.hxx
@@ -318,6 +395,8 @@ files:
318
395
  - ext/couchbase/core/operations/document_insert.hxx
319
396
  - ext/couchbase/core/operations/document_lookup_in.cxx
320
397
  - ext/couchbase/core/operations/document_lookup_in.hxx
398
+ - ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx
399
+ - ext/couchbase/core/operations/document_lookup_in_any_replica.hxx
321
400
  - ext/couchbase/core/operations/document_mutate_in.cxx
322
401
  - ext/couchbase/core/operations/document_mutate_in.hxx
323
402
  - ext/couchbase/core/operations/document_prepend.cxx
@@ -498,6 +577,7 @@ files:
498
577
  - ext/couchbase/core/operations/mcbp_noop.cxx
499
578
  - ext/couchbase/core/operations/mcbp_noop.hxx
500
579
  - ext/couchbase/core/operations/operation_traits.hxx
580
+ - ext/couchbase/core/origin.cxx
501
581
  - ext/couchbase/core/origin.hxx
502
582
  - ext/couchbase/core/pending_operation.hxx
503
583
  - ext/couchbase/core/ping_collector.hxx
@@ -557,6 +637,8 @@ files:
557
637
  - ext/couchbase/core/protocol/cmd_insert.hxx
558
638
  - ext/couchbase/core/protocol/cmd_lookup_in.cxx
559
639
  - ext/couchbase/core/protocol/cmd_lookup_in.hxx
640
+ - ext/couchbase/core/protocol/cmd_lookup_in_replica.cxx
641
+ - ext/couchbase/core/protocol/cmd_lookup_in_replica.hxx
560
642
  - ext/couchbase/core/protocol/cmd_mutate_in.cxx
561
643
  - ext/couchbase/core/protocol/cmd_mutate_in.hxx
562
644
  - ext/couchbase/core/protocol/cmd_noop.cxx
@@ -598,6 +680,7 @@ files:
598
680
  - ext/couchbase/core/protocol/server_request.hxx
599
681
  - ext/couchbase/core/protocol/status.cxx
600
682
  - ext/couchbase/core/protocol/status.hxx
683
+ - ext/couchbase/core/public_fwd.hxx
601
684
  - ext/couchbase/core/query_context.hxx
602
685
  - ext/couchbase/core/range_scan_options.cxx
603
686
  - ext/couchbase/core/range_scan_options.hxx
@@ -637,6 +720,7 @@ files:
637
720
  - ext/couchbase/core/stats_options.hxx
638
721
  - ext/couchbase/core/subdoc_options.hxx
639
722
  - ext/couchbase/core/timeout_defaults.hxx
723
+ - ext/couchbase/core/tls_verify_mode.hxx
640
724
  - ext/couchbase/core/topology/capabilities.hxx
641
725
  - ext/couchbase/core/topology/capabilities_fmt.hxx
642
726
  - ext/couchbase/core/topology/collections_manifest.hxx
@@ -647,7 +731,6 @@ files:
647
731
  - ext/couchbase/core/topology/configuration_fmt.hxx
648
732
  - ext/couchbase/core/topology/configuration_json.hxx
649
733
  - ext/couchbase/core/topology/error_map.hxx
650
- - ext/couchbase/core/topology/error_map_fmt.hxx
651
734
  - ext/couchbase/core/topology/error_map_json.hxx
652
735
  - ext/couchbase/core/tracing/CMakeLists.txt
653
736
  - ext/couchbase/core/tracing/constants.hxx
@@ -664,9 +747,11 @@ files:
664
747
  - ext/couchbase/core/transactions/attempt_context.hxx
665
748
  - ext/couchbase/core/transactions/attempt_context_impl.cxx
666
749
  - ext/couchbase/core/transactions/attempt_context_impl.hxx
750
+ - ext/couchbase/core/transactions/attempt_context_testing_hooks.cxx
667
751
  - ext/couchbase/core/transactions/attempt_context_testing_hooks.hxx
668
752
  - ext/couchbase/core/transactions/attempt_state.hxx
669
753
  - ext/couchbase/core/transactions/binary.cxx
754
+ - ext/couchbase/core/transactions/cleanup_testing_hooks.cxx
670
755
  - ext/couchbase/core/transactions/cleanup_testing_hooks.hxx
671
756
  - ext/couchbase/core/transactions/document_metadata.hxx
672
757
  - ext/couchbase/core/transactions/durability_level.hxx
@@ -747,7 +832,10 @@ files:
747
832
  - ext/couchbase/couchbase/behavior_options.hxx
748
833
  - ext/couchbase/couchbase/best_effort_retry_strategy.hxx
749
834
  - ext/couchbase/couchbase/binary_collection.hxx
835
+ - ext/couchbase/couchbase/boolean_field_query.hxx
836
+ - ext/couchbase/couchbase/boolean_query.hxx
750
837
  - ext/couchbase/couchbase/bucket.hxx
838
+ - ext/couchbase/couchbase/bucket_manager.hxx
751
839
  - ext/couchbase/couchbase/build_query_index_options.hxx
752
840
  - ext/couchbase/couchbase/cas.hxx
753
841
  - ext/couchbase/couchbase/certificate_authenticator.hxx
@@ -769,11 +857,20 @@ files:
769
857
  - ext/couchbase/couchbase/compression_options.hxx
770
858
  - ext/couchbase/couchbase/configuration_profile.hxx
771
859
  - ext/couchbase/couchbase/configuration_profiles_registry.hxx
860
+ - ext/couchbase/couchbase/conjunction_query.hxx
772
861
  - ext/couchbase/couchbase/counter_result.hxx
862
+ - ext/couchbase/couchbase/create_bucket_options.hxx
773
863
  - ext/couchbase/couchbase/create_primary_query_index_options.hxx
774
864
  - ext/couchbase/couchbase/create_query_index_options.hxx
865
+ - ext/couchbase/couchbase/date_range.hxx
866
+ - ext/couchbase/couchbase/date_range_facet.hxx
867
+ - ext/couchbase/couchbase/date_range_facet_result.hxx
868
+ - ext/couchbase/couchbase/date_range_query.hxx
775
869
  - ext/couchbase/couchbase/decrement_options.hxx
870
+ - ext/couchbase/couchbase/disjunction_query.hxx
776
871
  - ext/couchbase/couchbase/dns_options.hxx
872
+ - ext/couchbase/couchbase/doc_id_query.hxx
873
+ - ext/couchbase/couchbase/drop_bucket_options.hxx
777
874
  - ext/couchbase/couchbase/drop_primary_query_index_options.hxx
778
875
  - ext/couchbase/couchbase/drop_query_index_options.hxx
779
876
  - ext/couchbase/couchbase/durability_level.hxx
@@ -783,24 +880,35 @@ files:
783
880
  - ext/couchbase/couchbase/exists_result.hxx
784
881
  - ext/couchbase/couchbase/expiry.hxx
785
882
  - ext/couchbase/couchbase/fail_fast_retry_strategy.hxx
883
+ - ext/couchbase/couchbase/flush_bucket_options.hxx
884
+ - ext/couchbase/couchbase/fmt/analytics_scan_consistency.hxx
786
885
  - ext/couchbase/couchbase/fmt/analytics_status.hxx
787
886
  - ext/couchbase/couchbase/fmt/cas.hxx
788
887
  - ext/couchbase/couchbase/fmt/durability_level.hxx
888
+ - ext/couchbase/couchbase/fmt/key_value_error_map_attribute.hxx
789
889
  - ext/couchbase/couchbase/fmt/key_value_extended_error_info.hxx
790
890
  - ext/couchbase/couchbase/fmt/key_value_status_code.hxx
791
891
  - ext/couchbase/couchbase/fmt/mutation_token.hxx
792
892
  - ext/couchbase/couchbase/fmt/query_scan_consistency.hxx
793
893
  - ext/couchbase/couchbase/fmt/query_status.hxx
794
894
  - ext/couchbase/couchbase/fmt/retry_reason.hxx
895
+ - ext/couchbase/couchbase/fmt/search_scan_consistency.hxx
795
896
  - ext/couchbase/couchbase/fmt/tls_verify_mode.hxx
897
+ - ext/couchbase/couchbase/geo_bounding_box_query.hxx
898
+ - ext/couchbase/couchbase/geo_distance_query.hxx
899
+ - ext/couchbase/couchbase/geo_point.hxx
900
+ - ext/couchbase/couchbase/geo_polygon_query.hxx
901
+ - ext/couchbase/couchbase/get_all_buckets_options.hxx
796
902
  - ext/couchbase/couchbase/get_all_query_indexes_options.hxx
797
903
  - ext/couchbase/couchbase/get_all_replicas_options.hxx
798
904
  - ext/couchbase/couchbase/get_and_lock_options.hxx
799
905
  - ext/couchbase/couchbase/get_and_touch_options.hxx
800
906
  - ext/couchbase/couchbase/get_any_replica_options.hxx
907
+ - ext/couchbase/couchbase/get_bucket_options.hxx
801
908
  - ext/couchbase/couchbase/get_options.hxx
802
909
  - ext/couchbase/couchbase/get_replica_result.hxx
803
910
  - ext/couchbase/couchbase/get_result.hxx
911
+ - ext/couchbase/couchbase/highlight_style.hxx
804
912
  - ext/couchbase/couchbase/increment_options.hxx
805
913
  - ext/couchbase/couchbase/insert_options.hxx
806
914
  - ext/couchbase/couchbase/ip_protocol.hxx
@@ -809,11 +917,20 @@ files:
809
917
  - ext/couchbase/couchbase/key_value_error_map_info.hxx
810
918
  - ext/couchbase/couchbase/key_value_extended_error_info.hxx
811
919
  - ext/couchbase/couchbase/key_value_status_code.hxx
920
+ - ext/couchbase/couchbase/lookup_in_all_replicas_options.hxx
921
+ - ext/couchbase/couchbase/lookup_in_any_replica_options.hxx
812
922
  - ext/couchbase/couchbase/lookup_in_options.hxx
923
+ - ext/couchbase/couchbase/lookup_in_replica_result.hxx
813
924
  - ext/couchbase/couchbase/lookup_in_result.hxx
814
925
  - ext/couchbase/couchbase/lookup_in_specs.hxx
926
+ - ext/couchbase/couchbase/management/bucket_settings.hxx
815
927
  - ext/couchbase/couchbase/management/query_index.hxx
816
928
  - ext/couchbase/couchbase/manager_error_context.hxx
929
+ - ext/couchbase/couchbase/match_all_query.hxx
930
+ - ext/couchbase/couchbase/match_none_query.hxx
931
+ - ext/couchbase/couchbase/match_operator.hxx
932
+ - ext/couchbase/couchbase/match_phrase_query.hxx
933
+ - ext/couchbase/couchbase/match_query.hxx
817
934
  - ext/couchbase/couchbase/metrics/meter.hxx
818
935
  - ext/couchbase/couchbase/metrics/otel_meter.hxx
819
936
  - ext/couchbase/couchbase/metrics_options.hxx
@@ -824,8 +941,14 @@ files:
824
941
  - ext/couchbase/couchbase/mutation_state.hxx
825
942
  - ext/couchbase/couchbase/mutation_token.hxx
826
943
  - ext/couchbase/couchbase/network_options.hxx
944
+ - ext/couchbase/couchbase/numeric_range.hxx
945
+ - ext/couchbase/couchbase/numeric_range_facet.hxx
946
+ - ext/couchbase/couchbase/numeric_range_facet_result.hxx
947
+ - ext/couchbase/couchbase/numeric_range_query.hxx
827
948
  - ext/couchbase/couchbase/password_authenticator.hxx
828
949
  - ext/couchbase/couchbase/persist_to.hxx
950
+ - ext/couchbase/couchbase/phrase_query.hxx
951
+ - ext/couchbase/couchbase/prefix_query.hxx
829
952
  - ext/couchbase/couchbase/prepend_options.hxx
830
953
  - ext/couchbase/couchbase/query_error_context.hxx
831
954
  - ext/couchbase/couchbase/query_index_manager.hxx
@@ -836,7 +959,9 @@ files:
836
959
  - ext/couchbase/couchbase/query_result.hxx
837
960
  - ext/couchbase/couchbase/query_scan_consistency.hxx
838
961
  - ext/couchbase/couchbase/query_status.hxx
962
+ - ext/couchbase/couchbase/query_string_query.hxx
839
963
  - ext/couchbase/couchbase/query_warning.hxx
964
+ - ext/couchbase/couchbase/regexp_query.hxx
840
965
  - ext/couchbase/couchbase/remove_options.hxx
841
966
  - ext/couchbase/couchbase/replace_options.hxx
842
967
  - ext/couchbase/couchbase/replicate_to.hxx
@@ -846,6 +971,28 @@ files:
846
971
  - ext/couchbase/couchbase/retry_request.hxx
847
972
  - ext/couchbase/couchbase/retry_strategy.hxx
848
973
  - ext/couchbase/couchbase/scope.hxx
974
+ - ext/couchbase/couchbase/search_date_range.hxx
975
+ - ext/couchbase/couchbase/search_error_context.hxx
976
+ - ext/couchbase/couchbase/search_facet.hxx
977
+ - ext/couchbase/couchbase/search_facet_result.hxx
978
+ - ext/couchbase/couchbase/search_meta_data.hxx
979
+ - ext/couchbase/couchbase/search_metrics.hxx
980
+ - ext/couchbase/couchbase/search_numeric_range.hxx
981
+ - ext/couchbase/couchbase/search_options.hxx
982
+ - ext/couchbase/couchbase/search_query.hxx
983
+ - ext/couchbase/couchbase/search_result.hxx
984
+ - ext/couchbase/couchbase/search_row.hxx
985
+ - ext/couchbase/couchbase/search_row_location.hxx
986
+ - ext/couchbase/couchbase/search_row_locations.hxx
987
+ - ext/couchbase/couchbase/search_scan_consistency.hxx
988
+ - ext/couchbase/couchbase/search_sort.hxx
989
+ - ext/couchbase/couchbase/search_sort_field.hxx
990
+ - ext/couchbase/couchbase/search_sort_field_missing.hxx
991
+ - ext/couchbase/couchbase/search_sort_field_mode.hxx
992
+ - ext/couchbase/couchbase/search_sort_field_type.hxx
993
+ - ext/couchbase/couchbase/search_sort_id.hxx
994
+ - ext/couchbase/couchbase/search_sort_score.hxx
995
+ - ext/couchbase/couchbase/search_term_range.hxx
849
996
  - ext/couchbase/couchbase/security_options.hxx
850
997
  - ext/couchbase/couchbase/store_semantics.hxx
851
998
  - ext/couchbase/couchbase/subdoc/array_add_unique.hxx
@@ -865,10 +1012,15 @@ files:
865
1012
  - ext/couchbase/couchbase/subdoc/replace.hxx
866
1013
  - ext/couchbase/couchbase/subdoc/upsert.hxx
867
1014
  - ext/couchbase/couchbase/subdocument_error_context.hxx
1015
+ - ext/couchbase/couchbase/term_facet.hxx
1016
+ - ext/couchbase/couchbase/term_facet_result.hxx
1017
+ - ext/couchbase/couchbase/term_query.hxx
1018
+ - ext/couchbase/couchbase/term_range_query.hxx
868
1019
  - ext/couchbase/couchbase/timeout_options.hxx
869
1020
  - ext/couchbase/couchbase/tls_verify_mode.hxx
870
1021
  - ext/couchbase/couchbase/touch_options.hxx
871
1022
  - ext/couchbase/couchbase/tracing/otel_tracer.hxx
1023
+ - ext/couchbase/couchbase/tracing/request_span.hxx
872
1024
  - ext/couchbase/couchbase/tracing/request_tracer.hxx
873
1025
  - ext/couchbase/couchbase/tracing_options.hxx
874
1026
  - ext/couchbase/couchbase/transaction_error_context.hxx
@@ -886,9 +1038,11 @@ files:
886
1038
  - ext/couchbase/couchbase/transactions/transactions_config.hxx
887
1039
  - ext/couchbase/couchbase/transactions/transactions_query_config.hxx
888
1040
  - ext/couchbase/couchbase/unlock_options.hxx
1041
+ - ext/couchbase/couchbase/update_bucket_options.hxx
889
1042
  - ext/couchbase/couchbase/upsert_options.hxx
890
1043
  - ext/couchbase/couchbase/wan_development_configuration_profile.hxx
891
1044
  - ext/couchbase/couchbase/watch_query_indexes_options.hxx
1045
+ - ext/couchbase/couchbase/wildcard_query.hxx
892
1046
  - ext/couchbase/test/CMakeLists.txt
893
1047
  - ext/couchbase/test/another_simple_object.hxx
894
1048
  - ext/couchbase/test/benchmark_helper_integration.hxx
@@ -915,17 +1069,20 @@ files:
915
1069
  - ext/couchbase/test/test_integration_subdoc.cxx
916
1070
  - ext/couchbase/test/test_integration_tracer.cxx
917
1071
  - ext/couchbase/test/test_integration_transcoders.cxx
918
- - ext/couchbase/test/test_transaction_transaction_context.cxx
919
- - ext/couchbase/test/test_transaction_transaction_public_async_api.cxx
920
- - ext/couchbase/test/test_transaction_transaction_public_blocking_api.cxx
921
- - ext/couchbase/test/test_transaction_transaction_simple.cxx
922
- - ext/couchbase/test/test_transaction_transaction_simple_async.cxx
1072
+ - ext/couchbase/test/test_transaction_context.cxx
1073
+ - ext/couchbase/test/test_transaction_examples.cxx
1074
+ - ext/couchbase/test/test_transaction_public_async_api.cxx
1075
+ - ext/couchbase/test/test_transaction_public_blocking_api.cxx
1076
+ - ext/couchbase/test/test_transaction_simple.cxx
1077
+ - ext/couchbase/test/test_transaction_simple_async.cxx
923
1078
  - ext/couchbase/test/test_unit_config_profiles.cxx
924
1079
  - ext/couchbase/test/test_unit_connection_string.cxx
925
1080
  - ext/couchbase/test/test_unit_json_streaming_lexer.cxx
926
1081
  - ext/couchbase/test/test_unit_json_transcoder.cxx
927
1082
  - ext/couchbase/test/test_unit_jsonsl.cxx
928
1083
  - ext/couchbase/test/test_unit_options.cxx
1084
+ - ext/couchbase/test/test_unit_query.cxx
1085
+ - ext/couchbase/test/test_unit_search.cxx
929
1086
  - ext/couchbase/test/test_unit_transaction_logging.cxx
930
1087
  - ext/couchbase/test/test_unit_transaction_utils.cxx
931
1088
  - ext/couchbase/test/test_unit_utils.cxx
@@ -2235,6 +2392,7 @@ files:
2235
2392
  - lib/couchbase/diagnostics.rb
2236
2393
  - lib/couchbase/errors.rb
2237
2394
  - lib/couchbase/json_transcoder.rb
2395
+ - lib/couchbase/key_value_scan.rb
2238
2396
  - lib/couchbase/logger.rb
2239
2397
  - lib/couchbase/management.rb
2240
2398
  - lib/couchbase/management/analytics_index_manager.rb
@@ -2249,9 +2407,13 @@ files:
2249
2407
  - lib/couchbase/options.rb
2250
2408
  - lib/couchbase/query_options.rb
2251
2409
  - lib/couchbase/railtie.rb
2410
+ - lib/couchbase/raw_binary_transcoder.rb
2411
+ - lib/couchbase/raw_json_transcoder.rb
2412
+ - lib/couchbase/raw_string_transcoder.rb
2252
2413
  - lib/couchbase/scope.rb
2253
2414
  - lib/couchbase/search_options.rb
2254
2415
  - lib/couchbase/subdoc.rb
2416
+ - lib/couchbase/transcoder_flags.rb
2255
2417
  - lib/couchbase/utils.rb
2256
2418
  - lib/couchbase/utils/generic_logger_adapter.rb
2257
2419
  - lib/couchbase/utils/stdlib_logger_adapter.rb
@@ -2266,9 +2428,9 @@ metadata:
2266
2428
  homepage_uri: https://docs.couchbase.com/ruby-sdk/current/hello-world/start-using-sdk.html
2267
2429
  bug_tracker_uri: https://couchbase.com/issues/browse/RCBC
2268
2430
  mailing_list_uri: https://forums.couchbase.com/c/ruby-sdk
2269
- source_code_uri: https://github.com/couchbase/couchbase-ruby-client/tree/3.4.2
2270
- changelog_uri: https://github.com/couchbase/couchbase-ruby-client/releases/tag/3.4.2
2271
- documentation_uri: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.4.2/index.html
2431
+ source_code_uri: https://github.com/couchbase/couchbase-ruby-client/tree/3.4.4
2432
+ changelog_uri: https://github.com/couchbase/couchbase-ruby-client/releases/tag/3.4.4
2433
+ documentation_uri: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.4.4/index.html
2272
2434
  github_repo: ssh://github.com/couchbase/couchbase-ruby-client
2273
2435
  rubygems_mfa_required: 'true'
2274
2436
  post_install_message:
@@ -1,47 +0,0 @@
1
- /* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2
- /*
3
- * Copyright 2020-2021 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 "config_profile.hxx"
19
-
20
- couchbase::core::config_profiles&
21
- couchbase::core::known_profiles()
22
- {
23
- static couchbase::core::config_profiles profiles{};
24
- return profiles;
25
- }
26
-
27
- void
28
- couchbase::core::development_profile::apply(couchbase::core::cluster_options& opts)
29
- {
30
- opts.key_value_timeout = std::chrono::seconds(20);
31
- opts.key_value_durable_timeout = std::chrono::seconds(20);
32
- opts.connect_timeout = std::chrono::seconds(20);
33
- opts.view_timeout = std::chrono::minutes(2);
34
- opts.query_timeout = std::chrono::minutes(2);
35
- opts.analytics_timeout = std::chrono::minutes(2);
36
- opts.search_timeout = std::chrono::minutes(2);
37
- opts.management_timeout = std::chrono::minutes(2);
38
-
39
- // C++SDK specific
40
- opts.dns_config = couchbase::core::io::dns::dns_config{
41
- opts.dns_config.nameserver(),
42
- opts.dns_config.port(),
43
- std::chrono::seconds(20), // timeout to make DNS-SRV query
44
- };
45
- opts.resolve_timeout = std::chrono::seconds(20); // timeout to resolve hostnames
46
- opts.bootstrap_timeout = std::chrono::minutes(2); // overall timeout to bootstrap
47
- }
@@ -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