couchbase 3.3.0 → 3.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2221) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -13
  3. data/ext/couchbase/CMakeLists.txt +367 -86
  4. data/ext/couchbase/cmake/CompilerWarnings.cmake +11 -4
  5. data/ext/couchbase/cmake/Documentation.cmake +35 -0
  6. data/ext/couchbase/cmake/OpenSSL.cmake +23 -0
  7. data/ext/couchbase/cmake/Testing.cmake +61 -0
  8. data/ext/couchbase/cmake/ThirdPartyDependencies.cmake +1 -0
  9. data/ext/couchbase/cmake/VersionInfo.cmake +13 -1
  10. data/ext/couchbase/cmake/build_version.hxx.in +3 -0
  11. data/ext/couchbase/core/CMakeLists.txt +0 -0
  12. data/ext/couchbase/core/agent.cxx +556 -0
  13. data/ext/couchbase/core/agent.hxx +165 -0
  14. data/ext/couchbase/core/agent_config.cxx +36 -0
  15. data/ext/couchbase/core/agent_config.hxx +44 -0
  16. data/ext/couchbase/core/agent_group.cxx +219 -0
  17. data/ext/couchbase/core/agent_group.hxx +79 -0
  18. data/ext/couchbase/core/agent_group_config.cxx +35 -0
  19. data/ext/couchbase/core/agent_group_config.hxx +45 -0
  20. data/ext/couchbase/core/agent_unit_test_api.hxx +37 -0
  21. data/ext/couchbase/core/analytics_query_options.cxx +72 -0
  22. data/ext/couchbase/core/analytics_query_options.hxx +74 -0
  23. data/ext/couchbase/core/analytics_scan_consistency.hxx +26 -0
  24. data/ext/couchbase/core/bucket.cxx +891 -0
  25. data/ext/couchbase/core/bucket.hxx +172 -0
  26. data/ext/couchbase/core/capella_ca.hxx +43 -0
  27. data/ext/couchbase/core/cluster.cxx +181 -0
  28. data/ext/couchbase/core/cluster.hxx +496 -0
  29. data/ext/couchbase/core/cluster_agent.cxx +36 -0
  30. data/ext/couchbase/core/cluster_agent.hxx +34 -0
  31. data/ext/couchbase/core/cluster_agent_config.cxx +35 -0
  32. data/ext/couchbase/core/cluster_agent_config.hxx +43 -0
  33. data/ext/couchbase/core/cluster_options.cxx +50 -0
  34. data/ext/couchbase/core/cluster_options.hxx +93 -0
  35. data/ext/couchbase/core/cluster_state.hxx +25 -0
  36. data/ext/couchbase/core/collection_id_cache_entry.hxx +37 -0
  37. data/ext/couchbase/core/collections_component.cxx +439 -0
  38. data/ext/couchbase/core/collections_component.hxx +81 -0
  39. data/ext/couchbase/core/collections_component_unit_test_api.hxx +36 -0
  40. data/ext/couchbase/core/collections_options.hxx +87 -0
  41. data/ext/couchbase/core/config_listener.hxx +31 -0
  42. data/ext/couchbase/core/config_profile.cxx +25 -0
  43. data/ext/couchbase/core/config_profile.hxx +92 -0
  44. data/ext/couchbase/core/core_sdk_shim.cxx +28 -0
  45. data/ext/couchbase/core/core_sdk_shim.hxx +30 -0
  46. data/ext/couchbase/core/crud_component.cxx +367 -0
  47. data/ext/couchbase/core/crud_component.hxx +60 -0
  48. data/ext/couchbase/core/crud_options.hxx +574 -0
  49. data/ext/couchbase/core/crypto/CMakeLists.txt +12 -0
  50. data/ext/couchbase/core/crypto/cbcrypto.cc +897 -0
  51. data/ext/couchbase/core/crypto/cbcrypto.h +88 -0
  52. data/ext/couchbase/core/design_document_namespace.hxx +26 -0
  53. data/ext/couchbase/core/design_document_namespace_fmt.hxx +47 -0
  54. data/ext/couchbase/core/diagnostics.hxx +97 -0
  55. data/ext/couchbase/core/diagnostics_fmt.hxx +113 -0
  56. data/ext/couchbase/core/diagnostics_json.hxx +100 -0
  57. data/ext/couchbase/core/diagntostics_options.hxx +55 -0
  58. data/ext/couchbase/core/dispatcher.cxx +37 -0
  59. data/ext/couchbase/core/dispatcher.hxx +43 -0
  60. data/ext/couchbase/core/document_id.cxx +102 -0
  61. data/ext/couchbase/core/document_id.hxx +119 -0
  62. data/ext/couchbase/core/document_id_fmt.hxx +37 -0
  63. data/ext/couchbase/core/durability_options.hxx +110 -0
  64. data/ext/couchbase/core/error_context/analytics.hxx +52 -0
  65. data/ext/couchbase/core/error_context/http.hxx +48 -0
  66. data/ext/couchbase/core/error_context/key_value.cxx +58 -0
  67. data/ext/couchbase/core/error_context/key_value.hxx +83 -0
  68. data/ext/couchbase/core/error_context/query.hxx +52 -0
  69. data/ext/couchbase/core/error_context/search.hxx +51 -0
  70. data/ext/couchbase/core/error_context/view.hxx +52 -0
  71. data/ext/couchbase/core/free_form_http_request.cxx +81 -0
  72. data/ext/couchbase/core/free_form_http_request.hxx +90 -0
  73. data/ext/couchbase/core/impl/analytics_error_category.cxx +62 -0
  74. data/ext/couchbase/core/impl/append.cxx +87 -0
  75. data/ext/couchbase/core/impl/best_effort_retry_strategy.cxx +109 -0
  76. data/ext/couchbase/core/impl/bootstrap_state_listener.hxx +39 -0
  77. data/ext/couchbase/core/impl/build_deferred_query_indexes.cxx +92 -0
  78. data/ext/couchbase/core/impl/cluster.cxx +185 -0
  79. data/ext/couchbase/core/impl/collection_query_index_manager.cxx +93 -0
  80. data/ext/couchbase/core/impl/common_error_category.cxx +88 -0
  81. data/ext/couchbase/core/impl/configuration_profiles_registry.cxx +73 -0
  82. data/ext/couchbase/core/impl/create_query_index.cxx +119 -0
  83. data/ext/couchbase/core/impl/decrement.cxx +96 -0
  84. data/ext/couchbase/core/impl/dns_srv_tracker.cxx +147 -0
  85. data/ext/couchbase/core/impl/dns_srv_tracker.hxx +68 -0
  86. data/ext/couchbase/core/impl/drop_query_index.cxx +108 -0
  87. data/ext/couchbase/core/impl/exists.cxx +47 -0
  88. data/ext/couchbase/core/impl/expiry.cxx +99 -0
  89. data/ext/couchbase/core/impl/fail_fast_retry_strategy.cxx +41 -0
  90. data/ext/couchbase/core/impl/field_level_encryption_error_category.cxx +63 -0
  91. data/ext/couchbase/core/impl/get.cxx +68 -0
  92. data/ext/couchbase/core/impl/get_all_query_indexes.cxx +76 -0
  93. data/ext/couchbase/core/impl/get_all_replicas.cxx +145 -0
  94. data/ext/couchbase/core/impl/get_all_replicas.hxx +79 -0
  95. data/ext/couchbase/core/impl/get_and_lock.cxx +49 -0
  96. data/ext/couchbase/core/impl/get_and_touch.cxx +49 -0
  97. data/ext/couchbase/core/impl/get_any_replica.cxx +134 -0
  98. data/ext/couchbase/core/impl/get_any_replica.hxx +76 -0
  99. data/ext/couchbase/core/impl/get_replica.cxx +44 -0
  100. data/ext/couchbase/core/impl/get_replica.hxx +52 -0
  101. data/ext/couchbase/core/impl/increment.cxx +96 -0
  102. data/ext/couchbase/core/impl/insert.cxx +90 -0
  103. data/ext/couchbase/core/impl/key_value_error_category.cxx +105 -0
  104. data/ext/couchbase/core/impl/lookup_in.cxx +68 -0
  105. data/ext/couchbase/core/impl/management_error_category.cxx +75 -0
  106. data/ext/couchbase/core/impl/mutate_in.cxx +125 -0
  107. data/ext/couchbase/core/impl/network_error_category.cxx +73 -0
  108. data/ext/couchbase/core/impl/observe_poll.cxx +355 -0
  109. data/ext/couchbase/core/impl/observe_poll.hxx +49 -0
  110. data/ext/couchbase/core/impl/observe_seqno.cxx +47 -0
  111. data/ext/couchbase/core/impl/observe_seqno.hxx +63 -0
  112. data/ext/couchbase/core/impl/prepend.cxx +87 -0
  113. data/ext/couchbase/core/impl/query.cxx +245 -0
  114. data/ext/couchbase/core/impl/query_error_category.cxx +55 -0
  115. data/ext/couchbase/core/impl/remove.cxx +86 -0
  116. data/ext/couchbase/core/impl/replace.cxx +102 -0
  117. data/ext/couchbase/core/impl/retry_action.cxx +39 -0
  118. data/ext/couchbase/core/impl/retry_reason.cxx +85 -0
  119. data/ext/couchbase/core/impl/search_error_category.cxx +51 -0
  120. data/ext/couchbase/core/impl/streaming_json_lexter_error_category.cxx +102 -0
  121. data/ext/couchbase/core/impl/subdoc/array_add_unique.cxx +36 -0
  122. data/ext/couchbase/core/impl/subdoc/array_append.cxx +37 -0
  123. data/ext/couchbase/core/impl/subdoc/array_insert.cxx +37 -0
  124. data/ext/couchbase/core/impl/subdoc/array_prepend.cxx +37 -0
  125. data/ext/couchbase/core/impl/subdoc/command.hxx +41 -0
  126. data/ext/couchbase/core/impl/subdoc/command_bundle.hxx +42 -0
  127. data/ext/couchbase/core/impl/subdoc/count.cxx +36 -0
  128. data/ext/couchbase/core/impl/subdoc/counter.cxx +37 -0
  129. data/ext/couchbase/core/impl/subdoc/exists.cxx +36 -0
  130. data/ext/couchbase/core/impl/subdoc/get.cxx +36 -0
  131. data/ext/couchbase/core/impl/subdoc/insert.cxx +36 -0
  132. data/ext/couchbase/core/impl/subdoc/join_values.cxx +56 -0
  133. data/ext/couchbase/core/impl/subdoc/join_values.hxx +27 -0
  134. data/ext/couchbase/core/impl/subdoc/lookup_in_macro.cxx +117 -0
  135. data/ext/couchbase/core/impl/subdoc/lookup_in_specs.cxx +42 -0
  136. data/ext/couchbase/core/impl/subdoc/mutate_in_macro.cxx +77 -0
  137. data/ext/couchbase/core/impl/subdoc/mutate_in_specs.cxx +42 -0
  138. data/ext/couchbase/core/impl/subdoc/opcode.hxx +47 -0
  139. data/ext/couchbase/core/impl/subdoc/path_flags.hxx +77 -0
  140. data/ext/couchbase/core/impl/subdoc/remove.cxx +36 -0
  141. data/ext/couchbase/core/impl/subdoc/replace.cxx +36 -0
  142. data/ext/couchbase/core/impl/subdoc/upsert.cxx +36 -0
  143. data/ext/couchbase/core/impl/touch.cxx +49 -0
  144. data/ext/couchbase/core/impl/transaction_error_category.cxx +54 -0
  145. data/ext/couchbase/core/impl/transaction_op_error_category.cxx +90 -0
  146. data/ext/couchbase/core/impl/unlock.cxx +47 -0
  147. data/ext/couchbase/core/impl/upsert.cxx +100 -0
  148. data/ext/couchbase/core/impl/view_error_category.cxx +50 -0
  149. data/ext/couchbase/core/impl/watch_query_indexes.cxx +168 -0
  150. data/ext/couchbase/core/impl/with_legacy_durability.hxx +65 -0
  151. data/ext/couchbase/core/io/dns_client.hxx +224 -0
  152. data/ext/couchbase/core/io/dns_codec.hxx +207 -0
  153. data/ext/couchbase/core/io/dns_config.cxx +157 -0
  154. data/ext/couchbase/core/io/dns_config.hxx +68 -0
  155. data/ext/couchbase/core/io/dns_message.hxx +555 -0
  156. data/ext/couchbase/core/io/http_command.hxx +182 -0
  157. data/ext/couchbase/core/io/http_context.hxx +40 -0
  158. data/ext/couchbase/core/io/http_message.hxx +116 -0
  159. data/ext/couchbase/core/io/http_parser.cxx +141 -0
  160. data/ext/couchbase/core/io/http_parser.hxx +55 -0
  161. data/ext/couchbase/core/io/http_session.hxx +552 -0
  162. data/ext/couchbase/core/io/http_session_manager.hxx +388 -0
  163. data/ext/couchbase/core/io/http_traits.hxx +38 -0
  164. data/ext/couchbase/core/io/ip_protocol.hxx +28 -0
  165. data/ext/couchbase/core/io/mcbp_command.hxx +317 -0
  166. data/ext/couchbase/core/io/mcbp_context.hxx +40 -0
  167. data/ext/couchbase/core/io/mcbp_message.cxx +39 -0
  168. data/ext/couchbase/core/io/mcbp_message.hxx +60 -0
  169. data/ext/couchbase/core/io/mcbp_parser.cxx +88 -0
  170. data/ext/couchbase/core/io/mcbp_parser.hxx +45 -0
  171. data/ext/couchbase/core/io/mcbp_session.cxx +1690 -0
  172. data/ext/couchbase/core/io/mcbp_session.hxx +130 -0
  173. data/ext/couchbase/core/io/mcbp_traits.hxx +38 -0
  174. data/ext/couchbase/core/io/query_cache.hxx +71 -0
  175. data/ext/couchbase/core/io/retry_context.hxx +89 -0
  176. data/ext/couchbase/core/io/retry_orchestrator.hxx +97 -0
  177. data/ext/couchbase/core/io/streams.hxx +258 -0
  178. data/ext/couchbase/core/json_string.hxx +82 -0
  179. data/ext/couchbase/core/key_value_config.cxx +35 -0
  180. data/ext/couchbase/core/key_value_config.hxx +40 -0
  181. data/ext/couchbase/core/logger/CMakeLists.txt +9 -0
  182. data/ext/couchbase/core/logger/configuration.hxx +60 -0
  183. data/ext/couchbase/core/logger/custom_rotating_file_sink.cxx +157 -0
  184. data/ext/couchbase/{couchbase → core}/logger/custom_rotating_file_sink.hxx +0 -0
  185. data/ext/couchbase/core/logger/level.hxx +21 -0
  186. data/ext/couchbase/core/logger/logger.cxx +340 -0
  187. data/ext/couchbase/core/logger/logger.hxx +240 -0
  188. data/ext/couchbase/core/management/analytics_dataset.hxx +30 -0
  189. data/ext/couchbase/core/management/analytics_index.hxx +30 -0
  190. data/ext/couchbase/core/management/analytics_link.hxx +22 -0
  191. data/ext/couchbase/core/management/analytics_link_azure_blob_external.cxx +68 -0
  192. data/ext/couchbase/core/management/analytics_link_azure_blob_external.hxx +76 -0
  193. data/ext/couchbase/core/management/analytics_link_azure_blob_external_json.hxx +52 -0
  194. data/ext/couchbase/core/management/analytics_link_couchbase_remote.cxx +105 -0
  195. data/ext/couchbase/core/management/analytics_link_couchbase_remote.hxx +107 -0
  196. data/ext/couchbase/core/management/analytics_link_couchbase_remote_json.hxx +63 -0
  197. data/ext/couchbase/core/management/analytics_link_s3_external.cxx +58 -0
  198. data/ext/couchbase/core/management/analytics_link_s3_external.hxx +69 -0
  199. data/ext/couchbase/core/management/analytics_link_s3_external_json.hxx +47 -0
  200. data/ext/couchbase/core/management/bucket_settings.hxx +134 -0
  201. data/ext/couchbase/core/management/bucket_settings_json.hxx +123 -0
  202. data/ext/couchbase/core/management/design_document.hxx +41 -0
  203. data/ext/couchbase/core/management/eventing_function.hxx +188 -0
  204. data/ext/couchbase/core/management/eventing_function_json.hxx +212 -0
  205. data/ext/couchbase/core/management/eventing_status.hxx +84 -0
  206. data/ext/couchbase/core/management/eventing_status_json.hxx +77 -0
  207. data/ext/couchbase/core/management/rbac.hxx +77 -0
  208. data/ext/couchbase/core/management/rbac_fmt.hxx +49 -0
  209. data/ext/couchbase/core/management/rbac_json.hxx +179 -0
  210. data/ext/couchbase/core/management/search_index.hxx +38 -0
  211. data/ext/couchbase/core/management/search_index_json.hxx +58 -0
  212. data/ext/couchbase/core/mcbp/barrier_frame.hxx +27 -0
  213. data/ext/couchbase/core/mcbp/big_endian.cxx +73 -0
  214. data/ext/couchbase/core/mcbp/big_endian.hxx +46 -0
  215. data/ext/couchbase/core/mcbp/buffer_writer.cxx +78 -0
  216. data/ext/couchbase/core/mcbp/buffer_writer.hxx +38 -0
  217. data/ext/couchbase/core/mcbp/codec.cxx +501 -0
  218. data/ext/couchbase/core/mcbp/codec.hxx +52 -0
  219. data/ext/couchbase/core/mcbp/command_code.cxx +77 -0
  220. data/ext/couchbase/core/mcbp/command_code.hxx +33 -0
  221. data/ext/couchbase/core/mcbp/completion_token.hxx +69 -0
  222. data/ext/couchbase/core/mcbp/datatype.hxx +40 -0
  223. data/ext/couchbase/core/mcbp/durability_level.hxx +35 -0
  224. data/ext/couchbase/core/mcbp/durability_level_frame.hxx +28 -0
  225. data/ext/couchbase/core/mcbp/durability_timeout_frame.hxx +29 -0
  226. data/ext/couchbase/core/mcbp/frame_type.hxx +41 -0
  227. data/ext/couchbase/core/mcbp/open_tracing_frame.hxx +29 -0
  228. data/ext/couchbase/core/mcbp/operation_consumer.cxx +47 -0
  229. data/ext/couchbase/core/mcbp/operation_consumer.hxx +42 -0
  230. data/ext/couchbase/core/mcbp/operation_queue.cxx +158 -0
  231. data/ext/couchbase/core/mcbp/operation_queue.hxx +57 -0
  232. data/ext/couchbase/core/mcbp/packet.cxx +92 -0
  233. data/ext/couchbase/core/mcbp/packet.hxx +71 -0
  234. data/ext/couchbase/core/mcbp/preserve_expiry_frame.hxx +26 -0
  235. data/ext/couchbase/core/mcbp/queue_callback.hxx +34 -0
  236. data/ext/couchbase/core/mcbp/queue_request.cxx +174 -0
  237. data/ext/couchbase/core/mcbp/queue_request.hxx +120 -0
  238. data/ext/couchbase/core/mcbp/queue_request_connection_info.hxx +29 -0
  239. data/ext/couchbase/core/mcbp/queue_response.hxx +37 -0
  240. data/ext/couchbase/core/mcbp/read_units_frame.hxx +28 -0
  241. data/ext/couchbase/core/mcbp/server_duration.cxx +40 -0
  242. data/ext/couchbase/core/mcbp/server_duration.hxx +32 -0
  243. data/ext/couchbase/core/mcbp/server_duration_frame.hxx +28 -0
  244. data/ext/couchbase/core/mcbp/stream_id_frame.hxx +28 -0
  245. data/ext/couchbase/core/mcbp/unsupported_frame.hxx +32 -0
  246. data/ext/couchbase/core/mcbp/user_impersonation_frame.hxx +30 -0
  247. data/ext/couchbase/core/mcbp/write_units_frame.hxx +29 -0
  248. data/ext/couchbase/core/meta/CMakeLists.txt +17 -0
  249. data/ext/couchbase/core/meta/features.hxx +31 -0
  250. data/ext/couchbase/core/meta/version.cxx +264 -0
  251. data/ext/couchbase/core/meta/version.hxx +56 -0
  252. data/ext/couchbase/core/metrics/CMakeLists.txt +13 -0
  253. data/ext/couchbase/core/metrics/logging_meter.cxx +235 -0
  254. data/ext/couchbase/core/metrics/logging_meter.hxx +60 -0
  255. data/ext/couchbase/core/metrics/logging_meter_options.hxx +28 -0
  256. data/ext/couchbase/core/metrics/noop_meter.hxx +47 -0
  257. data/ext/couchbase/core/n1ql_query_options.cxx +94 -0
  258. data/ext/couchbase/core/n1ql_query_options.hxx +78 -0
  259. data/ext/couchbase/core/operation_map.hxx +36 -0
  260. data/ext/couchbase/core/operations/document_analytics.cxx +221 -0
  261. data/ext/couchbase/core/operations/document_analytics.hxx +113 -0
  262. data/ext/couchbase/core/operations/document_append.cxx +45 -0
  263. data/ext/couchbase/core/operations/document_append.hxx +78 -0
  264. data/ext/couchbase/core/operations/document_decrement.cxx +53 -0
  265. data/ext/couchbase/core/operations/document_decrement.hxx +81 -0
  266. data/ext/couchbase/core/operations/document_exists.cxx +50 -0
  267. data/ext/couchbase/core/operations/document_exists.hxx +72 -0
  268. data/ext/couchbase/core/operations/document_get.cxx +44 -0
  269. data/ext/couchbase/core/operations/document_get.hxx +62 -0
  270. data/ext/couchbase/core/operations/document_get_all_replicas.hxx +143 -0
  271. data/ext/couchbase/core/operations/document_get_and_lock.cxx +45 -0
  272. data/ext/couchbase/core/operations/document_get_and_lock.hxx +64 -0
  273. data/ext/couchbase/core/operations/document_get_and_touch.cxx +45 -0
  274. data/ext/couchbase/core/operations/document_get_and_touch.hxx +65 -0
  275. data/ext/couchbase/core/operations/document_get_any_replica.hxx +133 -0
  276. data/ext/couchbase/core/operations/document_get_projected.cxx +238 -0
  277. data/ext/couchbase/core/operations/document_get_projected.hxx +68 -0
  278. data/ext/couchbase/core/operations/document_increment.cxx +53 -0
  279. data/ext/couchbase/core/operations/document_increment.hxx +81 -0
  280. data/ext/couchbase/core/operations/document_insert.cxx +51 -0
  281. data/ext/couchbase/core/operations/document_insert.hxx +80 -0
  282. data/ext/couchbase/core/operations/document_lookup_in.cxx +97 -0
  283. data/ext/couchbase/core/operations/document_lookup_in.hxx +77 -0
  284. data/ext/couchbase/core/operations/document_mutate_in.cxx +118 -0
  285. data/ext/couchbase/core/operations/document_mutate_in.hxx +95 -0
  286. data/ext/couchbase/core/operations/document_prepend.cxx +45 -0
  287. data/ext/couchbase/core/operations/document_prepend.hxx +78 -0
  288. data/ext/couchbase/core/operations/document_query.cxx +386 -0
  289. data/ext/couchbase/core/operations/document_query.hxx +128 -0
  290. data/ext/couchbase/core/operations/document_remove.cxx +45 -0
  291. data/ext/couchbase/core/operations/document_remove.hxx +78 -0
  292. data/ext/couchbase/core/operations/document_replace.cxx +55 -0
  293. data/ext/couchbase/core/operations/document_replace.hxx +82 -0
  294. data/ext/couchbase/core/operations/document_search.cxx +312 -0
  295. data/ext/couchbase/core/operations/document_search.hxx +163 -0
  296. data/ext/couchbase/core/operations/document_touch.cxx +43 -0
  297. data/ext/couchbase/core/operations/document_touch.hxx +61 -0
  298. data/ext/couchbase/core/operations/document_unlock.cxx +43 -0
  299. data/ext/couchbase/core/operations/document_unlock.hxx +61 -0
  300. data/ext/couchbase/core/operations/document_upsert.cxx +54 -0
  301. data/ext/couchbase/core/operations/document_upsert.hxx +81 -0
  302. data/ext/couchbase/core/operations/document_view.cxx +197 -0
  303. data/ext/couchbase/core/operations/document_view.hxx +109 -0
  304. data/ext/couchbase/core/operations/http_noop.cxx +64 -0
  305. data/ext/couchbase/core/operations/http_noop.hxx +48 -0
  306. data/ext/couchbase/core/operations/management/CMakeLists.txt +80 -0
  307. data/ext/couchbase/core/operations/management/analytics.hxx +34 -0
  308. data/ext/couchbase/core/operations/management/analytics_dataset_create.cxx +93 -0
  309. data/ext/couchbase/core/operations/management/analytics_dataset_create.hxx +57 -0
  310. data/ext/couchbase/core/operations/management/analytics_dataset_drop.cxx +82 -0
  311. data/ext/couchbase/core/operations/management/analytics_dataset_drop.hxx +54 -0
  312. data/ext/couchbase/core/operations/management/analytics_dataset_get_all.cxx +78 -0
  313. data/ext/couchbase/core/operations/management/analytics_dataset_get_all.hxx +52 -0
  314. data/ext/couchbase/core/operations/management/analytics_dataverse_create.cxx +81 -0
  315. data/ext/couchbase/core/operations/management/analytics_dataverse_create.hxx +53 -0
  316. data/ext/couchbase/core/operations/management/analytics_dataverse_drop.cxx +81 -0
  317. data/ext/couchbase/core/operations/management/analytics_dataverse_drop.hxx +53 -0
  318. data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.cxx +69 -0
  319. data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.hxx +52 -0
  320. data/ext/couchbase/core/operations/management/analytics_index_create.cxx +105 -0
  321. data/ext/couchbase/core/operations/management/analytics_index_create.hxx +56 -0
  322. data/ext/couchbase/core/operations/management/analytics_index_drop.cxx +89 -0
  323. data/ext/couchbase/core/operations/management/analytics_index_drop.hxx +55 -0
  324. data/ext/couchbase/core/operations/management/analytics_index_get_all.cxx +79 -0
  325. data/ext/couchbase/core/operations/management/analytics_index_get_all.hxx +52 -0
  326. data/ext/couchbase/core/operations/management/analytics_link_connect.cxx +81 -0
  327. data/ext/couchbase/core/operations/management/analytics_link_connect.hxx +57 -0
  328. data/ext/couchbase/core/operations/management/analytics_link_create.cxx +86 -0
  329. data/ext/couchbase/core/operations/management/analytics_link_create.hxx +77 -0
  330. data/ext/couchbase/core/operations/management/analytics_link_disconnect.cxx +79 -0
  331. data/ext/couchbase/core/operations/management/analytics_link_disconnect.hxx +56 -0
  332. data/ext/couchbase/core/operations/management/analytics_link_drop.cxx +102 -0
  333. data/ext/couchbase/core/operations/management/analytics_link_drop.hxx +56 -0
  334. data/ext/couchbase/core/operations/management/analytics_link_get_all.cxx +128 -0
  335. data/ext/couchbase/core/operations/management/analytics_link_get_all.hxx +63 -0
  336. data/ext/couchbase/core/operations/management/analytics_link_replace.cxx +86 -0
  337. data/ext/couchbase/core/operations/management/analytics_link_replace.hxx +78 -0
  338. data/ext/couchbase/core/operations/management/analytics_link_utils.hxx +37 -0
  339. data/ext/couchbase/core/operations/management/analytics_problem.hxx +31 -0
  340. data/ext/couchbase/core/operations/management/bucket.hxx +25 -0
  341. data/ext/couchbase/core/operations/management/bucket_create.cxx +171 -0
  342. data/ext/couchbase/core/operations/management/bucket_create.hxx +52 -0
  343. data/ext/couchbase/core/operations/management/bucket_describe.cxx +98 -0
  344. data/ext/couchbase/core/operations/management/bucket_describe.hxx +64 -0
  345. data/ext/couchbase/core/operations/management/bucket_drop.cxx +51 -0
  346. data/ext/couchbase/core/operations/management/bucket_drop.hxx +49 -0
  347. data/ext/couchbase/core/operations/management/bucket_flush.cxx +58 -0
  348. data/ext/couchbase/core/operations/management/bucket_flush.hxx +49 -0
  349. data/ext/couchbase/core/operations/management/bucket_get.cxx +58 -0
  350. data/ext/couchbase/core/operations/management/bucket_get.hxx +51 -0
  351. data/ext/couchbase/core/operations/management/bucket_get_all.cxx +58 -0
  352. data/ext/couchbase/core/operations/management/bucket_get_all.hxx +49 -0
  353. data/ext/couchbase/core/operations/management/bucket_update.cxx +130 -0
  354. data/ext/couchbase/core/operations/management/bucket_update.hxx +52 -0
  355. data/ext/couchbase/core/operations/management/change_password.cxx +55 -0
  356. data/ext/couchbase/core/operations/management/change_password.hxx +50 -0
  357. data/ext/couchbase/core/operations/management/cluster_describe.cxx +89 -0
  358. data/ext/couchbase/core/operations/management/cluster_describe.hxx +72 -0
  359. data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.cxx +43 -0
  360. data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.hxx +48 -0
  361. data/ext/couchbase/core/operations/management/collection_create.cxx +82 -0
  362. data/ext/couchbase/core/operations/management/collection_create.hxx +53 -0
  363. data/ext/couchbase/core/operations/management/collection_drop.cxx +72 -0
  364. data/ext/couchbase/core/operations/management/collection_drop.hxx +52 -0
  365. data/ext/couchbase/core/operations/management/collections.hxx +25 -0
  366. data/ext/couchbase/core/operations/management/collections_manifest_get.cxx +40 -0
  367. data/ext/couchbase/core/operations/management/collections_manifest_get.hxx +53 -0
  368. data/ext/couchbase/core/operations/management/error_utils.cxx +267 -0
  369. data/ext/couchbase/core/operations/management/error_utils.hxx +49 -0
  370. data/ext/couchbase/core/operations/management/eventing.hxx +28 -0
  371. data/ext/couchbase/core/operations/management/eventing_deploy_function.cxx +55 -0
  372. data/ext/couchbase/core/operations/management/eventing_deploy_function.hxx +52 -0
  373. data/ext/couchbase/core/operations/management/eventing_drop_function.cxx +56 -0
  374. data/ext/couchbase/core/operations/management/eventing_drop_function.hxx +52 -0
  375. data/ext/couchbase/core/operations/management/eventing_get_all_functions.cxx +63 -0
  376. data/ext/couchbase/core/operations/management/eventing_get_all_functions.hxx +51 -0
  377. data/ext/couchbase/core/operations/management/eventing_get_function.cxx +55 -0
  378. data/ext/couchbase/core/operations/management/eventing_get_function.hxx +53 -0
  379. data/ext/couchbase/core/operations/management/eventing_get_status.cxx +55 -0
  380. data/ext/couchbase/core/operations/management/eventing_get_status.hxx +53 -0
  381. data/ext/couchbase/core/operations/management/eventing_pause_function.cxx +55 -0
  382. data/ext/couchbase/core/operations/management/eventing_pause_function.hxx +52 -0
  383. data/ext/couchbase/core/operations/management/eventing_problem.hxx +32 -0
  384. data/ext/couchbase/core/operations/management/eventing_resume_function.cxx +55 -0
  385. data/ext/couchbase/core/operations/management/eventing_resume_function.hxx +52 -0
  386. data/ext/couchbase/core/operations/management/eventing_undeploy_function.cxx +55 -0
  387. data/ext/couchbase/core/operations/management/eventing_undeploy_function.hxx +52 -0
  388. data/ext/couchbase/core/operations/management/eventing_upsert_function.cxx +340 -0
  389. data/ext/couchbase/core/operations/management/eventing_upsert_function.hxx +52 -0
  390. data/ext/couchbase/core/operations/management/freeform.cxx +54 -0
  391. data/ext/couchbase/core/operations/management/freeform.hxx +55 -0
  392. data/ext/couchbase/core/operations/management/group_drop.cxx +50 -0
  393. data/ext/couchbase/core/operations/management/group_drop.hxx +49 -0
  394. data/ext/couchbase/core/operations/management/group_get.cxx +59 -0
  395. data/ext/couchbase/core/operations/management/group_get.hxx +50 -0
  396. data/ext/couchbase/core/operations/management/group_get_all.cxx +57 -0
  397. data/ext/couchbase/core/operations/management/group_get_all.hxx +49 -0
  398. data/ext/couchbase/core/operations/management/group_upsert.cxx +95 -0
  399. data/ext/couchbase/core/operations/management/group_upsert.hxx +51 -0
  400. data/ext/couchbase/core/operations/management/query.hxx +25 -0
  401. data/ext/couchbase/core/operations/management/query_index_build.cxx +92 -0
  402. data/ext/couchbase/core/operations/management/query_index_build.hxx +62 -0
  403. data/ext/couchbase/core/operations/management/query_index_build_deferred.hxx +116 -0
  404. data/ext/couchbase/core/operations/management/query_index_create.cxx +146 -0
  405. data/ext/couchbase/core/operations/management/query_index_create.hxx +67 -0
  406. data/ext/couchbase/core/operations/management/query_index_drop.cxx +127 -0
  407. data/ext/couchbase/core/operations/management/query_index_drop.hxx +63 -0
  408. data/ext/couchbase/core/operations/management/query_index_get_all.cxx +129 -0
  409. data/ext/couchbase/core/operations/management/query_index_get_all.hxx +56 -0
  410. data/ext/couchbase/core/operations/management/query_index_get_all_deferred.cxx +96 -0
  411. data/ext/couchbase/core/operations/management/query_index_get_all_deferred.hxx +57 -0
  412. data/ext/couchbase/core/operations/management/role_get_all.cxx +57 -0
  413. data/ext/couchbase/core/operations/management/role_get_all.hxx +49 -0
  414. data/ext/couchbase/core/operations/management/scope_create.cxx +74 -0
  415. data/ext/couchbase/core/operations/management/scope_create.hxx +51 -0
  416. data/ext/couchbase/core/operations/management/scope_drop.cxx +69 -0
  417. data/ext/couchbase/core/operations/management/scope_drop.hxx +51 -0
  418. data/ext/couchbase/core/operations/management/scope_get_all.cxx +61 -0
  419. data/ext/couchbase/core/operations/management/scope_get_all.hxx +51 -0
  420. data/ext/couchbase/core/operations/management/search.hxx +30 -0
  421. data/ext/couchbase/core/operations/management/search_get_stats.cxx +41 -0
  422. data/ext/couchbase/core/operations/management/search_get_stats.hxx +48 -0
  423. data/ext/couchbase/core/operations/management/search_index_analyze_document.cxx +84 -0
  424. data/ext/couchbase/core/operations/management/search_index_analyze_document.hxx +54 -0
  425. data/ext/couchbase/core/operations/management/search_index_control_ingest.cxx +72 -0
  426. data/ext/couchbase/core/operations/management/search_index_control_ingest.hxx +52 -0
  427. data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.cxx +72 -0
  428. data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.hxx +57 -0
  429. data/ext/couchbase/core/operations/management/search_index_control_query.cxx +72 -0
  430. data/ext/couchbase/core/operations/management/search_index_control_query.hxx +52 -0
  431. data/ext/couchbase/core/operations/management/search_index_drop.cxx +71 -0
  432. data/ext/couchbase/core/operations/management/search_index_drop.hxx +51 -0
  433. data/ext/couchbase/core/operations/management/search_index_get.cxx +74 -0
  434. data/ext/couchbase/core/operations/management/search_index_get.hxx +54 -0
  435. data/ext/couchbase/core/operations/management/search_index_get_all.cxx +66 -0
  436. data/ext/couchbase/core/operations/management/search_index_get_all.hxx +51 -0
  437. data/ext/couchbase/core/operations/management/search_index_get_documents_count.cxx +78 -0
  438. data/ext/couchbase/core/operations/management/search_index_get_documents_count.hxx +53 -0
  439. data/ext/couchbase/core/operations/management/search_index_get_stats.cxx +70 -0
  440. data/ext/couchbase/core/operations/management/search_index_get_stats.hxx +52 -0
  441. data/ext/couchbase/core/operations/management/search_index_upsert.cxx +114 -0
  442. data/ext/couchbase/core/operations/management/search_index_upsert.hxx +54 -0
  443. data/ext/couchbase/core/operations/management/user.hxx +29 -0
  444. data/ext/couchbase/core/operations/management/user_drop.cxx +51 -0
  445. data/ext/couchbase/core/operations/management/user_drop.hxx +51 -0
  446. data/ext/couchbase/core/operations/management/user_get.cxx +60 -0
  447. data/ext/couchbase/core/operations/management/user_get.hxx +52 -0
  448. data/ext/couchbase/core/operations/management/user_get_all.cxx +58 -0
  449. data/ext/couchbase/core/operations/management/user_get_all.hxx +51 -0
  450. data/ext/couchbase/core/operations/management/user_upsert.cxx +100 -0
  451. data/ext/couchbase/core/operations/management/user_upsert.hxx +52 -0
  452. data/ext/couchbase/core/operations/management/view.hxx +23 -0
  453. data/ext/couchbase/core/operations/management/view_index_drop.cxx +45 -0
  454. data/ext/couchbase/core/operations/management/view_index_drop.hxx +52 -0
  455. data/ext/couchbase/core/operations/management/view_index_get.cxx +73 -0
  456. data/ext/couchbase/core/operations/management/view_index_get.hxx +53 -0
  457. data/ext/couchbase/core/operations/management/view_index_get_all.cxx +107 -0
  458. data/ext/couchbase/core/operations/management/view_index_get_all.hxx +52 -0
  459. data/ext/couchbase/core/operations/management/view_index_upsert.cxx +70 -0
  460. data/ext/couchbase/core/operations/management/view_index_upsert.hxx +51 -0
  461. data/ext/couchbase/core/operations/mcbp_noop.cxx +38 -0
  462. data/ext/couchbase/core/operations/mcbp_noop.hxx +49 -0
  463. data/ext/couchbase/core/operations/operation_traits.hxx +31 -0
  464. data/ext/couchbase/core/operations.hxx +44 -0
  465. data/ext/couchbase/core/origin.hxx +195 -0
  466. data/ext/couchbase/core/pending_operation.hxx +26 -0
  467. data/ext/couchbase/core/ping_collector.hxx +32 -0
  468. data/ext/couchbase/core/ping_options.hxx +86 -0
  469. data/ext/couchbase/core/ping_reporter.hxx +30 -0
  470. data/ext/couchbase/core/platform/CMakeLists.txt +16 -0
  471. data/ext/couchbase/core/platform/backtrace.c +189 -0
  472. data/ext/couchbase/{couchbase → core}/platform/backtrace.h +0 -0
  473. data/ext/couchbase/core/platform/base64.cc +253 -0
  474. data/ext/couchbase/core/platform/base64.h +52 -0
  475. data/ext/couchbase/core/platform/dirutils.cc +123 -0
  476. data/ext/couchbase/core/platform/dirutils.h +43 -0
  477. data/ext/couchbase/core/platform/random.cc +120 -0
  478. data/ext/couchbase/core/platform/random.h +39 -0
  479. data/ext/couchbase/core/platform/string_hex.cc +101 -0
  480. data/ext/couchbase/core/platform/string_hex.h +50 -0
  481. data/ext/couchbase/core/platform/terminate_handler.cc +125 -0
  482. data/ext/couchbase/core/platform/terminate_handler.h +36 -0
  483. data/ext/couchbase/core/platform/uuid.cc +102 -0
  484. data/ext/couchbase/core/platform/uuid.h +56 -0
  485. data/ext/couchbase/core/protocol/client_opcode.hxx +369 -0
  486. data/ext/couchbase/core/protocol/client_opcode_fmt.hxx +325 -0
  487. data/ext/couchbase/core/protocol/client_request.cxx +38 -0
  488. data/ext/couchbase/core/protocol/client_request.hxx +167 -0
  489. data/ext/couchbase/core/protocol/client_response.cxx +75 -0
  490. data/ext/couchbase/core/protocol/client_response.hxx +210 -0
  491. data/ext/couchbase/core/protocol/cmd_append.cxx +74 -0
  492. data/ext/couchbase/core/protocol/cmd_append.hxx +107 -0
  493. data/ext/couchbase/core/protocol/cmd_cluster_map_change_notification.cxx +53 -0
  494. data/ext/couchbase/core/protocol/cmd_cluster_map_change_notification.hxx +57 -0
  495. data/ext/couchbase/core/protocol/cmd_decrement.cxx +96 -0
  496. data/ext/couchbase/core/protocol/cmd_decrement.hxx +130 -0
  497. data/ext/couchbase/core/protocol/cmd_get.cxx +59 -0
  498. data/ext/couchbase/core/protocol/cmd_get.hxx +96 -0
  499. data/ext/couchbase/core/protocol/cmd_get_and_lock.cxx +66 -0
  500. data/ext/couchbase/core/protocol/cmd_get_and_lock.hxx +112 -0
  501. data/ext/couchbase/core/protocol/cmd_get_and_touch.cxx +66 -0
  502. data/ext/couchbase/core/protocol/cmd_get_and_touch.hxx +112 -0
  503. data/ext/couchbase/core/protocol/cmd_get_cluster_config.cxx +85 -0
  504. data/ext/couchbase/core/protocol/cmd_get_cluster_config.hxx +89 -0
  505. data/ext/couchbase/core/protocol/cmd_get_collection_id.cxx +60 -0
  506. data/ext/couchbase/core/protocol/cmd_get_collection_id.hxx +95 -0
  507. data/ext/couchbase/core/protocol/cmd_get_collections_manifest.cxx +51 -0
  508. data/ext/couchbase/core/protocol/cmd_get_collections_manifest.hxx +84 -0
  509. data/ext/couchbase/core/protocol/cmd_get_error_map.cxx +61 -0
  510. data/ext/couchbase/core/protocol/cmd_get_error_map.hxx +103 -0
  511. data/ext/couchbase/core/protocol/cmd_get_meta.cxx +70 -0
  512. data/ext/couchbase/core/protocol/cmd_get_meta.hxx +117 -0
  513. data/ext/couchbase/core/protocol/cmd_get_replica.cxx +71 -0
  514. data/ext/couchbase/core/protocol/cmd_get_replica.hxx +88 -0
  515. data/ext/couchbase/core/protocol/cmd_hello.cxx +76 -0
  516. data/ext/couchbase/core/protocol/cmd_hello.hxx +140 -0
  517. data/ext/couchbase/core/protocol/cmd_increment.cxx +98 -0
  518. data/ext/couchbase/core/protocol/cmd_increment.hxx +130 -0
  519. data/ext/couchbase/core/protocol/cmd_info.hxx +30 -0
  520. data/ext/couchbase/core/protocol/cmd_insert.cxx +83 -0
  521. data/ext/couchbase/core/protocol/cmd_insert.hxx +124 -0
  522. data/ext/couchbase/core/protocol/cmd_lookup_in.cxx +108 -0
  523. data/ext/couchbase/core/protocol/cmd_lookup_in.hxx +139 -0
  524. data/ext/couchbase/core/protocol/cmd_mutate_in.cxx +163 -0
  525. data/ext/couchbase/core/protocol/cmd_mutate_in.hxx +216 -0
  526. data/ext/couchbase/core/protocol/cmd_noop.cxx +36 -0
  527. data/ext/couchbase/core/protocol/cmd_noop.hxx +75 -0
  528. data/ext/couchbase/core/protocol/cmd_observe_seqno.cxx +92 -0
  529. data/ext/couchbase/core/protocol/cmd_observe_seqno.hxx +132 -0
  530. data/ext/couchbase/core/protocol/cmd_prepend.cxx +73 -0
  531. data/ext/couchbase/core/protocol/cmd_prepend.hxx +103 -0
  532. data/ext/couchbase/core/protocol/cmd_remove.cxx +74 -0
  533. data/ext/couchbase/core/protocol/cmd_remove.hxx +94 -0
  534. data/ext/couchbase/core/protocol/cmd_replace.cxx +92 -0
  535. data/ext/couchbase/core/protocol/cmd_replace.hxx +131 -0
  536. data/ext/couchbase/core/protocol/cmd_sasl_auth.cxx +61 -0
  537. data/ext/couchbase/core/protocol/cmd_sasl_auth.hxx +91 -0
  538. data/ext/couchbase/core/protocol/cmd_sasl_list_mechs.cxx +53 -0
  539. data/ext/couchbase/core/protocol/cmd_sasl_list_mechs.hxx +82 -0
  540. data/ext/couchbase/core/protocol/cmd_sasl_step.cxx +61 -0
  541. data/ext/couchbase/core/protocol/cmd_sasl_step.hxx +91 -0
  542. data/ext/couchbase/core/protocol/cmd_select_bucket.cxx +45 -0
  543. data/ext/couchbase/core/protocol/cmd_select_bucket.hxx +79 -0
  544. data/ext/couchbase/core/protocol/cmd_touch.cxx +53 -0
  545. data/ext/couchbase/core/protocol/cmd_touch.hxx +84 -0
  546. data/ext/couchbase/core/protocol/cmd_unlock.cxx +44 -0
  547. data/ext/couchbase/core/protocol/cmd_unlock.hxx +81 -0
  548. data/ext/couchbase/core/protocol/cmd_upsert.cxx +92 -0
  549. data/ext/couchbase/core/protocol/cmd_upsert.hxx +126 -0
  550. data/ext/couchbase/core/protocol/datatype.hxx +48 -0
  551. data/ext/couchbase/core/protocol/enhanced_error_info.hxx +23 -0
  552. data/ext/couchbase/core/protocol/frame_info_id.hxx +142 -0
  553. data/ext/couchbase/core/protocol/frame_info_id_fmt.hxx +79 -0
  554. data/ext/couchbase/core/protocol/frame_info_utils.cxx +59 -0
  555. data/ext/couchbase/core/protocol/frame_info_utils.hxx +52 -0
  556. data/ext/couchbase/core/protocol/hello_feature.hxx +193 -0
  557. data/ext/couchbase/core/protocol/hello_feature_fmt.hxx +112 -0
  558. data/ext/couchbase/core/protocol/magic.hxx +53 -0
  559. data/ext/couchbase/core/protocol/magic_fmt.hxx +58 -0
  560. data/ext/couchbase/core/protocol/server_opcode.hxx +39 -0
  561. data/ext/couchbase/core/protocol/server_opcode_fmt.hxx +46 -0
  562. data/ext/couchbase/core/protocol/server_request.hxx +121 -0
  563. data/ext/couchbase/core/protocol/status.cxx +202 -0
  564. data/ext/couchbase/core/protocol/status.hxx +118 -0
  565. data/ext/couchbase/core/query_context.hxx +79 -0
  566. data/ext/couchbase/core/range_scan_options.cxx +57 -0
  567. data/ext/couchbase/core/range_scan_options.hxx +139 -0
  568. data/ext/couchbase/core/range_scan_orchestrator.cxx +495 -0
  569. data/ext/couchbase/core/range_scan_orchestrator.hxx +54 -0
  570. data/ext/couchbase/core/range_scan_orchestrator_options.hxx +54 -0
  571. data/ext/couchbase/core/resource_units.hxx +26 -0
  572. data/ext/couchbase/core/response_handler.hxx +49 -0
  573. data/ext/couchbase/core/retry_orchestrator.cxx +52 -0
  574. data/ext/couchbase/core/retry_orchestrator.hxx +35 -0
  575. data/ext/couchbase/core/sasl/CMakeLists.txt +16 -0
  576. data/ext/couchbase/core/sasl/client.cc +50 -0
  577. data/ext/couchbase/core/sasl/client.h +127 -0
  578. data/ext/couchbase/core/sasl/context.cc +34 -0
  579. data/ext/couchbase/core/sasl/context.h +52 -0
  580. data/ext/couchbase/core/sasl/error.h +28 -0
  581. data/ext/couchbase/core/sasl/error_fmt.h +70 -0
  582. data/ext/couchbase/core/sasl/mechanism.cc +45 -0
  583. data/ext/couchbase/core/sasl/mechanism.h +52 -0
  584. data/ext/couchbase/core/sasl/plain/plain.cc +39 -0
  585. data/ext/couchbase/core/sasl/plain/plain.h +54 -0
  586. data/ext/couchbase/core/sasl/scram-sha/scram-sha.cc +372 -0
  587. data/ext/couchbase/core/sasl/scram-sha/scram-sha.h +184 -0
  588. data/ext/couchbase/core/sasl/scram-sha/stringutils.cc +82 -0
  589. data/ext/couchbase/core/sasl/scram-sha/stringutils.h +48 -0
  590. data/ext/couchbase/core/scan_options.hxx +63 -0
  591. data/ext/couchbase/core/scan_result.cxx +71 -0
  592. data/ext/couchbase/core/scan_result.hxx +59 -0
  593. data/ext/couchbase/core/search_highlight_style.hxx +23 -0
  594. data/ext/couchbase/core/search_query_options.cxx +72 -0
  595. data/ext/couchbase/core/search_query_options.hxx +74 -0
  596. data/ext/couchbase/core/search_scan_consistency.hxx +23 -0
  597. data/ext/couchbase/core/seed_config.cxx +39 -0
  598. data/ext/couchbase/core/seed_config.hxx +39 -0
  599. data/ext/couchbase/core/service_type.hxx +31 -0
  600. data/ext/couchbase/core/service_type_fmt.hxx +61 -0
  601. data/ext/couchbase/core/stats_options.hxx +61 -0
  602. data/ext/couchbase/core/subdoc_options.hxx +124 -0
  603. data/ext/couchbase/core/timeout_defaults.hxx +45 -0
  604. data/ext/couchbase/core/topology/capabilities.hxx +43 -0
  605. data/ext/couchbase/core/topology/capabilities_fmt.hxx +106 -0
  606. data/ext/couchbase/core/topology/collections_manifest.hxx +43 -0
  607. data/ext/couchbase/core/topology/collections_manifest_fmt.hxx +52 -0
  608. data/ext/couchbase/core/topology/collections_manifest_json.hxx +53 -0
  609. data/ext/couchbase/core/topology/configuration.cxx +256 -0
  610. data/ext/couchbase/core/topology/configuration.hxx +144 -0
  611. data/ext/couchbase/core/topology/configuration_fmt.hxx +166 -0
  612. data/ext/couchbase/core/topology/configuration_json.hxx +259 -0
  613. data/ext/couchbase/core/topology/error_map.hxx +35 -0
  614. data/ext/couchbase/core/topology/error_map_fmt.hxx +94 -0
  615. data/ext/couchbase/core/topology/error_map_json.hxx +89 -0
  616. data/ext/couchbase/core/tracing/CMakeLists.txt +11 -0
  617. data/ext/couchbase/core/tracing/constants.hxx +286 -0
  618. data/ext/couchbase/core/tracing/noop_tracer.hxx +56 -0
  619. data/ext/couchbase/core/tracing/threshold_logging_options.hxx +68 -0
  620. data/ext/couchbase/core/tracing/threshold_logging_tracer.cxx +438 -0
  621. data/ext/couchbase/core/tracing/threshold_logging_tracer.hxx +52 -0
  622. data/ext/couchbase/core/transactions/active_transaction_record.hxx +180 -0
  623. data/ext/couchbase/core/transactions/async_attempt_context.hxx +175 -0
  624. data/ext/couchbase/core/transactions/atr_cleanup_entry.cxx +460 -0
  625. data/ext/couchbase/core/transactions/atr_ids.cxx +225 -0
  626. data/ext/couchbase/core/transactions/atr_ids.hxx +32 -0
  627. data/ext/couchbase/core/transactions/attempt_context.hxx +195 -0
  628. data/ext/couchbase/core/transactions/attempt_context_impl.cxx +2382 -0
  629. data/ext/couchbase/core/transactions/attempt_context_impl.hxx +608 -0
  630. data/ext/couchbase/core/transactions/attempt_context_testing_hooks.hxx +145 -0
  631. data/ext/couchbase/core/transactions/attempt_state.hxx +112 -0
  632. data/ext/couchbase/core/transactions/binary.cxx +26 -0
  633. data/ext/couchbase/core/transactions/cleanup_testing_hooks.hxx +69 -0
  634. data/ext/couchbase/core/transactions/document_metadata.hxx +106 -0
  635. data/ext/couchbase/core/transactions/durability_level.hxx +91 -0
  636. data/ext/couchbase/core/transactions/error_class.hxx +35 -0
  637. data/ext/couchbase/core/transactions/error_list.hxx +54 -0
  638. data/ext/couchbase/core/transactions/exceptions.cxx +160 -0
  639. data/ext/couchbase/core/transactions/exceptions.hxx +209 -0
  640. data/ext/couchbase/core/transactions/forward_compat.hxx +250 -0
  641. data/ext/couchbase/core/transactions/internal/atr_cleanup_entry.hxx +164 -0
  642. data/ext/couchbase/core/transactions/internal/atr_entry.hxx +178 -0
  643. data/ext/couchbase/core/transactions/internal/binary.hxx +26 -0
  644. data/ext/couchbase/core/transactions/internal/client_record.hxx +85 -0
  645. data/ext/couchbase/core/transactions/internal/doc_record.hxx +99 -0
  646. data/ext/couchbase/core/transactions/internal/exceptions_internal.hxx +393 -0
  647. data/ext/couchbase/core/transactions/internal/logging.hxx +62 -0
  648. data/ext/couchbase/core/transactions/internal/transaction_attempt.hxx +30 -0
  649. data/ext/couchbase/core/transactions/internal/transaction_context.hxx +197 -0
  650. data/ext/couchbase/core/transactions/internal/transaction_fields.hxx +71 -0
  651. data/ext/couchbase/core/transactions/internal/transactions_cleanup.hxx +159 -0
  652. data/ext/couchbase/core/transactions/internal/utils.hxx +311 -0
  653. data/ext/couchbase/core/transactions/result.cxx +79 -0
  654. data/ext/couchbase/core/transactions/result.hxx +296 -0
  655. data/ext/couchbase/core/transactions/staged_mutation.cxx +416 -0
  656. data/ext/couchbase/core/transactions/staged_mutation.hxx +126 -0
  657. data/ext/couchbase/core/transactions/transaction_attempt.cxx +29 -0
  658. data/ext/couchbase/core/transactions/transaction_context.cxx +307 -0
  659. data/ext/couchbase/core/transactions/transaction_get_result.cxx +218 -0
  660. data/ext/couchbase/core/transactions/transaction_get_result.hxx +289 -0
  661. data/ext/couchbase/core/transactions/transaction_links.cxx +27 -0
  662. data/ext/couchbase/core/transactions/transaction_links.hxx +252 -0
  663. data/ext/couchbase/core/transactions/transaction_options.cxx +38 -0
  664. data/ext/couchbase/core/transactions/transactions.cxx +184 -0
  665. data/ext/couchbase/core/transactions/transactions_cleanup.cxx +592 -0
  666. data/ext/couchbase/core/transactions/transactions_config.cxx +81 -0
  667. data/ext/couchbase/core/transactions/uid_generator.cxx +27 -0
  668. data/ext/couchbase/core/transactions/uid_generator.hxx +29 -0
  669. data/ext/couchbase/core/transactions/utils.cxx +123 -0
  670. data/ext/couchbase/core/transactions/waitable_op_list.hxx +189 -0
  671. data/ext/couchbase/core/transactions.hxx +255 -0
  672. data/ext/couchbase/core/utils/binary.cxx +27 -0
  673. data/ext/couchbase/core/utils/binary.hxx +57 -0
  674. data/ext/couchbase/core/utils/byteswap.hxx +49 -0
  675. data/ext/couchbase/core/utils/connection_string.cxx +430 -0
  676. data/ext/couchbase/core/utils/connection_string.hxx +76 -0
  677. data/ext/couchbase/core/utils/crc32.hxx +56 -0
  678. data/ext/couchbase/core/utils/duration_parser.cxx +193 -0
  679. data/ext/couchbase/core/utils/duration_parser.hxx +45 -0
  680. data/ext/couchbase/core/utils/join_strings.hxx +65 -0
  681. data/ext/couchbase/core/utils/json.cxx +291 -0
  682. data/ext/couchbase/core/utils/json.hxx +43 -0
  683. data/ext/couchbase/core/utils/json_stream_control.hxx +32 -0
  684. data/ext/couchbase/core/utils/json_streaming_lexer.cxx +398 -0
  685. data/ext/couchbase/core/utils/json_streaming_lexer.hxx +60 -0
  686. data/ext/couchbase/core/utils/keyspace.hxx +55 -0
  687. data/ext/couchbase/core/utils/movable_function.hxx +121 -0
  688. data/ext/couchbase/core/utils/mutation_token.cxx +33 -0
  689. data/ext/couchbase/core/utils/mutation_token.hxx +29 -0
  690. data/ext/couchbase/core/utils/name_codec.hxx +41 -0
  691. data/ext/couchbase/core/utils/split_string.cxx +35 -0
  692. data/ext/couchbase/core/utils/split_string.hxx +27 -0
  693. data/ext/couchbase/core/utils/unsigned_leb128.hxx +183 -0
  694. data/ext/couchbase/core/utils/url_codec.cxx +405 -0
  695. data/ext/couchbase/core/utils/url_codec.hxx +72 -0
  696. data/ext/couchbase/core/view_on_error.hxx +27 -0
  697. data/ext/couchbase/core/view_query_options.cxx +72 -0
  698. data/ext/couchbase/core/view_query_options.hxx +78 -0
  699. data/ext/couchbase/core/view_scan_consistency.hxx +27 -0
  700. data/ext/couchbase/core/view_sort_order.hxx +23 -0
  701. data/ext/couchbase/core/wait_until_ready_options.hxx +52 -0
  702. data/ext/couchbase/couchbase/append_options.hxx +123 -0
  703. data/ext/couchbase/couchbase/behavior_options.hxx +79 -0
  704. data/ext/couchbase/couchbase/best_effort_retry_strategy.hxx +64 -0
  705. data/ext/couchbase/couchbase/binary_collection.hxx +327 -0
  706. data/ext/couchbase/couchbase/bucket.hxx +55 -494
  707. data/ext/couchbase/couchbase/build_query_index_options.hxx +99 -0
  708. data/ext/couchbase/couchbase/cas.hxx +74 -8
  709. data/ext/couchbase/couchbase/certificate_authenticator.hxx +39 -0
  710. data/ext/couchbase/couchbase/cluster.hxx +156 -370
  711. data/ext/couchbase/couchbase/cluster_options.hxx +315 -51
  712. data/ext/couchbase/couchbase/codec/binary_noop_serializer.hxx +47 -0
  713. data/ext/couchbase/couchbase/codec/codec_flags.hxx +145 -0
  714. data/ext/couchbase/couchbase/codec/default_json_transcoder.hxx +36 -0
  715. data/ext/couchbase/couchbase/codec/encoded_value.hxx +31 -0
  716. data/ext/couchbase/couchbase/codec/json_transcoder.hxx +49 -0
  717. data/ext/couchbase/couchbase/codec/raw_binary_transcoder.hxx +54 -0
  718. data/ext/couchbase/couchbase/codec/serializer_traits.hxx +31 -0
  719. data/ext/couchbase/couchbase/codec/tao_json_serializer.hxx +81 -0
  720. data/ext/couchbase/couchbase/codec/transcoder_traits.hxx +31 -0
  721. data/ext/couchbase/couchbase/collection.hxx +1031 -0
  722. data/ext/couchbase/couchbase/collection_query_index_manager.hxx +218 -0
  723. data/ext/couchbase/couchbase/common_durability_options.hxx +108 -0
  724. data/ext/couchbase/couchbase/common_options.hxx +112 -0
  725. data/ext/couchbase/couchbase/compression_options.hxx +65 -0
  726. data/ext/couchbase/couchbase/configuration_profile.hxx +44 -0
  727. data/ext/couchbase/couchbase/configuration_profiles_registry.hxx +61 -0
  728. data/ext/couchbase/couchbase/counter_result.hxx +73 -0
  729. data/ext/couchbase/couchbase/create_primary_query_index_options.hxx +166 -0
  730. data/ext/couchbase/couchbase/create_query_index_options.hxx +172 -0
  731. data/ext/couchbase/couchbase/decrement_options.hxx +166 -0
  732. data/ext/couchbase/couchbase/dns_options.hxx +65 -0
  733. data/ext/couchbase/couchbase/drop_primary_query_index_options.hxx +129 -0
  734. data/ext/couchbase/couchbase/drop_query_index_options.hxx +116 -0
  735. data/ext/couchbase/couchbase/durability_level.hxx +64 -0
  736. data/ext/couchbase/couchbase/error_codes.hxx +1223 -0
  737. data/ext/couchbase/couchbase/error_context.hxx +173 -0
  738. data/ext/couchbase/couchbase/exists_options.hxx +97 -0
  739. data/ext/couchbase/couchbase/exists_result.hxx +72 -0
  740. data/ext/couchbase/couchbase/expiry.hxx +55 -0
  741. data/ext/couchbase/couchbase/fail_fast_retry_strategy.hxx +37 -0
  742. data/ext/couchbase/couchbase/fmt/cas.hxx +37 -0
  743. data/ext/couchbase/couchbase/fmt/durability_level.hxx +52 -0
  744. data/ext/couchbase/couchbase/fmt/key_value_extended_error_info.hxx +46 -0
  745. data/ext/couchbase/couchbase/fmt/key_value_status_code.hxx +258 -0
  746. data/ext/couchbase/couchbase/fmt/mutation_token.hxx +38 -0
  747. data/ext/couchbase/couchbase/fmt/query_scan_consistency.hxx +46 -0
  748. data/ext/couchbase/couchbase/fmt/query_status.hxx +70 -0
  749. data/ext/couchbase/couchbase/fmt/retry_reason.hxx +103 -0
  750. data/ext/couchbase/couchbase/fmt/tls_verify_mode.hxx +46 -0
  751. data/ext/couchbase/couchbase/get_all_query_indexes_options.hxx +100 -0
  752. data/ext/couchbase/couchbase/get_all_replicas_options.hxx +102 -0
  753. data/ext/couchbase/couchbase/get_and_lock_options.hxx +94 -0
  754. data/ext/couchbase/couchbase/get_and_touch_options.hxx +94 -0
  755. data/ext/couchbase/couchbase/get_any_replica_options.hxx +93 -0
  756. data/ext/couchbase/couchbase/get_options.hxx +137 -0
  757. data/ext/couchbase/couchbase/get_replica_result.hxx +117 -0
  758. data/ext/couchbase/couchbase/get_result.hxx +126 -0
  759. data/ext/couchbase/couchbase/increment_options.hxx +166 -0
  760. data/ext/couchbase/couchbase/insert_options.hxx +136 -0
  761. data/ext/couchbase/couchbase/ip_protocol.hxx +27 -0
  762. data/ext/couchbase/couchbase/key_value_error_context.hxx +224 -0
  763. data/ext/couchbase/couchbase/key_value_error_map_attribute.hxx +124 -0
  764. data/ext/couchbase/couchbase/key_value_error_map_info.hxx +138 -0
  765. data/ext/couchbase/couchbase/key_value_extended_error_info.hxx +86 -0
  766. data/ext/couchbase/couchbase/key_value_status_code.hxx +107 -0
  767. data/ext/couchbase/couchbase/lookup_in_options.hxx +119 -0
  768. data/ext/couchbase/couchbase/lookup_in_result.hxx +255 -0
  769. data/ext/couchbase/couchbase/lookup_in_specs.hxx +147 -0
  770. data/ext/couchbase/couchbase/manager_error_context.hxx +136 -0
  771. data/ext/couchbase/couchbase/metrics/meter.hxx +16 -0
  772. data/ext/couchbase/couchbase/metrics/otel_meter.hxx +131 -0
  773. data/ext/couchbase/couchbase/metrics_options.hxx +71 -0
  774. data/ext/couchbase/couchbase/mutate_in_options.hxx +233 -0
  775. data/ext/couchbase/couchbase/mutate_in_result.hxx +173 -0
  776. data/ext/couchbase/couchbase/mutate_in_specs.hxx +528 -0
  777. data/ext/couchbase/couchbase/mutation_result.hxx +73 -0
  778. data/ext/couchbase/couchbase/mutation_state.hxx +73 -0
  779. data/ext/couchbase/couchbase/mutation_token.hxx +93 -6
  780. data/ext/couchbase/couchbase/network_options.hxx +114 -0
  781. data/ext/couchbase/couchbase/password_authenticator.hxx +47 -0
  782. data/ext/couchbase/couchbase/persist_to.hxx +73 -0
  783. data/ext/couchbase/couchbase/prepend_options.hxx +124 -0
  784. data/ext/couchbase/couchbase/query_error_context.hxx +143 -0
  785. data/ext/couchbase/couchbase/query_index_manager.hxx +254 -0
  786. data/ext/couchbase/couchbase/query_meta_data.hxx +171 -0
  787. data/ext/couchbase/couchbase/query_metrics.hxx +179 -0
  788. data/ext/couchbase/couchbase/query_options.hxx +575 -0
  789. data/ext/couchbase/couchbase/query_profile.hxx +52 -0
  790. data/ext/couchbase/couchbase/query_result.hxx +102 -0
  791. data/ext/couchbase/couchbase/query_scan_consistency.hxx +25 -2
  792. data/ext/couchbase/couchbase/query_status.hxx +42 -0
  793. data/ext/couchbase/couchbase/query_warning.hxx +115 -0
  794. data/ext/couchbase/couchbase/remove_options.hxx +123 -0
  795. data/ext/couchbase/couchbase/replace_options.hxx +184 -0
  796. data/ext/couchbase/couchbase/replicate_to.hxx +55 -0
  797. data/ext/couchbase/couchbase/result.hxx +66 -0
  798. data/ext/couchbase/couchbase/retry_action.hxx +41 -0
  799. data/ext/couchbase/couchbase/retry_reason.hxx +107 -0
  800. data/ext/couchbase/couchbase/retry_request.hxx +39 -0
  801. data/ext/couchbase/couchbase/retry_strategy.hxx +35 -0
  802. data/ext/couchbase/couchbase/scope.hxx +149 -0
  803. data/ext/couchbase/couchbase/security_options.hxx +68 -0
  804. data/ext/couchbase/couchbase/store_semantics.hxx +63 -0
  805. data/ext/couchbase/couchbase/subdoc/array_add_unique.hxx +105 -0
  806. data/ext/couchbase/couchbase/subdoc/array_append.hxx +89 -0
  807. data/ext/couchbase/couchbase/subdoc/array_insert.hxx +90 -0
  808. data/ext/couchbase/couchbase/subdoc/array_prepend.hxx +90 -0
  809. data/ext/couchbase/couchbase/subdoc/count.hxx +70 -0
  810. data/ext/couchbase/couchbase/subdoc/counter.hxx +88 -0
  811. data/ext/couchbase/couchbase/subdoc/exists.hxx +70 -0
  812. data/ext/couchbase/couchbase/subdoc/fwd/command.hxx +25 -0
  813. data/ext/couchbase/couchbase/subdoc/fwd/command_bundle.hxx +25 -0
  814. data/ext/couchbase/couchbase/subdoc/get.hxx +78 -0
  815. data/ext/couchbase/couchbase/subdoc/insert.hxx +105 -0
  816. data/ext/couchbase/couchbase/subdoc/lookup_in_macro.hxx +66 -0
  817. data/ext/couchbase/couchbase/subdoc/mutate_in_macro.hxx +54 -0
  818. data/ext/couchbase/couchbase/subdoc/remove.hxx +70 -0
  819. data/ext/couchbase/couchbase/subdoc/replace.hxx +89 -0
  820. data/ext/couchbase/couchbase/subdoc/upsert.hxx +105 -0
  821. data/ext/couchbase/couchbase/subdocument_error_context.hxx +144 -0
  822. data/ext/couchbase/couchbase/timeout_options.hxx +141 -0
  823. data/ext/couchbase/couchbase/tls_verify_mode.hxx +26 -0
  824. data/ext/couchbase/couchbase/touch_options.hxx +94 -0
  825. data/ext/couchbase/couchbase/tracing/otel_tracer.hxx +85 -0
  826. data/ext/couchbase/couchbase/tracing/request_tracer.hxx +17 -2
  827. data/ext/couchbase/couchbase/tracing_options.hxx +174 -0
  828. data/ext/couchbase/couchbase/transaction_error_context.hxx +49 -0
  829. data/ext/couchbase/couchbase/transaction_op_error_context.hxx +76 -0
  830. data/ext/couchbase/couchbase/transactions/async_attempt_context.hxx +78 -0
  831. data/ext/couchbase/couchbase/transactions/attempt_context.hxx +79 -0
  832. data/ext/couchbase/couchbase/transactions/transaction_get_result.hxx +133 -0
  833. data/ext/couchbase/couchbase/transactions/transaction_keyspace.hxx +101 -0
  834. data/ext/couchbase/couchbase/transactions/transaction_options.hxx +115 -0
  835. data/ext/couchbase/couchbase/transactions/transaction_query_options.hxx +159 -0
  836. data/ext/couchbase/couchbase/transactions/transaction_query_result.hxx +36 -0
  837. data/ext/couchbase/couchbase/transactions/transaction_result.hxx +34 -0
  838. data/ext/couchbase/couchbase/transactions/transactions_cleanup_config.hxx +140 -0
  839. data/ext/couchbase/couchbase/transactions/transactions_config.hxx +255 -0
  840. data/ext/couchbase/couchbase/transactions/transactions_query_config.hxx +61 -0
  841. data/ext/couchbase/couchbase/transactions.hxx +43 -0
  842. data/ext/couchbase/couchbase/unlock_options.hxx +97 -0
  843. data/ext/couchbase/couchbase/upsert_options.hxx +158 -0
  844. data/ext/couchbase/couchbase/wan_development_configuration_profile.hxx +44 -0
  845. data/ext/couchbase/couchbase/watch_query_indexes_options.hxx +115 -0
  846. data/ext/couchbase/test/CMakeLists.txt +19 -0
  847. data/ext/couchbase/test/another_simple_object.hxx +50 -0
  848. data/ext/couchbase/test/benchmark_integration_get.cxx +5 -6
  849. data/ext/couchbase/test/profile.hxx +62 -0
  850. data/ext/couchbase/test/simple_object.hxx +53 -0
  851. data/ext/couchbase/test/test_helper.hxx +8 -0
  852. data/ext/couchbase/test/test_helper_integration.hxx +1 -1
  853. data/ext/couchbase/test/test_integration_analytics.cxx +261 -0
  854. data/ext/couchbase/test/test_integration_arithmetic.cxx +119 -20
  855. data/ext/couchbase/test/test_integration_binary_operations.cxx +26 -39
  856. data/ext/couchbase/test/test_integration_collections.cxx +43 -45
  857. data/ext/couchbase/test/test_integration_connect.cxx +35 -25
  858. data/ext/couchbase/test/test_integration_crud.cxx +403 -187
  859. data/ext/couchbase/test/test_integration_diagnostics.cxx +119 -48
  860. data/ext/couchbase/test/test_integration_durability.cxx +171 -26
  861. data/ext/couchbase/test/test_integration_management.cxx +1474 -849
  862. data/ext/couchbase/test/test_integration_meter.cxx +182 -0
  863. data/ext/couchbase/test/test_integration_query.cxx +266 -86
  864. data/ext/couchbase/test/test_integration_range_scan.cxx +1067 -0
  865. data/ext/couchbase/test/test_integration_read_replica.cxx +232 -0
  866. data/ext/couchbase/test/test_integration_subdoc.cxx +337 -306
  867. data/ext/couchbase/test/test_integration_tracer.cxx +306 -0
  868. data/ext/couchbase/test/test_integration_transcoders.cxx +588 -0
  869. data/ext/couchbase/test/test_transaction_transaction_context.cxx +550 -0
  870. data/ext/couchbase/test/test_transaction_transaction_public_async_api.cxx +393 -0
  871. data/ext/couchbase/test/test_transaction_transaction_public_blocking_api.cxx +653 -0
  872. data/ext/couchbase/test/test_transaction_transaction_simple.cxx +899 -0
  873. data/ext/couchbase/test/test_transaction_transaction_simple_async.cxx +972 -0
  874. data/ext/couchbase/test/test_unit_config_profiles.cxx +132 -0
  875. data/ext/couchbase/test/test_unit_connection_string.cxx +170 -165
  876. data/ext/couchbase/test/test_unit_json_streaming_lexer.cxx +129 -9
  877. data/ext/couchbase/test/test_unit_json_transcoder.cxx +212 -0
  878. data/ext/couchbase/test/test_unit_jsonsl.cxx +1 -1
  879. data/ext/couchbase/test/test_unit_options.cxx +57 -0
  880. data/ext/couchbase/test/test_unit_transaction_logging.cxx +130 -0
  881. data/ext/couchbase/test/test_unit_transaction_utils.cxx +261 -0
  882. data/ext/couchbase/test/test_unit_utils.cxx +166 -29
  883. data/ext/couchbase/test/test_unit_waitable_op_list.cxx +132 -0
  884. data/ext/couchbase/third_party/asio/asio/include/asio/any_io_executor.hpp +4 -2
  885. data/ext/couchbase/third_party/asio/asio/include/asio/append.hpp +78 -0
  886. data/ext/couchbase/third_party/asio/asio/include/asio/as_tuple.hpp +139 -0
  887. data/ext/couchbase/third_party/asio/asio/include/asio/associated_allocator.hpp +4 -4
  888. data/ext/couchbase/third_party/asio/asio/include/asio/associated_cancellation_slot.hpp +4 -3
  889. data/ext/couchbase/third_party/asio/asio/include/asio/associated_executor.hpp +4 -4
  890. data/ext/couchbase/third_party/asio/asio/include/asio/associator.hpp +1 -1
  891. data/ext/couchbase/third_party/asio/asio/include/asio/async_result.hpp +357 -1
  892. data/ext/couchbase/third_party/asio/asio/include/asio/awaitable.hpp +10 -1
  893. data/ext/couchbase/third_party/asio/asio/include/asio/basic_datagram_socket.hpp +208 -115
  894. data/ext/couchbase/third_party/asio/asio/include/asio/basic_deadline_timer.hpp +28 -16
  895. data/ext/couchbase/third_party/asio/asio/include/asio/basic_file.hpp +2 -2
  896. data/ext/couchbase/third_party/asio/asio/include/asio/basic_io_object.hpp +1 -1
  897. data/ext/couchbase/third_party/asio/asio/include/asio/basic_random_access_file.hpp +51 -27
  898. data/ext/couchbase/third_party/asio/asio/include/asio/basic_raw_socket.hpp +210 -117
  899. data/ext/couchbase/third_party/asio/asio/include/asio/basic_readable_pipe.hpp +127 -15
  900. data/ext/couchbase/third_party/asio/asio/include/asio/basic_seq_packet_socket.hpp +84 -47
  901. data/ext/couchbase/third_party/asio/asio/include/asio/basic_serial_port.hpp +120 -27
  902. data/ext/couchbase/third_party/asio/asio/include/asio/basic_signal_set.hpp +36 -14
  903. data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket.hpp +50 -26
  904. data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_acceptor.hpp +295 -150
  905. data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_iostream.hpp +1 -1
  906. data/ext/couchbase/third_party/asio/asio/include/asio/basic_socket_streambuf.hpp +1 -1
  907. data/ext/couchbase/third_party/asio/asio/include/asio/basic_stream_file.hpp +51 -27
  908. data/ext/couchbase/third_party/asio/asio/include/asio/basic_stream_socket.hpp +153 -84
  909. data/ext/couchbase/third_party/asio/asio/include/asio/basic_streambuf.hpp +1 -1
  910. data/ext/couchbase/third_party/asio/asio/include/asio/basic_streambuf_fwd.hpp +1 -1
  911. data/ext/couchbase/third_party/asio/asio/include/asio/basic_waitable_timer.hpp +28 -16
  912. data/ext/couchbase/third_party/asio/asio/include/asio/basic_writable_pipe.hpp +127 -15
  913. data/ext/couchbase/third_party/asio/asio/include/asio/bind_allocator.hpp +722 -0
  914. data/ext/couchbase/third_party/asio/asio/include/asio/bind_cancellation_slot.hpp +11 -8
  915. data/ext/couchbase/third_party/asio/asio/include/asio/bind_executor.hpp +36 -20
  916. data/ext/couchbase/third_party/asio/asio/include/asio/buffer.hpp +222 -42
  917. data/ext/couchbase/third_party/asio/asio/include/asio/buffer_registration.hpp +2 -1
  918. data/ext/couchbase/third_party/asio/asio/include/asio/buffered_read_stream.hpp +38 -6
  919. data/ext/couchbase/third_party/asio/asio/include/asio/buffered_read_stream_fwd.hpp +1 -1
  920. data/ext/couchbase/third_party/asio/asio/include/asio/buffered_stream.hpp +34 -5
  921. data/ext/couchbase/third_party/asio/asio/include/asio/buffered_stream_fwd.hpp +1 -1
  922. data/ext/couchbase/third_party/asio/asio/include/asio/buffered_write_stream.hpp +38 -6
  923. data/ext/couchbase/third_party/asio/asio/include/asio/buffered_write_stream_fwd.hpp +1 -1
  924. data/ext/couchbase/third_party/asio/asio/include/asio/buffers_iterator.hpp +1 -1
  925. data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_signal.hpp +1 -1
  926. data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_state.hpp +1 -1
  927. data/ext/couchbase/third_party/asio/asio/include/asio/cancellation_type.hpp +1 -1
  928. data/ext/couchbase/third_party/asio/asio/include/asio/co_spawn.hpp +33 -9
  929. data/ext/couchbase/third_party/asio/asio/include/asio/completion_condition.hpp +1 -1
  930. data/ext/couchbase/third_party/asio/asio/include/asio/compose.hpp +682 -12
  931. data/ext/couchbase/third_party/asio/asio/include/asio/connect.hpp +132 -61
  932. data/ext/couchbase/third_party/asio/asio/include/asio/connect_pipe.hpp +1 -1
  933. data/ext/couchbase/third_party/asio/asio/include/asio/coroutine.hpp +1 -1
  934. data/ext/couchbase/third_party/asio/asio/include/asio/deadline_timer.hpp +1 -1
  935. data/ext/couchbase/third_party/asio/asio/include/asio/defer.hpp +128 -42
  936. data/ext/couchbase/third_party/asio/asio/include/asio/deferred.hpp +675 -0
  937. data/ext/couchbase/third_party/asio/asio/include/asio/detached.hpp +6 -5
  938. data/ext/couchbase/third_party/asio/asio/include/asio/detail/array.hpp +1 -1
  939. data/ext/couchbase/third_party/asio/asio/include/asio/detail/array_fwd.hpp +1 -1
  940. data/ext/couchbase/third_party/asio/asio/include/asio/detail/assert.hpp +1 -1
  941. data/ext/couchbase/third_party/asio/asio/include/asio/detail/atomic_count.hpp +1 -1
  942. data/ext/couchbase/third_party/asio/asio/include/asio/detail/base_from_cancellation_state.hpp +1 -1
  943. data/ext/couchbase/third_party/asio/asio/include/asio/detail/base_from_completion_cond.hpp +1 -1
  944. data/ext/couchbase/third_party/asio/asio/include/asio/detail/bind_handler.hpp +1 -1
  945. data/ext/couchbase/third_party/asio/asio/include/asio/detail/blocking_executor_op.hpp +1 -1
  946. data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffer_resize_guard.hpp +1 -1
  947. data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffer_sequence_adapter.hpp +1 -1
  948. data/ext/couchbase/third_party/asio/asio/include/asio/detail/buffered_stream_storage.hpp +1 -1
  949. data/ext/couchbase/third_party/asio/asio/include/asio/detail/bulk_executor_op.hpp +1 -1
  950. data/ext/couchbase/third_party/asio/asio/include/asio/detail/call_stack.hpp +1 -1
  951. data/ext/couchbase/third_party/asio/asio/include/asio/detail/chrono.hpp +1 -1
  952. data/ext/couchbase/third_party/asio/asio/include/asio/detail/chrono_time_traits.hpp +1 -1
  953. data/ext/couchbase/third_party/asio/asio/include/asio/detail/completion_handler.hpp +1 -1
  954. data/ext/couchbase/third_party/asio/asio/include/asio/detail/concurrency_hint.hpp +1 -1
  955. data/ext/couchbase/third_party/asio/asio/include/asio/detail/conditionally_enabled_event.hpp +1 -1
  956. data/ext/couchbase/third_party/asio/asio/include/asio/detail/conditionally_enabled_mutex.hpp +1 -1
  957. data/ext/couchbase/third_party/asio/asio/include/asio/detail/config.hpp +201 -11
  958. data/ext/couchbase/third_party/asio/asio/include/asio/detail/consuming_buffers.hpp +1 -1
  959. data/ext/couchbase/third_party/asio/asio/include/asio/detail/cstddef.hpp +1 -1
  960. data/ext/couchbase/third_party/asio/asio/include/asio/detail/cstdint.hpp +1 -1
  961. data/ext/couchbase/third_party/asio/asio/include/asio/detail/date_time_fwd.hpp +1 -1
  962. data/ext/couchbase/third_party/asio/asio/include/asio/detail/deadline_timer_service.hpp +1 -1
  963. data/ext/couchbase/third_party/asio/asio/include/asio/detail/dependent_type.hpp +1 -1
  964. data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_ops.hpp +2 -2
  965. data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_read_op.hpp +3 -1
  966. data/ext/couchbase/third_party/asio/asio/include/asio/detail/descriptor_write_op.hpp +3 -1
  967. data/ext/couchbase/third_party/asio/asio/include/asio/detail/dev_poll_reactor.hpp +1 -1
  968. data/ext/couchbase/third_party/asio/asio/include/asio/detail/epoll_reactor.hpp +1 -1
  969. data/ext/couchbase/third_party/asio/asio/include/asio/detail/event.hpp +1 -1
  970. data/ext/couchbase/third_party/asio/asio/include/asio/detail/eventfd_select_interrupter.hpp +1 -1
  971. data/ext/couchbase/third_party/asio/asio/include/asio/detail/exception.hpp +40 -0
  972. data/ext/couchbase/third_party/asio/asio/include/asio/detail/executor_function.hpp +1 -1
  973. data/ext/couchbase/third_party/asio/asio/include/asio/detail/executor_op.hpp +1 -1
  974. data/ext/couchbase/third_party/asio/asio/include/asio/detail/fd_set_adapter.hpp +1 -1
  975. data/ext/couchbase/third_party/asio/asio/include/asio/detail/fenced_block.hpp +1 -1
  976. data/ext/couchbase/third_party/asio/asio/include/asio/detail/functional.hpp +1 -1
  977. data/ext/couchbase/third_party/asio/asio/include/asio/detail/future.hpp +1 -1
  978. data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_arm_fenced_block.hpp +1 -1
  979. data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_hppa_fenced_block.hpp +1 -1
  980. data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_sync_fenced_block.hpp +1 -1
  981. data/ext/couchbase/third_party/asio/asio/include/asio/detail/gcc_x86_fenced_block.hpp +2 -2
  982. data/ext/couchbase/third_party/asio/asio/include/asio/detail/global.hpp +1 -1
  983. data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_alloc_helpers.hpp +1 -1
  984. data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_cont_helpers.hpp +1 -1
  985. data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_invoke_helpers.hpp +1 -1
  986. data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_tracking.hpp +1 -1
  987. data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_type_requirements.hpp +1 -1
  988. data/ext/couchbase/third_party/asio/asio/include/asio/detail/handler_work.hpp +1 -1
  989. data/ext/couchbase/third_party/asio/asio/include/asio/detail/hash_map.hpp +1 -1
  990. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/buffer_sequence_adapter.ipp +1 -1
  991. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/descriptor_ops.ipp +9 -9
  992. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.hpp +1 -1
  993. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/dev_poll_reactor.ipp +1 -1
  994. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.hpp +1 -1
  995. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/epoll_reactor.ipp +1 -1
  996. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/eventfd_select_interrupter.ipp +1 -1
  997. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/handler_tracking.ipp +1 -1
  998. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_descriptor_service.ipp +4 -1
  999. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_file_service.ipp +10 -1
  1000. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_service.hpp +1 -1
  1001. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_service.ipp +8 -7
  1002. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/io_uring_socket_service_base.ipp +1 -1
  1003. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.hpp +1 -1
  1004. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/kqueue_reactor.ipp +1 -1
  1005. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/null_event.ipp +1 -1
  1006. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/pipe_select_interrupter.ipp +1 -1
  1007. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_event.ipp +1 -1
  1008. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_mutex.ipp +1 -1
  1009. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_serial_port_service.ipp +21 -2
  1010. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_thread.ipp +1 -1
  1011. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/posix_tss_ptr.ipp +1 -1
  1012. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/reactive_descriptor_service.ipp +6 -1
  1013. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/reactive_socket_service_base.ipp +3 -3
  1014. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/resolver_service_base.ipp +1 -1
  1015. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/scheduler.ipp +1 -1
  1016. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/select_reactor.hpp +1 -1
  1017. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/select_reactor.ipp +36 -1
  1018. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/service_registry.hpp +1 -1
  1019. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/service_registry.ipp +1 -1
  1020. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/signal_set_service.ipp +28 -1
  1021. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/socket_ops.ipp +126 -121
  1022. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/socket_select_interrupter.ipp +4 -4
  1023. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.hpp +1 -1
  1024. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_executor_service.ipp +1 -1
  1025. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_service.hpp +1 -1
  1026. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/strand_service.ipp +1 -1
  1027. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/thread_context.ipp +1 -1
  1028. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/throw_error.ipp +13 -9
  1029. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/timer_queue_ptime.ipp +1 -1
  1030. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/timer_queue_set.ipp +1 -1
  1031. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_event.ipp +1 -1
  1032. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_file_service.ipp +21 -7
  1033. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_handle_service.ipp +94 -1
  1034. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.hpp +1 -1
  1035. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_io_context.ipp +1 -1
  1036. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_serial_port_service.ipp +9 -1
  1037. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_iocp_socket_service_base.ipp +11 -11
  1038. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_mutex.ipp +1 -1
  1039. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_object_handle_service.ipp +5 -1
  1040. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_static_mutex.ipp +1 -1
  1041. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_thread.ipp +1 -1
  1042. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/win_tss_ptr.ipp +1 -1
  1043. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_ssocket_service_base.ipp +4 -4
  1044. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.hpp +1 -1
  1045. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winrt_timer_scheduler.ipp +1 -1
  1046. data/ext/couchbase/third_party/asio/asio/include/asio/detail/impl/winsock_init.ipp +1 -1
  1047. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_control.hpp +1 -1
  1048. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_object_impl.hpp +11 -2
  1049. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_read_at_op.hpp +3 -1
  1050. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_read_op.hpp +3 -1
  1051. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_service.hpp +26 -8
  1052. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_write_at_op.hpp +3 -1
  1053. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_descriptor_write_op.hpp +3 -1
  1054. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_file_service.hpp +12 -1
  1055. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_null_buffers_op.hpp +3 -1
  1056. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_operation.hpp +1 -1
  1057. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_service.hpp +2 -2
  1058. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_accept_op.hpp +5 -1
  1059. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_connect_op.hpp +3 -1
  1060. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recv_op.hpp +3 -1
  1061. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recvfrom_op.hpp +4 -2
  1062. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_recvmsg_op.hpp +3 -1
  1063. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_send_op.hpp +3 -1
  1064. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_sendto_op.hpp +3 -1
  1065. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_service.hpp +31 -13
  1066. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_socket_service_base.hpp +1 -1
  1067. data/ext/couchbase/third_party/asio/asio/include/asio/detail/io_uring_wait_op.hpp +3 -1
  1068. data/ext/couchbase/third_party/asio/asio/include/asio/detail/is_buffer_sequence.hpp +1 -1
  1069. data/ext/couchbase/third_party/asio/asio/include/asio/detail/is_executor.hpp +1 -1
  1070. data/ext/couchbase/third_party/asio/asio/include/asio/detail/keyword_tss_ptr.hpp +1 -1
  1071. data/ext/couchbase/third_party/asio/asio/include/asio/detail/kqueue_reactor.hpp +1 -1
  1072. data/ext/couchbase/third_party/asio/asio/include/asio/detail/local_free_on_block_exit.hpp +1 -1
  1073. data/ext/couchbase/third_party/asio/asio/include/asio/detail/macos_fenced_block.hpp +1 -1
  1074. data/ext/couchbase/third_party/asio/asio/include/asio/detail/memory.hpp +17 -1
  1075. data/ext/couchbase/third_party/asio/asio/include/asio/detail/mutex.hpp +1 -1
  1076. data/ext/couchbase/third_party/asio/asio/include/asio/detail/non_const_lvalue.hpp +1 -1
  1077. data/ext/couchbase/third_party/asio/asio/include/asio/detail/noncopyable.hpp +1 -1
  1078. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_event.hpp +1 -1
  1079. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_fenced_block.hpp +1 -1
  1080. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_global.hpp +1 -1
  1081. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_mutex.hpp +1 -1
  1082. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_reactor.hpp +1 -1
  1083. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_signal_blocker.hpp +1 -1
  1084. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_socket_service.hpp +1 -1
  1085. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_static_mutex.hpp +1 -1
  1086. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_thread.hpp +1 -1
  1087. data/ext/couchbase/third_party/asio/asio/include/asio/detail/null_tss_ptr.hpp +1 -1
  1088. data/ext/couchbase/third_party/asio/asio/include/asio/detail/object_pool.hpp +1 -1
  1089. data/ext/couchbase/third_party/asio/asio/include/asio/detail/old_win_sdk_compat.hpp +1 -1
  1090. data/ext/couchbase/third_party/asio/asio/include/asio/detail/op_queue.hpp +1 -1
  1091. data/ext/couchbase/third_party/asio/asio/include/asio/detail/operation.hpp +1 -1
  1092. data/ext/couchbase/third_party/asio/asio/include/asio/detail/pipe_select_interrupter.hpp +1 -1
  1093. data/ext/couchbase/third_party/asio/asio/include/asio/detail/pop_options.hpp +5 -1
  1094. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_event.hpp +1 -1
  1095. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_fd_set_adapter.hpp +1 -1
  1096. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_global.hpp +1 -1
  1097. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_mutex.hpp +1 -1
  1098. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_serial_port_service.hpp +2 -1
  1099. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_signal_blocker.hpp +1 -1
  1100. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_static_mutex.hpp +1 -1
  1101. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_thread.hpp +1 -1
  1102. data/ext/couchbase/third_party/asio/asio/include/asio/detail/posix_tss_ptr.hpp +1 -1
  1103. data/ext/couchbase/third_party/asio/asio/include/asio/detail/push_options.hpp +11 -2
  1104. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_descriptor_service.hpp +26 -7
  1105. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_null_buffers_op.hpp +1 -1
  1106. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_accept_op.hpp +5 -1
  1107. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_connect_op.hpp +3 -1
  1108. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recv_op.hpp +3 -1
  1109. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recvfrom_op.hpp +3 -1
  1110. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_recvmsg_op.hpp +3 -1
  1111. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_send_op.hpp +3 -1
  1112. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_sendto_op.hpp +3 -1
  1113. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_service.hpp +38 -12
  1114. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_socket_service_base.hpp +2 -3
  1115. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactive_wait_op.hpp +1 -1
  1116. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor.hpp +1 -1
  1117. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor_op.hpp +1 -1
  1118. data/ext/couchbase/third_party/asio/asio/include/asio/detail/reactor_op_queue.hpp +1 -1
  1119. data/ext/couchbase/third_party/asio/asio/include/asio/detail/recycling_allocator.hpp +1 -1
  1120. data/ext/couchbase/third_party/asio/asio/include/asio/detail/regex_fwd.hpp +1 -1
  1121. data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_endpoint_op.hpp +1 -1
  1122. data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_op.hpp +1 -1
  1123. data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolve_query_op.hpp +1 -1
  1124. data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolver_service.hpp +3 -1
  1125. data/ext/couchbase/third_party/asio/asio/include/asio/detail/resolver_service_base.hpp +1 -1
  1126. data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler.hpp +1 -1
  1127. data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_operation.hpp +1 -1
  1128. data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_task.hpp +1 -1
  1129. data/ext/couchbase/third_party/asio/asio/include/asio/detail/scheduler_thread_info.hpp +1 -1
  1130. data/ext/couchbase/third_party/asio/asio/include/asio/detail/scoped_lock.hpp +1 -1
  1131. data/ext/couchbase/third_party/asio/asio/include/asio/detail/scoped_ptr.hpp +1 -1
  1132. data/ext/couchbase/third_party/asio/asio/include/asio/detail/select_interrupter.hpp +1 -1
  1133. data/ext/couchbase/third_party/asio/asio/include/asio/detail/select_reactor.hpp +23 -1
  1134. data/ext/couchbase/third_party/asio/asio/include/asio/detail/service_registry.hpp +1 -1
  1135. data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_blocker.hpp +1 -1
  1136. data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_handler.hpp +1 -1
  1137. data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_init.hpp +1 -1
  1138. data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_op.hpp +5 -1
  1139. data/ext/couchbase/third_party/asio/asio/include/asio/detail/signal_set_service.hpp +43 -1
  1140. data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_holder.hpp +1 -1
  1141. data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_ops.hpp +37 -45
  1142. data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_option.hpp +1 -1
  1143. data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_select_interrupter.hpp +1 -1
  1144. data/ext/couchbase/third_party/asio/asio/include/asio/detail/socket_types.hpp +1 -1
  1145. data/ext/couchbase/third_party/asio/asio/include/asio/detail/solaris_fenced_block.hpp +1 -1
  1146. data/ext/couchbase/third_party/asio/asio/include/asio/detail/source_location.hpp +1 -1
  1147. data/ext/couchbase/third_party/asio/asio/include/asio/detail/static_mutex.hpp +1 -1
  1148. data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_event.hpp +1 -1
  1149. data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_fenced_block.hpp +1 -1
  1150. data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_global.hpp +1 -1
  1151. data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_mutex.hpp +1 -1
  1152. data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_static_mutex.hpp +1 -1
  1153. data/ext/couchbase/third_party/asio/asio/include/asio/detail/std_thread.hpp +1 -1
  1154. data/ext/couchbase/third_party/asio/asio/include/asio/detail/strand_executor_service.hpp +1 -1
  1155. data/ext/couchbase/third_party/asio/asio/include/asio/detail/strand_service.hpp +1 -1
  1156. data/ext/couchbase/third_party/asio/asio/include/asio/detail/string_view.hpp +1 -1
  1157. data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread.hpp +1 -1
  1158. data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_context.hpp +1 -1
  1159. data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_group.hpp +1 -1
  1160. data/ext/couchbase/third_party/asio/asio/include/asio/detail/thread_info_base.hpp +1 -1
  1161. data/ext/couchbase/third_party/asio/asio/include/asio/detail/throw_error.hpp +18 -9
  1162. data/ext/couchbase/third_party/asio/asio/include/asio/detail/throw_exception.hpp +7 -3
  1163. data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue.hpp +1 -1
  1164. data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_base.hpp +1 -1
  1165. data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_ptime.hpp +1 -1
  1166. data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_queue_set.hpp +1 -1
  1167. data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_scheduler.hpp +1 -1
  1168. data/ext/couchbase/third_party/asio/asio/include/asio/detail/timer_scheduler_fwd.hpp +1 -1
  1169. data/ext/couchbase/third_party/asio/asio/include/asio/detail/tss_ptr.hpp +1 -1
  1170. data/ext/couchbase/third_party/asio/asio/include/asio/detail/type_traits.hpp +9 -1
  1171. data/ext/couchbase/third_party/asio/asio/include/asio/detail/utility.hpp +84 -0
  1172. data/ext/couchbase/third_party/asio/asio/include/asio/detail/variadic_templates.hpp +1 -1
  1173. data/ext/couchbase/third_party/asio/asio/include/asio/detail/wait_handler.hpp +1 -1
  1174. data/ext/couchbase/third_party/asio/asio/include/asio/detail/wait_op.hpp +1 -1
  1175. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_event.hpp +1 -1
  1176. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_fd_set_adapter.hpp +1 -1
  1177. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_fenced_block.hpp +1 -1
  1178. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_global.hpp +1 -1
  1179. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_file_service.hpp +8 -1
  1180. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_read_op.hpp +3 -1
  1181. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_service.hpp +29 -1
  1182. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_handle_write_op.hpp +6 -2
  1183. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_io_context.hpp +1 -1
  1184. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_null_buffers_op.hpp +3 -1
  1185. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_operation.hpp +1 -1
  1186. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_op.hpp +6 -2
  1187. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_overlapped_ptr.hpp +1 -1
  1188. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_serial_port_service.hpp +2 -1
  1189. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_accept_op.hpp +5 -1
  1190. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_connect_op.hpp +3 -1
  1191. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recv_op.hpp +3 -1
  1192. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvfrom_op.hpp +3 -1
  1193. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_recvmsg_op.hpp +3 -1
  1194. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_send_op.hpp +3 -1
  1195. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_service.hpp +32 -8
  1196. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_socket_service_base.hpp +6 -8
  1197. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_thread_info.hpp +1 -1
  1198. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_iocp_wait_op.hpp +3 -1
  1199. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_mutex.hpp +1 -1
  1200. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_object_handle_service.hpp +1 -1
  1201. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_static_mutex.hpp +1 -1
  1202. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_thread.hpp +1 -1
  1203. data/ext/couchbase/third_party/asio/asio/include/asio/detail/win_tss_ptr.hpp +1 -1
  1204. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winapp_thread.hpp +1 -1
  1205. data/ext/couchbase/third_party/asio/asio/include/asio/detail/wince_thread.hpp +1 -1
  1206. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_async_manager.hpp +1 -1
  1207. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_async_op.hpp +1 -1
  1208. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_resolve_op.hpp +1 -1
  1209. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_resolver_service.hpp +1 -1
  1210. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_connect_op.hpp +1 -1
  1211. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_recv_op.hpp +1 -1
  1212. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_socket_send_op.hpp +1 -1
  1213. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_ssocket_service.hpp +1 -1
  1214. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_ssocket_service_base.hpp +1 -1
  1215. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_timer_scheduler.hpp +1 -1
  1216. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winrt_utils.hpp +1 -1
  1217. data/ext/couchbase/third_party/asio/asio/include/asio/detail/winsock_init.hpp +1 -1
  1218. data/ext/couchbase/third_party/asio/asio/include/asio/detail/work_dispatcher.hpp +4 -2
  1219. data/ext/couchbase/third_party/asio/asio/include/asio/detail/wrapped_handler.hpp +1 -1
  1220. data/ext/couchbase/third_party/asio/asio/include/asio/dispatch.hpp +126 -42
  1221. data/ext/couchbase/third_party/asio/asio/include/asio/error.hpp +36 -1
  1222. data/ext/couchbase/third_party/asio/asio/include/asio/error_code.hpp +1 -1
  1223. data/ext/couchbase/third_party/asio/asio/include/asio/execution/allocator.hpp +1 -1
  1224. data/ext/couchbase/third_party/asio/asio/include/asio/execution/any_executor.hpp +1 -1
  1225. data/ext/couchbase/third_party/asio/asio/include/asio/execution/bad_executor.hpp +1 -1
  1226. data/ext/couchbase/third_party/asio/asio/include/asio/execution/blocking.hpp +1 -1
  1227. data/ext/couchbase/third_party/asio/asio/include/asio/execution/blocking_adaptation.hpp +1 -1
  1228. data/ext/couchbase/third_party/asio/asio/include/asio/execution/bulk_execute.hpp +1 -1
  1229. data/ext/couchbase/third_party/asio/asio/include/asio/execution/bulk_guarantee.hpp +1 -1
  1230. data/ext/couchbase/third_party/asio/asio/include/asio/execution/connect.hpp +1 -1
  1231. data/ext/couchbase/third_party/asio/asio/include/asio/execution/context.hpp +1 -1
  1232. data/ext/couchbase/third_party/asio/asio/include/asio/execution/context_as.hpp +1 -1
  1233. data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_invocable.hpp +1 -1
  1234. data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_operation.hpp +1 -1
  1235. data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/as_receiver.hpp +1 -1
  1236. data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/bulk_sender.hpp +1 -1
  1237. data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/submit_receiver.hpp +1 -1
  1238. data/ext/couchbase/third_party/asio/asio/include/asio/execution/detail/void_receiver.hpp +1 -1
  1239. data/ext/couchbase/third_party/asio/asio/include/asio/execution/execute.hpp +1 -1
  1240. data/ext/couchbase/third_party/asio/asio/include/asio/execution/executor.hpp +1 -1
  1241. data/ext/couchbase/third_party/asio/asio/include/asio/execution/impl/bad_executor.ipp +1 -1
  1242. data/ext/couchbase/third_party/asio/asio/include/asio/execution/impl/receiver_invocation_error.ipp +1 -1
  1243. data/ext/couchbase/third_party/asio/asio/include/asio/execution/invocable_archetype.hpp +1 -1
  1244. data/ext/couchbase/third_party/asio/asio/include/asio/execution/mapping.hpp +1 -1
  1245. data/ext/couchbase/third_party/asio/asio/include/asio/execution/occupancy.hpp +1 -1
  1246. data/ext/couchbase/third_party/asio/asio/include/asio/execution/operation_state.hpp +1 -1
  1247. data/ext/couchbase/third_party/asio/asio/include/asio/execution/outstanding_work.hpp +1 -1
  1248. data/ext/couchbase/third_party/asio/asio/include/asio/execution/prefer_only.hpp +1 -1
  1249. data/ext/couchbase/third_party/asio/asio/include/asio/execution/receiver.hpp +1 -1
  1250. data/ext/couchbase/third_party/asio/asio/include/asio/execution/receiver_invocation_error.hpp +1 -1
  1251. data/ext/couchbase/third_party/asio/asio/include/asio/execution/relationship.hpp +1 -1
  1252. data/ext/couchbase/third_party/asio/asio/include/asio/execution/schedule.hpp +1 -1
  1253. data/ext/couchbase/third_party/asio/asio/include/asio/execution/scheduler.hpp +1 -1
  1254. data/ext/couchbase/third_party/asio/asio/include/asio/execution/sender.hpp +1 -1
  1255. data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_done.hpp +1 -1
  1256. data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_error.hpp +1 -1
  1257. data/ext/couchbase/third_party/asio/asio/include/asio/execution/set_value.hpp +1 -1
  1258. data/ext/couchbase/third_party/asio/asio/include/asio/execution/start.hpp +1 -1
  1259. data/ext/couchbase/third_party/asio/asio/include/asio/execution/submit.hpp +1 -1
  1260. data/ext/couchbase/third_party/asio/asio/include/asio/execution.hpp +1 -1
  1261. data/ext/couchbase/third_party/asio/asio/include/asio/execution_context.hpp +1 -1
  1262. data/ext/couchbase/third_party/asio/asio/include/asio/executor.hpp +1 -1
  1263. data/ext/couchbase/third_party/asio/asio/include/asio/executor_work_guard.hpp +100 -32
  1264. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/append.hpp +6 -41
  1265. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/as_single.hpp +6 -5
  1266. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/as_tuple.hpp +6 -101
  1267. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/awaitable_operators.hpp +14 -14
  1268. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/basic_channel.hpp +78 -2
  1269. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/basic_concurrent_channel.hpp +69 -2
  1270. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/cancellation_condition.hpp +1 -1
  1271. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel.hpp +1 -1
  1272. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel_error.hpp +1 -1
  1273. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/channel_traits.hpp +1 -1
  1274. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/co_spawn.hpp +12 -16
  1275. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/concurrent_channel.hpp +1 -1
  1276. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/coro.hpp +4 -4
  1277. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/coro_traits.hpp +2 -2
  1278. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/deferred.hpp +6 -575
  1279. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_handler.hpp +1 -1
  1280. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_message.hpp +1 -1
  1281. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_operation.hpp +1 -1
  1282. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_payload.hpp +1 -1
  1283. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_receive_op.hpp +1 -1
  1284. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_send_functions.hpp +2 -1
  1285. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_send_op.hpp +1 -1
  1286. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/channel_service.hpp +1 -1
  1287. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/completion_handler_erasure.hpp +82 -46
  1288. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/coro_promise_allocator.hpp +2 -2
  1289. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/has_signature.hpp +1 -1
  1290. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/impl/channel_service.hpp +6 -8
  1291. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/detail/partial_promise.hpp +2 -2
  1292. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/as_single.hpp +1 -1
  1293. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/channel_error.ipp +1 -1
  1294. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/coro.hpp +47 -56
  1295. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/parallel_group.hpp +14 -28
  1296. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/promise.hpp +2 -2
  1297. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/use_coro.hpp +3 -2
  1298. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/parallel_group.hpp +27 -37
  1299. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/prepend.hpp +6 -41
  1300. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/promise.hpp +23 -405
  1301. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/use_coro.hpp +5 -5
  1302. data/ext/couchbase/third_party/asio/asio/include/asio/file_base.hpp +9 -3
  1303. data/ext/couchbase/third_party/asio/asio/include/asio/generic/basic_endpoint.hpp +1 -1
  1304. data/ext/couchbase/third_party/asio/asio/include/asio/generic/datagram_protocol.hpp +1 -1
  1305. data/ext/couchbase/third_party/asio/asio/include/asio/generic/detail/endpoint.hpp +1 -1
  1306. data/ext/couchbase/third_party/asio/asio/include/asio/generic/detail/impl/endpoint.ipp +1 -1
  1307. data/ext/couchbase/third_party/asio/asio/include/asio/generic/raw_protocol.hpp +1 -1
  1308. data/ext/couchbase/third_party/asio/asio/include/asio/generic/seq_packet_protocol.hpp +1 -1
  1309. data/ext/couchbase/third_party/asio/asio/include/asio/generic/stream_protocol.hpp +1 -1
  1310. data/ext/couchbase/third_party/asio/asio/include/asio/handler_alloc_hook.hpp +1 -1
  1311. data/ext/couchbase/third_party/asio/asio/include/asio/handler_continuation_hook.hpp +1 -1
  1312. data/ext/couchbase/third_party/asio/asio/include/asio/handler_invoke_hook.hpp +1 -1
  1313. data/ext/couchbase/third_party/asio/asio/include/asio/high_resolution_timer.hpp +1 -1
  1314. data/ext/couchbase/third_party/asio/asio/include/asio/impl/any_io_executor.ipp +6 -1
  1315. data/ext/couchbase/third_party/asio/asio/include/asio/impl/append.hpp +216 -0
  1316. data/ext/couchbase/third_party/asio/asio/include/asio/impl/as_tuple.hpp +244 -0
  1317. data/ext/couchbase/third_party/asio/asio/include/asio/impl/awaitable.hpp +400 -5
  1318. data/ext/couchbase/third_party/asio/asio/include/asio/impl/buffered_read_stream.hpp +13 -3
  1319. data/ext/couchbase/third_party/asio/asio/include/asio/impl/buffered_write_stream.hpp +13 -3
  1320. data/ext/couchbase/third_party/asio/asio/include/asio/impl/cancellation_signal.ipp +1 -1
  1321. data/ext/couchbase/third_party/asio/asio/include/asio/impl/co_spawn.hpp +71 -7
  1322. data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect.hpp +63 -31
  1323. data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect_pipe.hpp +1 -1
  1324. data/ext/couchbase/third_party/asio/asio/include/asio/impl/connect_pipe.ipp +2 -2
  1325. data/ext/couchbase/third_party/asio/asio/include/asio/impl/defer.hpp +23 -13
  1326. data/ext/couchbase/third_party/asio/asio/include/asio/impl/deferred.hpp +95 -0
  1327. data/ext/couchbase/third_party/asio/asio/include/asio/impl/detached.hpp +1 -1
  1328. data/ext/couchbase/third_party/asio/asio/include/asio/impl/dispatch.hpp +23 -13
  1329. data/ext/couchbase/third_party/asio/asio/include/asio/impl/error.ipp +1 -1
  1330. data/ext/couchbase/third_party/asio/asio/include/asio/impl/error_code.ipp +1 -1
  1331. data/ext/couchbase/third_party/asio/asio/include/asio/impl/execution_context.hpp +1 -1
  1332. data/ext/couchbase/third_party/asio/asio/include/asio/impl/execution_context.ipp +1 -1
  1333. data/ext/couchbase/third_party/asio/asio/include/asio/impl/executor.hpp +1 -1
  1334. data/ext/couchbase/third_party/asio/asio/include/asio/impl/executor.ipp +1 -1
  1335. data/ext/couchbase/third_party/asio/asio/include/asio/impl/handler_alloc_hook.ipp +1 -1
  1336. data/ext/couchbase/third_party/asio/asio/include/asio/impl/io_context.hpp +9 -3
  1337. data/ext/couchbase/third_party/asio/asio/include/asio/impl/io_context.ipp +1 -1
  1338. data/ext/couchbase/third_party/asio/asio/include/asio/impl/multiple_exceptions.ipp +1 -1
  1339. data/ext/couchbase/third_party/asio/asio/include/asio/impl/post.hpp +23 -13
  1340. data/ext/couchbase/third_party/asio/asio/include/asio/impl/prepend.hpp +216 -0
  1341. data/ext/couchbase/third_party/asio/asio/include/asio/impl/read.hpp +97 -51
  1342. data/ext/couchbase/third_party/asio/asio/include/asio/impl/read_at.hpp +51 -31
  1343. data/ext/couchbase/third_party/asio/asio/include/asio/impl/read_until.hpp +119 -59
  1344. data/ext/couchbase/third_party/asio/asio/include/asio/impl/redirect_error.hpp +1 -1
  1345. data/ext/couchbase/third_party/asio/asio/include/asio/impl/serial_port_base.hpp +1 -1
  1346. data/ext/couchbase/third_party/asio/asio/include/asio/impl/serial_port_base.ipp +1 -1
  1347. data/ext/couchbase/third_party/asio/asio/include/asio/impl/spawn.hpp +1321 -277
  1348. data/ext/couchbase/third_party/asio/asio/include/asio/impl/src.hpp +1 -1
  1349. data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_context.hpp +1 -1
  1350. data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_context.ipp +1 -1
  1351. data/ext/couchbase/third_party/asio/asio/include/asio/impl/system_executor.hpp +1 -1
  1352. data/ext/couchbase/third_party/asio/asio/include/asio/impl/thread_pool.hpp +1 -1
  1353. data/ext/couchbase/third_party/asio/asio/include/asio/impl/thread_pool.ipp +1 -1
  1354. data/ext/couchbase/third_party/asio/asio/include/asio/impl/use_awaitable.hpp +18 -8
  1355. data/ext/couchbase/third_party/asio/asio/include/asio/impl/use_future.hpp +1 -1
  1356. data/ext/couchbase/third_party/asio/asio/include/asio/impl/write.hpp +95 -50
  1357. data/ext/couchbase/third_party/asio/asio/include/asio/impl/write_at.hpp +53 -31
  1358. data/ext/couchbase/third_party/asio/asio/include/asio/io_context.hpp +25 -38
  1359. data/ext/couchbase/third_party/asio/asio/include/asio/io_context_strand.hpp +15 -3
  1360. data/ext/couchbase/third_party/asio/asio/include/asio/io_service.hpp +1 -1
  1361. data/ext/couchbase/third_party/asio/asio/include/asio/io_service_strand.hpp +1 -1
  1362. data/ext/couchbase/third_party/asio/asio/include/asio/ip/address.hpp +1 -1
  1363. data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4.hpp +75 -1
  1364. data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4_iterator.hpp +1 -1
  1365. data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v4_range.hpp +1 -1
  1366. data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6.hpp +35 -1
  1367. data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6_iterator.hpp +1 -1
  1368. data/ext/couchbase/third_party/asio/asio/include/asio/ip/address_v6_range.hpp +1 -1
  1369. data/ext/couchbase/third_party/asio/asio/include/asio/ip/bad_address_cast.hpp +1 -1
  1370. data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_endpoint.hpp +1 -1
  1371. data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver.hpp +130 -64
  1372. data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_entry.hpp +1 -1
  1373. data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_iterator.hpp +1 -1
  1374. data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_query.hpp +1 -1
  1375. data/ext/couchbase/third_party/asio/asio/include/asio/ip/basic_resolver_results.hpp +1 -1
  1376. data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/endpoint.hpp +1 -1
  1377. data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/impl/endpoint.ipp +1 -1
  1378. data/ext/couchbase/third_party/asio/asio/include/asio/ip/detail/socket_option.hpp +1 -1
  1379. data/ext/couchbase/third_party/asio/asio/include/asio/ip/host_name.hpp +1 -1
  1380. data/ext/couchbase/third_party/asio/asio/include/asio/ip/icmp.hpp +1 -1
  1381. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address.hpp +1 -1
  1382. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address.ipp +1 -1
  1383. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v4.hpp +1 -1
  1384. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v4.ipp +1 -1
  1385. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v6.hpp +1 -1
  1386. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/address_v6.ipp +1 -1
  1387. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/basic_endpoint.hpp +1 -1
  1388. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/host_name.ipp +1 -1
  1389. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v4.hpp +1 -1
  1390. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v4.ipp +1 -1
  1391. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v6.hpp +1 -1
  1392. data/ext/couchbase/third_party/asio/asio/include/asio/ip/impl/network_v6.ipp +1 -1
  1393. data/ext/couchbase/third_party/asio/asio/include/asio/ip/multicast.hpp +1 -1
  1394. data/ext/couchbase/third_party/asio/asio/include/asio/ip/network_v4.hpp +1 -1
  1395. data/ext/couchbase/third_party/asio/asio/include/asio/ip/network_v6.hpp +1 -1
  1396. data/ext/couchbase/third_party/asio/asio/include/asio/ip/resolver_base.hpp +1 -1
  1397. data/ext/couchbase/third_party/asio/asio/include/asio/ip/resolver_query_base.hpp +1 -1
  1398. data/ext/couchbase/third_party/asio/asio/include/asio/ip/tcp.hpp +1 -1
  1399. data/ext/couchbase/third_party/asio/asio/include/asio/ip/udp.hpp +1 -1
  1400. data/ext/couchbase/third_party/asio/asio/include/asio/ip/unicast.hpp +1 -1
  1401. data/ext/couchbase/third_party/asio/asio/include/asio/ip/v6_only.hpp +2 -2
  1402. data/ext/couchbase/third_party/asio/asio/include/asio/is_applicable_property.hpp +1 -1
  1403. data/ext/couchbase/third_party/asio/asio/include/asio/is_contiguous_iterator.hpp +45 -0
  1404. data/ext/couchbase/third_party/asio/asio/include/asio/is_executor.hpp +1 -1
  1405. data/ext/couchbase/third_party/asio/asio/include/asio/is_read_buffered.hpp +1 -1
  1406. data/ext/couchbase/third_party/asio/asio/include/asio/is_write_buffered.hpp +1 -1
  1407. data/ext/couchbase/third_party/asio/asio/include/asio/local/basic_endpoint.hpp +1 -1
  1408. data/ext/couchbase/third_party/asio/asio/include/asio/local/connect_pair.hpp +1 -1
  1409. data/ext/couchbase/third_party/asio/asio/include/asio/local/datagram_protocol.hpp +1 -1
  1410. data/ext/couchbase/third_party/asio/asio/include/asio/local/detail/endpoint.hpp +1 -1
  1411. data/ext/couchbase/third_party/asio/asio/include/asio/local/detail/impl/endpoint.ipp +1 -1
  1412. data/ext/couchbase/third_party/asio/asio/include/asio/local/stream_protocol.hpp +1 -1
  1413. data/ext/couchbase/third_party/asio/asio/include/asio/multiple_exceptions.hpp +1 -1
  1414. data/ext/couchbase/third_party/asio/asio/include/asio/packaged_task.hpp +1 -1
  1415. data/ext/couchbase/third_party/asio/asio/include/asio/placeholders.hpp +1 -1
  1416. data/ext/couchbase/third_party/asio/asio/include/asio/posix/basic_descriptor.hpp +74 -13
  1417. data/ext/couchbase/third_party/asio/asio/include/asio/posix/basic_stream_descriptor.hpp +95 -27
  1418. data/ext/couchbase/third_party/asio/asio/include/asio/posix/descriptor.hpp +1 -1
  1419. data/ext/couchbase/third_party/asio/asio/include/asio/posix/descriptor_base.hpp +1 -1
  1420. data/ext/couchbase/third_party/asio/asio/include/asio/posix/stream_descriptor.hpp +1 -1
  1421. data/ext/couchbase/third_party/asio/asio/include/asio/post.hpp +128 -42
  1422. data/ext/couchbase/third_party/asio/asio/include/asio/prefer.hpp +1 -1
  1423. data/ext/couchbase/third_party/asio/asio/include/asio/prepend.hpp +78 -0
  1424. data/ext/couchbase/third_party/asio/asio/include/asio/query.hpp +1 -1
  1425. data/ext/couchbase/third_party/asio/asio/include/asio/random_access_file.hpp +1 -1
  1426. data/ext/couchbase/third_party/asio/asio/include/asio/read.hpp +245 -153
  1427. data/ext/couchbase/third_party/asio/asio/include/asio/read_at.hpp +110 -53
  1428. data/ext/couchbase/third_party/asio/asio/include/asio/read_until.hpp +301 -166
  1429. data/ext/couchbase/third_party/asio/asio/include/asio/readable_pipe.hpp +1 -1
  1430. data/ext/couchbase/third_party/asio/asio/include/asio/recycling_allocator.hpp +138 -0
  1431. data/ext/couchbase/third_party/asio/asio/include/asio/redirect_error.hpp +3 -3
  1432. data/ext/couchbase/third_party/asio/asio/include/asio/registered_buffer.hpp +1 -1
  1433. data/ext/couchbase/third_party/asio/asio/include/asio/require.hpp +1 -1
  1434. data/ext/couchbase/third_party/asio/asio/include/asio/require_concept.hpp +1 -1
  1435. data/ext/couchbase/third_party/asio/asio/include/asio/serial_port.hpp +1 -1
  1436. data/ext/couchbase/third_party/asio/asio/include/asio/serial_port_base.hpp +1 -1
  1437. data/ext/couchbase/third_party/asio/asio/include/asio/signal_set.hpp +1 -1
  1438. data/ext/couchbase/third_party/asio/asio/include/asio/socket_base.hpp +1 -1
  1439. data/ext/couchbase/third_party/asio/asio/include/asio/spawn.hpp +647 -87
  1440. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/context.hpp +4 -1
  1441. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/context_base.hpp +1 -1
  1442. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/buffered_handshake_op.hpp +1 -1
  1443. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/engine.hpp +4 -1
  1444. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/handshake_op.hpp +1 -1
  1445. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/impl/engine.ipp +19 -1
  1446. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/impl/openssl_init.ipp +7 -3
  1447. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/io.hpp +1 -1
  1448. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/openssl_init.hpp +1 -1
  1449. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/openssl_types.hpp +1 -1
  1450. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/password_callback.hpp +1 -1
  1451. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/read_op.hpp +1 -1
  1452. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/shutdown_op.hpp +1 -1
  1453. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/stream_core.hpp +16 -1
  1454. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/verify_callback.hpp +1 -1
  1455. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/detail/write_op.hpp +1 -1
  1456. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/error.hpp +1 -1
  1457. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/host_name_verification.hpp +1 -1
  1458. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/context.hpp +1 -1
  1459. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/context.ipp +140 -64
  1460. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/error.ipp +25 -3
  1461. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/host_name_verification.ipp +1 -1
  1462. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/rfc2818_verification.ipp +1 -1
  1463. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/impl/src.hpp +1 -1
  1464. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/rfc2818_verification.hpp +1 -1
  1465. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/stream.hpp +154 -53
  1466. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/stream_base.hpp +1 -1
  1467. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/verify_context.hpp +1 -1
  1468. data/ext/couchbase/third_party/asio/asio/include/asio/ssl/verify_mode.hpp +1 -1
  1469. data/ext/couchbase/third_party/asio/asio/include/asio/ssl.hpp +1 -1
  1470. data/ext/couchbase/third_party/asio/asio/include/asio/static_thread_pool.hpp +1 -1
  1471. data/ext/couchbase/third_party/asio/asio/include/asio/steady_timer.hpp +1 -1
  1472. data/ext/couchbase/third_party/asio/asio/include/asio/strand.hpp +12 -1
  1473. data/ext/couchbase/third_party/asio/asio/include/asio/stream_file.hpp +1 -1
  1474. data/ext/couchbase/third_party/asio/asio/include/asio/streambuf.hpp +1 -1
  1475. data/ext/couchbase/third_party/asio/asio/include/asio/system_context.hpp +1 -1
  1476. data/ext/couchbase/third_party/asio/asio/include/asio/system_error.hpp +1 -1
  1477. data/ext/couchbase/third_party/asio/asio/include/asio/system_executor.hpp +1 -1
  1478. data/ext/couchbase/third_party/asio/asio/include/asio/system_timer.hpp +1 -1
  1479. data/ext/couchbase/third_party/asio/asio/include/asio/this_coro.hpp +4 -4
  1480. data/ext/couchbase/third_party/asio/asio/include/asio/thread.hpp +1 -1
  1481. data/ext/couchbase/third_party/asio/asio/include/asio/thread_pool.hpp +1 -1
  1482. data/ext/couchbase/third_party/asio/asio/include/asio/time_traits.hpp +1 -1
  1483. data/ext/couchbase/third_party/asio/asio/include/asio/traits/bulk_execute_free.hpp +1 -1
  1484. data/ext/couchbase/third_party/asio/asio/include/asio/traits/bulk_execute_member.hpp +1 -1
  1485. data/ext/couchbase/third_party/asio/asio/include/asio/traits/connect_free.hpp +1 -1
  1486. data/ext/couchbase/third_party/asio/asio/include/asio/traits/connect_member.hpp +1 -1
  1487. data/ext/couchbase/third_party/asio/asio/include/asio/traits/equality_comparable.hpp +1 -1
  1488. data/ext/couchbase/third_party/asio/asio/include/asio/traits/execute_free.hpp +1 -1
  1489. data/ext/couchbase/third_party/asio/asio/include/asio/traits/execute_member.hpp +1 -1
  1490. data/ext/couchbase/third_party/asio/asio/include/asio/traits/prefer_free.hpp +1 -1
  1491. data/ext/couchbase/third_party/asio/asio/include/asio/traits/prefer_member.hpp +1 -1
  1492. data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_free.hpp +1 -1
  1493. data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_member.hpp +1 -1
  1494. data/ext/couchbase/third_party/asio/asio/include/asio/traits/query_static_constexpr_member.hpp +1 -1
  1495. data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_concept_free.hpp +1 -1
  1496. data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_concept_member.hpp +1 -1
  1497. data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_free.hpp +1 -1
  1498. data/ext/couchbase/third_party/asio/asio/include/asio/traits/require_member.hpp +1 -1
  1499. data/ext/couchbase/third_party/asio/asio/include/asio/traits/schedule_free.hpp +1 -1
  1500. data/ext/couchbase/third_party/asio/asio/include/asio/traits/schedule_member.hpp +1 -1
  1501. data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_done_free.hpp +1 -1
  1502. data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_done_member.hpp +1 -1
  1503. data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_error_free.hpp +1 -1
  1504. data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_error_member.hpp +1 -1
  1505. data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_value_free.hpp +1 -1
  1506. data/ext/couchbase/third_party/asio/asio/include/asio/traits/set_value_member.hpp +1 -1
  1507. data/ext/couchbase/third_party/asio/asio/include/asio/traits/start_free.hpp +1 -1
  1508. data/ext/couchbase/third_party/asio/asio/include/asio/traits/start_member.hpp +1 -1
  1509. data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_query.hpp +1 -1
  1510. data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_require.hpp +1 -1
  1511. data/ext/couchbase/third_party/asio/asio/include/asio/traits/static_require_concept.hpp +1 -1
  1512. data/ext/couchbase/third_party/asio/asio/include/asio/traits/submit_free.hpp +1 -1
  1513. data/ext/couchbase/third_party/asio/asio/include/asio/traits/submit_member.hpp +1 -1
  1514. data/ext/couchbase/third_party/asio/asio/include/asio/ts/buffer.hpp +1 -1
  1515. data/ext/couchbase/third_party/asio/asio/include/asio/ts/executor.hpp +1 -1
  1516. data/ext/couchbase/third_party/asio/asio/include/asio/ts/internet.hpp +1 -1
  1517. data/ext/couchbase/third_party/asio/asio/include/asio/ts/io_context.hpp +1 -1
  1518. data/ext/couchbase/third_party/asio/asio/include/asio/ts/net.hpp +1 -1
  1519. data/ext/couchbase/third_party/asio/asio/include/asio/ts/netfwd.hpp +1 -1
  1520. data/ext/couchbase/third_party/asio/asio/include/asio/ts/socket.hpp +1 -1
  1521. data/ext/couchbase/third_party/asio/asio/include/asio/ts/timer.hpp +1 -1
  1522. data/ext/couchbase/third_party/asio/asio/include/asio/unyield.hpp +1 -1
  1523. data/ext/couchbase/third_party/asio/asio/include/asio/use_awaitable.hpp +4 -3
  1524. data/ext/couchbase/third_party/asio/asio/include/asio/use_future.hpp +10 -7
  1525. data/ext/couchbase/third_party/asio/asio/include/asio/uses_executor.hpp +1 -1
  1526. data/ext/couchbase/third_party/asio/asio/include/asio/version.hpp +2 -2
  1527. data/ext/couchbase/third_party/asio/asio/include/asio/wait_traits.hpp +1 -1
  1528. data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_object_handle.hpp +70 -12
  1529. data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_overlapped_handle.hpp +100 -1
  1530. data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_random_access_handle.hpp +98 -29
  1531. data/ext/couchbase/third_party/asio/asio/include/asio/windows/basic_stream_handle.hpp +95 -28
  1532. data/ext/couchbase/third_party/asio/asio/include/asio/windows/object_handle.hpp +1 -1
  1533. data/ext/couchbase/third_party/asio/asio/include/asio/windows/overlapped_handle.hpp +1 -1
  1534. data/ext/couchbase/third_party/asio/asio/include/asio/windows/overlapped_ptr.hpp +1 -1
  1535. data/ext/couchbase/third_party/asio/asio/include/asio/windows/random_access_handle.hpp +1 -1
  1536. data/ext/couchbase/third_party/asio/asio/include/asio/windows/stream_handle.hpp +1 -1
  1537. data/ext/couchbase/third_party/asio/asio/include/asio/writable_pipe.hpp +1 -1
  1538. data/ext/couchbase/third_party/asio/asio/include/asio/write.hpp +242 -150
  1539. data/ext/couchbase/third_party/asio/asio/include/asio/write_at.hpp +112 -53
  1540. data/ext/couchbase/third_party/asio/asio/include/asio/yield.hpp +1 -1
  1541. data/ext/couchbase/third_party/asio/asio/include/asio.hpp +8 -1
  1542. data/ext/couchbase/third_party/expected/COPYING +121 -0
  1543. data/ext/couchbase/third_party/expected/include/tl/expected.hpp +2571 -0
  1544. data/ext/couchbase/third_party/json/CMakeLists.txt +3 -0
  1545. data/ext/couchbase/third_party/json/external/PEGTL/LICENSE +1 -1
  1546. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/apply_mode.hpp +1 -1
  1547. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/argv_input.hpp +1 -1
  1548. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/ascii.hpp +1 -1
  1549. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/buffer_input.hpp +2 -2
  1550. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action.hpp +1 -1
  1551. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action_and_state.hpp +1 -1
  1552. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_action_and_states.hpp +1 -1
  1553. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_control.hpp +1 -1
  1554. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_state.hpp +1 -1
  1555. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/change_states.hpp +1 -1
  1556. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/config.hpp +1 -1
  1557. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/abnf.hpp +1 -1
  1558. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/add_state.hpp +1 -1
  1559. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/alphabet.hpp +1 -1
  1560. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/analyze.hpp +1 -1
  1561. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/analyze_traits.hpp +1 -1
  1562. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/check_bytes.hpp +1 -1
  1563. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/control_action.hpp +13 -1
  1564. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/coverage.hpp +1 -1
  1565. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/forward.hpp +1 -1
  1566. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/function.hpp +1 -1
  1567. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/http.hpp +1 -1
  1568. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/internal.hpp +1 -1
  1569. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf16.hpp +1 -1
  1570. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf32.hpp +1 -1
  1571. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/icu/utf8.hpp +1 -1
  1572. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/if_then.hpp +1 -1
  1573. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/instantiate.hpp +1 -1
  1574. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/integer.hpp +1 -1
  1575. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian.hpp +1 -1
  1576. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian_gcc.hpp +1 -1
  1577. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/endian_win.hpp +1 -1
  1578. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint.hpp +1 -1
  1579. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_mask_uint8.hpp +1 -1
  1580. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_uint.hpp +1 -1
  1581. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_uint8.hpp +1 -1
  1582. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_utf16.hpp +1 -1
  1583. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/peek_utf32.hpp +1 -1
  1584. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/read_uint.hpp +1 -1
  1585. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/set_stack_guard.hpp +1 -1
  1586. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/internal/vector_stack_guard.hpp +1 -1
  1587. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/iri.hpp +1 -1
  1588. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/json.hpp +1 -1
  1589. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/json_pointer.hpp +1 -1
  1590. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/limit_bytes.hpp +1 -1
  1591. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/limit_depth.hpp +1 -1
  1592. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/parse_tree.hpp +17 -8
  1593. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/parse_tree_to_dot.hpp +1 -1
  1594. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/peg.hpp +1 -1
  1595. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/predicates.hpp +1 -1
  1596. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/print.hpp +1 -1
  1597. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/print_coverage.hpp +1 -1
  1598. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/proto3.hpp +1 -1
  1599. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/raw_string.hpp +1 -1
  1600. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/remove_first_state.hpp +1 -1
  1601. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/remove_last_states.hpp +1 -1
  1602. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/rep_one_min_max.hpp +1 -1
  1603. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/rep_string.hpp +1 -1
  1604. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp +1 -1
  1605. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/shuffle_states.hpp +1 -1
  1606. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/state_control.hpp +1 -1
  1607. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/to_string.hpp +1 -1
  1608. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/trace.hpp +1 -1
  1609. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint16.hpp +1 -1
  1610. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint32.hpp +1 -1
  1611. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint64.hpp +1 -1
  1612. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uint8.hpp +1 -1
  1613. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/unescape.hpp +1 -1
  1614. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uri.hpp +1 -1
  1615. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/utf16.hpp +1 -1
  1616. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/contrib/utf32.hpp +1 -1
  1617. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/cstream_input.hpp +1 -1
  1618. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/demangle.hpp +19 -11
  1619. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/disable_action.hpp +1 -1
  1620. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input.hpp +1 -1
  1621. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input_on_failure.hpp +1 -1
  1622. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/discard_input_on_success.hpp +1 -1
  1623. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/enable_action.hpp +1 -1
  1624. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/eol.hpp +1 -1
  1625. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/eol_pair.hpp +1 -1
  1626. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/file_input.hpp +1 -1
  1627. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/action.hpp +1 -1
  1628. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/action_input.hpp +1 -1
  1629. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/any.hpp +1 -1
  1630. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply.hpp +1 -1
  1631. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply0.hpp +1 -1
  1632. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply0_single.hpp +1 -1
  1633. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/apply_single.hpp +1 -1
  1634. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/at.hpp +1 -1
  1635. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bof.hpp +1 -1
  1636. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bol.hpp +1 -1
  1637. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bump.hpp +1 -1
  1638. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bump_help.hpp +1 -1
  1639. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/bytes.hpp +1 -1
  1640. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/control.hpp +1 -1
  1641. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cr_crlf_eol.hpp +1 -1
  1642. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cr_eol.hpp +1 -1
  1643. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/crlf_eol.hpp +1 -1
  1644. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cstream_reader.hpp +1 -1
  1645. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/cstring_reader.hpp +1 -1
  1646. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/dependent_false.hpp +1 -1
  1647. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/disable.hpp +1 -1
  1648. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/discard.hpp +1 -1
  1649. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/enable.hpp +1 -1
  1650. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/enable_control.hpp +1 -1
  1651. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eof.hpp +1 -1
  1652. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eol.hpp +1 -1
  1653. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/eolf.hpp +1 -1
  1654. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/failure.hpp +1 -1
  1655. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_mapper_posix.hpp +1 -1
  1656. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_mapper_win32.hpp +1 -1
  1657. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/file_reader.hpp +1 -1
  1658. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/filesystem.hpp +1 -1
  1659. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_apply.hpp +1 -1
  1660. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_apply0.hpp +1 -1
  1661. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_match.hpp +1 -1
  1662. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/has_unwind.hpp +1 -1
  1663. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/identifier.hpp +1 -1
  1664. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_apply.hpp +1 -1
  1665. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_must.hpp +1 -1
  1666. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_must_else.hpp +1 -1
  1667. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/if_then_else.hpp +1 -1
  1668. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/input_pair.hpp +1 -1
  1669. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/istream_reader.hpp +1 -1
  1670. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/istring.hpp +1 -1
  1671. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/iterator.hpp +1 -1
  1672. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/lf_crlf_eol.hpp +1 -1
  1673. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/lf_eol.hpp +1 -1
  1674. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list.hpp +1 -1
  1675. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_must.hpp +1 -1
  1676. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_tail.hpp +1 -1
  1677. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/list_tail_pad.hpp +1 -1
  1678. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/marker.hpp +1 -1
  1679. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/minus.hpp +1 -1
  1680. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/missing_apply.hpp +1 -1
  1681. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/missing_apply0.hpp +1 -1
  1682. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/must.hpp +1 -1
  1683. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/not_at.hpp +1 -1
  1684. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/one.hpp +1 -1
  1685. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/opt.hpp +1 -1
  1686. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pad.hpp +1 -1
  1687. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pad_opt.hpp +1 -1
  1688. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/path_to_string.hpp +1 -1
  1689. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/peek_char.hpp +1 -1
  1690. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/peek_utf8.hpp +1 -1
  1691. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/pegtl_string.hpp +1 -1
  1692. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/plus.hpp +1 -1
  1693. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/raise.hpp +1 -1
  1694. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/range.hpp +1 -1
  1695. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/ranges.hpp +1 -1
  1696. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rematch.hpp +1 -1
  1697. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep.hpp +1 -1
  1698. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_min.hpp +1 -1
  1699. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_min_max.hpp +1 -1
  1700. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rep_opt.hpp +1 -1
  1701. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/require.hpp +1 -1
  1702. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/result_on_found.hpp +1 -1
  1703. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/rules.hpp +1 -1
  1704. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/seq.hpp +1 -1
  1705. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/sor.hpp +1 -1
  1706. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/star.hpp +1 -1
  1707. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/star_must.hpp +1 -1
  1708. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/state.hpp +1 -1
  1709. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/string.hpp +1 -1
  1710. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/success.hpp +1 -1
  1711. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/try_catch_type.hpp +1 -1
  1712. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/until.hpp +1 -1
  1713. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/istream_input.hpp +1 -1
  1714. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/match.hpp +1 -1
  1715. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/memory_input.hpp +1 -1
  1716. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/mmap_input.hpp +1 -1
  1717. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/must_if.hpp +1 -1
  1718. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/normal.hpp +1 -1
  1719. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/nothing.hpp +1 -1
  1720. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/parse.hpp +1 -1
  1721. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/parse_error.hpp +1 -1
  1722. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/position.hpp +1 -1
  1723. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/read_input.hpp +1 -1
  1724. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/require_apply.hpp +1 -1
  1725. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/require_apply0.hpp +1 -1
  1726. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/rewind_mode.hpp +1 -1
  1727. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/rules.hpp +1 -1
  1728. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/string_input.hpp +1 -1
  1729. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/tracking_mode.hpp +1 -1
  1730. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/type_list.hpp +1 -1
  1731. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/utf8.hpp +1 -1
  1732. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/version.hpp +2 -2
  1733. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/visit.hpp +1 -1
  1734. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl.hpp +1 -1
  1735. data/ext/couchbase/third_party/json/include/tao/json/binary_view.hpp +14 -0
  1736. data/ext/couchbase/third_party/json/include/tao/json/contrib/from_nlohmann.hpp +67 -0
  1737. data/ext/couchbase/third_party/json/include/tao/json/contrib/to_nlohmann.hpp +122 -0
  1738. data/ext/couchbase/third_party/json/include/tao/json/events/capture.hpp +482 -0
  1739. data/ext/couchbase/third_party/json/include/tao/json/events/from_value.hpp +3 -3
  1740. data/ext/couchbase/third_party/json/include/tao/json/events/produce.hpp +3 -95
  1741. data/ext/couchbase/third_party/json/include/tao/json/events/set_value.hpp +142 -0
  1742. data/ext/couchbase/third_party/json/include/tao/json/events/to_value.hpp +5 -112
  1743. data/ext/couchbase/third_party/json/include/tao/json/events/virtualize.hpp +27 -0
  1744. data/ext/couchbase/third_party/json/include/tao/json/events.hpp +3 -0
  1745. data/ext/couchbase/third_party/json/include/tao/json/traits.hpp +1 -1
  1746. data/ext/couchbase.cxx +2391 -1597
  1747. data/ext/extconf.rb +2 -0
  1748. data/ext/revisions.rb +2 -2
  1749. data/lib/couchbase/bucket.rb +2 -2
  1750. data/lib/couchbase/cluster.rb +12 -6
  1751. data/lib/couchbase/cluster_registry.rb +44 -0
  1752. data/lib/couchbase/collection.rb +61 -35
  1753. data/lib/couchbase/collection_options.rb +51 -95
  1754. data/lib/couchbase/config_profiles.rb +55 -0
  1755. data/lib/couchbase/logger.rb +44 -1
  1756. data/lib/couchbase/management/analytics_index_manager.rb +12 -12
  1757. data/lib/couchbase/management/query_index_manager.rb +5 -7
  1758. data/lib/couchbase/management/user_manager.rb +19 -0
  1759. data/lib/couchbase/options.rb +404 -56
  1760. data/lib/couchbase/query_options.rb +4 -4
  1761. data/lib/couchbase/scope.rb +3 -3
  1762. data/lib/couchbase/search_options.rb +7 -8
  1763. data/lib/couchbase/utils/generic_logger_adapter.rb +38 -0
  1764. data/lib/couchbase/utils/stdlib_logger_adapter.rb +65 -0
  1765. data/lib/couchbase/utils/time.rb +6 -6
  1766. data/lib/couchbase/version.rb +4 -18
  1767. metadata +880 -464
  1768. data/ext/couchbase/couchbase/analytics_scan_consistency.hxx +0 -26
  1769. data/ext/couchbase/couchbase/capella_ca.hxx +0 -43
  1770. data/ext/couchbase/couchbase/cas_fmt.hxx +0 -37
  1771. data/ext/couchbase/couchbase/cluster.cxx +0 -111
  1772. data/ext/couchbase/couchbase/cluster_options.cxx +0 -45
  1773. data/ext/couchbase/couchbase/crypto/CMakeLists.txt +0 -12
  1774. data/ext/couchbase/couchbase/crypto/cbcrypto.cc +0 -887
  1775. data/ext/couchbase/couchbase/crypto/cbcrypto.h +0 -88
  1776. data/ext/couchbase/couchbase/design_document_namespace.hxx +0 -26
  1777. data/ext/couchbase/couchbase/design_document_namespace_fmt.hxx +0 -47
  1778. data/ext/couchbase/couchbase/diagnostics.hxx +0 -97
  1779. data/ext/couchbase/couchbase/diagnostics_fmt.hxx +0 -113
  1780. data/ext/couchbase/couchbase/diagnostics_json.hxx +0 -100
  1781. data/ext/couchbase/couchbase/document_id.cxx +0 -89
  1782. data/ext/couchbase/couchbase/document_id.hxx +0 -102
  1783. data/ext/couchbase/couchbase/document_id_fmt.hxx +0 -37
  1784. data/ext/couchbase/couchbase/error_context/analytics.hxx +0 -51
  1785. data/ext/couchbase/couchbase/error_context/http.hxx +0 -47
  1786. data/ext/couchbase/couchbase/error_context/key_value.hxx +0 -50
  1787. data/ext/couchbase/couchbase/error_context/query.hxx +0 -51
  1788. data/ext/couchbase/couchbase/error_context/search.hxx +0 -50
  1789. data/ext/couchbase/couchbase/error_context/view.hxx +0 -51
  1790. data/ext/couchbase/couchbase/errors.hxx +0 -1038
  1791. data/ext/couchbase/couchbase/io/CMakeLists.txt +0 -12
  1792. data/ext/couchbase/couchbase/io/dns_client.hxx +0 -217
  1793. data/ext/couchbase/couchbase/io/dns_codec.hxx +0 -206
  1794. data/ext/couchbase/couchbase/io/dns_config.hxx +0 -115
  1795. data/ext/couchbase/couchbase/io/dns_message.hxx +0 -555
  1796. data/ext/couchbase/couchbase/io/http_command.hxx +0 -174
  1797. data/ext/couchbase/couchbase/io/http_context.hxx +0 -40
  1798. data/ext/couchbase/couchbase/io/http_message.hxx +0 -116
  1799. data/ext/couchbase/couchbase/io/http_parser.cxx +0 -141
  1800. data/ext/couchbase/couchbase/io/http_parser.hxx +0 -55
  1801. data/ext/couchbase/couchbase/io/http_session.hxx +0 -544
  1802. data/ext/couchbase/couchbase/io/http_session_manager.hxx +0 -377
  1803. data/ext/couchbase/couchbase/io/http_traits.hxx +0 -30
  1804. data/ext/couchbase/couchbase/io/ip_protocol.hxx +0 -28
  1805. data/ext/couchbase/couchbase/io/mcbp_command.hxx +0 -300
  1806. data/ext/couchbase/couchbase/io/mcbp_context.hxx +0 -39
  1807. data/ext/couchbase/couchbase/io/mcbp_message.cxx +0 -39
  1808. data/ext/couchbase/couchbase/io/mcbp_message.hxx +0 -55
  1809. data/ext/couchbase/couchbase/io/mcbp_parser.cxx +0 -86
  1810. data/ext/couchbase/couchbase/io/mcbp_parser.hxx +0 -45
  1811. data/ext/couchbase/couchbase/io/mcbp_session.hxx +0 -1317
  1812. data/ext/couchbase/couchbase/io/mcbp_traits.hxx +0 -30
  1813. data/ext/couchbase/couchbase/io/query_cache.hxx +0 -61
  1814. data/ext/couchbase/couchbase/io/retry_action.hxx +0 -30
  1815. data/ext/couchbase/couchbase/io/retry_context.hxx +0 -38
  1816. data/ext/couchbase/couchbase/io/retry_orchestrator.hxx +0 -112
  1817. data/ext/couchbase/couchbase/io/retry_reason.hxx +0 -158
  1818. data/ext/couchbase/couchbase/io/retry_reason_fmt.hxx +0 -103
  1819. data/ext/couchbase/couchbase/io/retry_strategy.hxx +0 -152
  1820. data/ext/couchbase/couchbase/io/streams.hxx +0 -253
  1821. data/ext/couchbase/couchbase/json_string.hxx +0 -48
  1822. data/ext/couchbase/couchbase/logger/CMakeLists.txt +0 -9
  1823. data/ext/couchbase/couchbase/logger/configuration.hxx +0 -52
  1824. data/ext/couchbase/couchbase/logger/custom_rotating_file_sink.cxx +0 -157
  1825. data/ext/couchbase/couchbase/logger/logger.cxx +0 -337
  1826. data/ext/couchbase/couchbase/logger/logger.hxx +0 -235
  1827. data/ext/couchbase/couchbase/management/CMakeLists.txt +0 -13
  1828. data/ext/couchbase/couchbase/management/analytics_dataset.hxx +0 -30
  1829. data/ext/couchbase/couchbase/management/analytics_index.hxx +0 -30
  1830. data/ext/couchbase/couchbase/management/analytics_link.hxx +0 -22
  1831. data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external.cxx +0 -67
  1832. data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external.hxx +0 -76
  1833. data/ext/couchbase/couchbase/management/analytics_link_azure_blob_external_json.hxx +0 -52
  1834. data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote.cxx +0 -104
  1835. data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote.hxx +0 -107
  1836. data/ext/couchbase/couchbase/management/analytics_link_couchbase_remote_json.hxx +0 -63
  1837. data/ext/couchbase/couchbase/management/analytics_link_s3_external.cxx +0 -57
  1838. data/ext/couchbase/couchbase/management/analytics_link_s3_external.hxx +0 -69
  1839. data/ext/couchbase/couchbase/management/analytics_link_s3_external_json.hxx +0 -47
  1840. data/ext/couchbase/couchbase/management/bucket_settings.hxx +0 -134
  1841. data/ext/couchbase/couchbase/management/bucket_settings_json.hxx +0 -123
  1842. data/ext/couchbase/couchbase/management/design_document.hxx +0 -41
  1843. data/ext/couchbase/couchbase/management/eventing_function.hxx +0 -188
  1844. data/ext/couchbase/couchbase/management/eventing_function_json.hxx +0 -212
  1845. data/ext/couchbase/couchbase/management/eventing_status.hxx +0 -84
  1846. data/ext/couchbase/couchbase/management/eventing_status_json.hxx +0 -77
  1847. data/ext/couchbase/couchbase/management/rbac.hxx +0 -77
  1848. data/ext/couchbase/couchbase/management/rbac_fmt.hxx +0 -49
  1849. data/ext/couchbase/couchbase/management/rbac_json.hxx +0 -179
  1850. data/ext/couchbase/couchbase/management/search_index.hxx +0 -38
  1851. data/ext/couchbase/couchbase/management/search_index_json.hxx +0 -58
  1852. data/ext/couchbase/couchbase/meta/CMakeLists.txt +0 -15
  1853. data/ext/couchbase/couchbase/meta/version.cxx +0 -181
  1854. data/ext/couchbase/couchbase/meta/version.hxx +0 -45
  1855. data/ext/couchbase/couchbase/metrics/CMakeLists.txt +0 -11
  1856. data/ext/couchbase/couchbase/metrics/logging_meter.cxx +0 -194
  1857. data/ext/couchbase/couchbase/metrics/logging_meter.hxx +0 -74
  1858. data/ext/couchbase/couchbase/metrics/logging_meter_options.hxx +0 -28
  1859. data/ext/couchbase/couchbase/metrics/noop_meter.hxx +0 -47
  1860. data/ext/couchbase/couchbase/mutation_token_fmt.hxx +0 -37
  1861. data/ext/couchbase/couchbase/operations/CMakeLists.txt +0 -35
  1862. data/ext/couchbase/couchbase/operations/document_analytics.cxx +0 -195
  1863. data/ext/couchbase/couchbase/operations/document_analytics.hxx +0 -92
  1864. data/ext/couchbase/couchbase/operations/document_append.cxx +0 -46
  1865. data/ext/couchbase/couchbase/operations/document_append.hxx +0 -63
  1866. data/ext/couchbase/couchbase/operations/document_decrement.cxx +0 -57
  1867. data/ext/couchbase/couchbase/operations/document_decrement.hxx +0 -67
  1868. data/ext/couchbase/couchbase/operations/document_exists.cxx +0 -49
  1869. data/ext/couchbase/couchbase/operations/document_exists.hxx +0 -61
  1870. data/ext/couchbase/couchbase/operations/document_get.cxx +0 -44
  1871. data/ext/couchbase/couchbase/operations/document_get.hxx +0 -53
  1872. data/ext/couchbase/couchbase/operations/document_get_and_lock.cxx +0 -45
  1873. data/ext/couchbase/couchbase/operations/document_get_and_lock.hxx +0 -54
  1874. data/ext/couchbase/couchbase/operations/document_get_and_touch.cxx +0 -45
  1875. data/ext/couchbase/couchbase/operations/document_get_and_touch.hxx +0 -54
  1876. data/ext/couchbase/couchbase/operations/document_get_projected.cxx +0 -227
  1877. data/ext/couchbase/couchbase/operations/document_get_projected.hxx +0 -58
  1878. data/ext/couchbase/couchbase/operations/document_increment.cxx +0 -57
  1879. data/ext/couchbase/couchbase/operations/document_increment.hxx +0 -67
  1880. data/ext/couchbase/couchbase/operations/document_insert.cxx +0 -48
  1881. data/ext/couchbase/couchbase/operations/document_insert.hxx +0 -65
  1882. data/ext/couchbase/couchbase/operations/document_lookup_in.cxx +0 -81
  1883. data/ext/couchbase/couchbase/operations/document_lookup_in.hxx +0 -64
  1884. data/ext/couchbase/couchbase/operations/document_mutate_in.cxx +0 -104
  1885. data/ext/couchbase/couchbase/operations/document_mutate_in.hxx +0 -82
  1886. data/ext/couchbase/couchbase/operations/document_prepend.cxx +0 -46
  1887. data/ext/couchbase/couchbase/operations/document_prepend.hxx +0 -63
  1888. data/ext/couchbase/couchbase/operations/document_query.cxx +0 -370
  1889. data/ext/couchbase/couchbase/operations/document_query.hxx +0 -123
  1890. data/ext/couchbase/couchbase/operations/document_remove.cxx +0 -46
  1891. data/ext/couchbase/couchbase/operations/document_remove.hxx +0 -63
  1892. data/ext/couchbase/couchbase/operations/document_replace.cxx +0 -52
  1893. data/ext/couchbase/couchbase/operations/document_replace.hxx +0 -67
  1894. data/ext/couchbase/couchbase/operations/document_search.cxx +0 -311
  1895. data/ext/couchbase/couchbase/operations/document_search.hxx +0 -153
  1896. data/ext/couchbase/couchbase/operations/document_touch.cxx +0 -43
  1897. data/ext/couchbase/couchbase/operations/document_touch.hxx +0 -52
  1898. data/ext/couchbase/couchbase/operations/document_unlock.cxx +0 -43
  1899. data/ext/couchbase/couchbase/operations/document_unlock.hxx +0 -52
  1900. data/ext/couchbase/couchbase/operations/document_upsert.cxx +0 -52
  1901. data/ext/couchbase/couchbase/operations/document_upsert.hxx +0 -66
  1902. data/ext/couchbase/couchbase/operations/document_view.cxx +0 -183
  1903. data/ext/couchbase/couchbase/operations/document_view.hxx +0 -97
  1904. data/ext/couchbase/couchbase/operations/http_noop.cxx +0 -60
  1905. data/ext/couchbase/couchbase/operations/http_noop.hxx +0 -48
  1906. data/ext/couchbase/couchbase/operations/management/CMakeLists.txt +0 -79
  1907. data/ext/couchbase/couchbase/operations/management/analytics.hxx +0 -34
  1908. data/ext/couchbase/couchbase/operations/management/analytics_dataset_create.cxx +0 -94
  1909. data/ext/couchbase/couchbase/operations/management/analytics_dataset_create.hxx +0 -57
  1910. data/ext/couchbase/couchbase/operations/management/analytics_dataset_drop.cxx +0 -83
  1911. data/ext/couchbase/couchbase/operations/management/analytics_dataset_drop.hxx +0 -54
  1912. data/ext/couchbase/couchbase/operations/management/analytics_dataset_get_all.cxx +0 -80
  1913. data/ext/couchbase/couchbase/operations/management/analytics_dataset_get_all.hxx +0 -52
  1914. data/ext/couchbase/couchbase/operations/management/analytics_dataverse_create.cxx +0 -82
  1915. data/ext/couchbase/couchbase/operations/management/analytics_dataverse_create.hxx +0 -53
  1916. data/ext/couchbase/couchbase/operations/management/analytics_dataverse_drop.cxx +0 -82
  1917. data/ext/couchbase/couchbase/operations/management/analytics_dataverse_drop.hxx +0 -53
  1918. data/ext/couchbase/couchbase/operations/management/analytics_get_pending_mutations.cxx +0 -70
  1919. data/ext/couchbase/couchbase/operations/management/analytics_get_pending_mutations.hxx +0 -52
  1920. data/ext/couchbase/couchbase/operations/management/analytics_index_create.cxx +0 -106
  1921. data/ext/couchbase/couchbase/operations/management/analytics_index_create.hxx +0 -56
  1922. data/ext/couchbase/couchbase/operations/management/analytics_index_drop.cxx +0 -90
  1923. data/ext/couchbase/couchbase/operations/management/analytics_index_drop.hxx +0 -55
  1924. data/ext/couchbase/couchbase/operations/management/analytics_index_get_all.cxx +0 -80
  1925. data/ext/couchbase/couchbase/operations/management/analytics_index_get_all.hxx +0 -52
  1926. data/ext/couchbase/couchbase/operations/management/analytics_link_connect.cxx +0 -82
  1927. data/ext/couchbase/couchbase/operations/management/analytics_link_connect.hxx +0 -57
  1928. data/ext/couchbase/couchbase/operations/management/analytics_link_create.cxx +0 -87
  1929. data/ext/couchbase/couchbase/operations/management/analytics_link_create.hxx +0 -77
  1930. data/ext/couchbase/couchbase/operations/management/analytics_link_disconnect.cxx +0 -80
  1931. data/ext/couchbase/couchbase/operations/management/analytics_link_disconnect.hxx +0 -56
  1932. data/ext/couchbase/couchbase/operations/management/analytics_link_drop.cxx +0 -103
  1933. data/ext/couchbase/couchbase/operations/management/analytics_link_drop.hxx +0 -56
  1934. data/ext/couchbase/couchbase/operations/management/analytics_link_get_all.cxx +0 -130
  1935. data/ext/couchbase/couchbase/operations/management/analytics_link_get_all.hxx +0 -63
  1936. data/ext/couchbase/couchbase/operations/management/analytics_link_replace.cxx +0 -87
  1937. data/ext/couchbase/couchbase/operations/management/analytics_link_replace.hxx +0 -78
  1938. data/ext/couchbase/couchbase/operations/management/analytics_link_utils.hxx +0 -37
  1939. data/ext/couchbase/couchbase/operations/management/analytics_problem.hxx +0 -30
  1940. data/ext/couchbase/couchbase/operations/management/bucket.hxx +0 -25
  1941. data/ext/couchbase/couchbase/operations/management/bucket_create.cxx +0 -171
  1942. data/ext/couchbase/couchbase/operations/management/bucket_create.hxx +0 -52
  1943. data/ext/couchbase/couchbase/operations/management/bucket_describe.cxx +0 -67
  1944. data/ext/couchbase/couchbase/operations/management/bucket_describe.hxx +0 -61
  1945. data/ext/couchbase/couchbase/operations/management/bucket_drop.cxx +0 -52
  1946. data/ext/couchbase/couchbase/operations/management/bucket_drop.hxx +0 -49
  1947. data/ext/couchbase/couchbase/operations/management/bucket_flush.cxx +0 -59
  1948. data/ext/couchbase/couchbase/operations/management/bucket_flush.hxx +0 -49
  1949. data/ext/couchbase/couchbase/operations/management/bucket_get.cxx +0 -59
  1950. data/ext/couchbase/couchbase/operations/management/bucket_get.hxx +0 -51
  1951. data/ext/couchbase/couchbase/operations/management/bucket_get_all.cxx +0 -59
  1952. data/ext/couchbase/couchbase/operations/management/bucket_get_all.hxx +0 -49
  1953. data/ext/couchbase/couchbase/operations/management/bucket_update.cxx +0 -130
  1954. data/ext/couchbase/couchbase/operations/management/bucket_update.hxx +0 -52
  1955. data/ext/couchbase/couchbase/operations/management/cluster_describe.cxx +0 -90
  1956. data/ext/couchbase/couchbase/operations/management/cluster_describe.hxx +0 -72
  1957. data/ext/couchbase/couchbase/operations/management/cluster_developer_preview_enable.cxx +0 -44
  1958. data/ext/couchbase/couchbase/operations/management/cluster_developer_preview_enable.hxx +0 -48
  1959. data/ext/couchbase/couchbase/operations/management/collection_create.cxx +0 -83
  1960. data/ext/couchbase/couchbase/operations/management/collection_create.hxx +0 -53
  1961. data/ext/couchbase/couchbase/operations/management/collection_drop.cxx +0 -73
  1962. data/ext/couchbase/couchbase/operations/management/collection_drop.hxx +0 -52
  1963. data/ext/couchbase/couchbase/operations/management/collections.hxx +0 -25
  1964. data/ext/couchbase/couchbase/operations/management/collections_manifest_get.cxx +0 -40
  1965. data/ext/couchbase/couchbase/operations/management/collections_manifest_get.hxx +0 -53
  1966. data/ext/couchbase/couchbase/operations/management/error_utils.cxx +0 -265
  1967. data/ext/couchbase/couchbase/operations/management/error_utils.hxx +0 -48
  1968. data/ext/couchbase/couchbase/operations/management/eventing.hxx +0 -28
  1969. data/ext/couchbase/couchbase/operations/management/eventing_deploy_function.cxx +0 -56
  1970. data/ext/couchbase/couchbase/operations/management/eventing_deploy_function.hxx +0 -52
  1971. data/ext/couchbase/couchbase/operations/management/eventing_drop_function.cxx +0 -57
  1972. data/ext/couchbase/couchbase/operations/management/eventing_drop_function.hxx +0 -52
  1973. data/ext/couchbase/couchbase/operations/management/eventing_get_all_functions.cxx +0 -64
  1974. data/ext/couchbase/couchbase/operations/management/eventing_get_all_functions.hxx +0 -51
  1975. data/ext/couchbase/couchbase/operations/management/eventing_get_function.cxx +0 -56
  1976. data/ext/couchbase/couchbase/operations/management/eventing_get_function.hxx +0 -53
  1977. data/ext/couchbase/couchbase/operations/management/eventing_get_status.cxx +0 -56
  1978. data/ext/couchbase/couchbase/operations/management/eventing_get_status.hxx +0 -53
  1979. data/ext/couchbase/couchbase/operations/management/eventing_pause_function.cxx +0 -56
  1980. data/ext/couchbase/couchbase/operations/management/eventing_pause_function.hxx +0 -52
  1981. data/ext/couchbase/couchbase/operations/management/eventing_problem.hxx +0 -31
  1982. data/ext/couchbase/couchbase/operations/management/eventing_resume_function.cxx +0 -56
  1983. data/ext/couchbase/couchbase/operations/management/eventing_resume_function.hxx +0 -52
  1984. data/ext/couchbase/couchbase/operations/management/eventing_undeploy_function.cxx +0 -56
  1985. data/ext/couchbase/couchbase/operations/management/eventing_undeploy_function.hxx +0 -52
  1986. data/ext/couchbase/couchbase/operations/management/eventing_upsert_function.cxx +0 -341
  1987. data/ext/couchbase/couchbase/operations/management/eventing_upsert_function.hxx +0 -52
  1988. data/ext/couchbase/couchbase/operations/management/freeform.cxx +0 -55
  1989. data/ext/couchbase/couchbase/operations/management/freeform.hxx +0 -55
  1990. data/ext/couchbase/couchbase/operations/management/group_drop.cxx +0 -51
  1991. data/ext/couchbase/couchbase/operations/management/group_drop.hxx +0 -49
  1992. data/ext/couchbase/couchbase/operations/management/group_get.cxx +0 -60
  1993. data/ext/couchbase/couchbase/operations/management/group_get.hxx +0 -50
  1994. data/ext/couchbase/couchbase/operations/management/group_get_all.cxx +0 -58
  1995. data/ext/couchbase/couchbase/operations/management/group_get_all.hxx +0 -49
  1996. data/ext/couchbase/couchbase/operations/management/group_upsert.cxx +0 -96
  1997. data/ext/couchbase/couchbase/operations/management/group_upsert.hxx +0 -51
  1998. data/ext/couchbase/couchbase/operations/management/query.hxx +0 -23
  1999. data/ext/couchbase/couchbase/operations/management/query_index_build_deferred.cxx +0 -88
  2000. data/ext/couchbase/couchbase/operations/management/query_index_build_deferred.hxx +0 -61
  2001. data/ext/couchbase/couchbase/operations/management/query_index_create.cxx +0 -149
  2002. data/ext/couchbase/couchbase/operations/management/query_index_create.hxx +0 -65
  2003. data/ext/couchbase/couchbase/operations/management/query_index_drop.cxx +0 -128
  2004. data/ext/couchbase/couchbase/operations/management/query_index_drop.hxx +0 -61
  2005. data/ext/couchbase/couchbase/operations/management/query_index_get_all.cxx +0 -126
  2006. data/ext/couchbase/couchbase/operations/management/query_index_get_all.hxx +0 -54
  2007. data/ext/couchbase/couchbase/operations/management/role_get_all.cxx +0 -58
  2008. data/ext/couchbase/couchbase/operations/management/role_get_all.hxx +0 -49
  2009. data/ext/couchbase/couchbase/operations/management/scope_create.cxx +0 -75
  2010. data/ext/couchbase/couchbase/operations/management/scope_create.hxx +0 -51
  2011. data/ext/couchbase/couchbase/operations/management/scope_drop.cxx +0 -70
  2012. data/ext/couchbase/couchbase/operations/management/scope_drop.hxx +0 -51
  2013. data/ext/couchbase/couchbase/operations/management/scope_get_all.cxx +0 -62
  2014. data/ext/couchbase/couchbase/operations/management/scope_get_all.hxx +0 -51
  2015. data/ext/couchbase/couchbase/operations/management/search.hxx +0 -30
  2016. data/ext/couchbase/couchbase/operations/management/search_get_stats.cxx +0 -41
  2017. data/ext/couchbase/couchbase/operations/management/search_get_stats.hxx +0 -48
  2018. data/ext/couchbase/couchbase/operations/management/search_index_analyze_document.cxx +0 -85
  2019. data/ext/couchbase/couchbase/operations/management/search_index_analyze_document.hxx +0 -54
  2020. data/ext/couchbase/couchbase/operations/management/search_index_control_ingest.cxx +0 -73
  2021. data/ext/couchbase/couchbase/operations/management/search_index_control_ingest.hxx +0 -52
  2022. data/ext/couchbase/couchbase/operations/management/search_index_control_plan_freeze.cxx +0 -73
  2023. data/ext/couchbase/couchbase/operations/management/search_index_control_plan_freeze.hxx +0 -57
  2024. data/ext/couchbase/couchbase/operations/management/search_index_control_query.cxx +0 -73
  2025. data/ext/couchbase/couchbase/operations/management/search_index_control_query.hxx +0 -52
  2026. data/ext/couchbase/couchbase/operations/management/search_index_drop.cxx +0 -72
  2027. data/ext/couchbase/couchbase/operations/management/search_index_drop.hxx +0 -51
  2028. data/ext/couchbase/couchbase/operations/management/search_index_get.cxx +0 -75
  2029. data/ext/couchbase/couchbase/operations/management/search_index_get.hxx +0 -54
  2030. data/ext/couchbase/couchbase/operations/management/search_index_get_all.cxx +0 -67
  2031. data/ext/couchbase/couchbase/operations/management/search_index_get_all.hxx +0 -51
  2032. data/ext/couchbase/couchbase/operations/management/search_index_get_documents_count.cxx +0 -79
  2033. data/ext/couchbase/couchbase/operations/management/search_index_get_documents_count.hxx +0 -53
  2034. data/ext/couchbase/couchbase/operations/management/search_index_get_stats.cxx +0 -71
  2035. data/ext/couchbase/couchbase/operations/management/search_index_get_stats.hxx +0 -52
  2036. data/ext/couchbase/couchbase/operations/management/search_index_upsert.cxx +0 -108
  2037. data/ext/couchbase/couchbase/operations/management/search_index_upsert.hxx +0 -52
  2038. data/ext/couchbase/couchbase/operations/management/user.hxx +0 -28
  2039. data/ext/couchbase/couchbase/operations/management/user_drop.cxx +0 -52
  2040. data/ext/couchbase/couchbase/operations/management/user_drop.hxx +0 -51
  2041. data/ext/couchbase/couchbase/operations/management/user_get.cxx +0 -61
  2042. data/ext/couchbase/couchbase/operations/management/user_get.hxx +0 -52
  2043. data/ext/couchbase/couchbase/operations/management/user_get_all.cxx +0 -59
  2044. data/ext/couchbase/couchbase/operations/management/user_get_all.hxx +0 -51
  2045. data/ext/couchbase/couchbase/operations/management/user_upsert.cxx +0 -101
  2046. data/ext/couchbase/couchbase/operations/management/user_upsert.hxx +0 -52
  2047. data/ext/couchbase/couchbase/operations/management/view.hxx +0 -23
  2048. data/ext/couchbase/couchbase/operations/management/view_index_drop.cxx +0 -46
  2049. data/ext/couchbase/couchbase/operations/management/view_index_drop.hxx +0 -52
  2050. data/ext/couchbase/couchbase/operations/management/view_index_get.cxx +0 -74
  2051. data/ext/couchbase/couchbase/operations/management/view_index_get.hxx +0 -53
  2052. data/ext/couchbase/couchbase/operations/management/view_index_get_all.cxx +0 -108
  2053. data/ext/couchbase/couchbase/operations/management/view_index_get_all.hxx +0 -52
  2054. data/ext/couchbase/couchbase/operations/management/view_index_upsert.cxx +0 -71
  2055. data/ext/couchbase/couchbase/operations/management/view_index_upsert.hxx +0 -51
  2056. data/ext/couchbase/couchbase/operations/mcbp_noop.cxx +0 -38
  2057. data/ext/couchbase/couchbase/operations/mcbp_noop.hxx +0 -49
  2058. data/ext/couchbase/couchbase/operations.hxx +0 -42
  2059. data/ext/couchbase/couchbase/origin.hxx +0 -185
  2060. data/ext/couchbase/couchbase/platform/CMakeLists.txt +0 -16
  2061. data/ext/couchbase/couchbase/platform/backtrace.c +0 -189
  2062. data/ext/couchbase/couchbase/platform/base64.cc +0 -234
  2063. data/ext/couchbase/couchbase/platform/base64.h +0 -44
  2064. data/ext/couchbase/couchbase/platform/dirutils.cc +0 -123
  2065. data/ext/couchbase/couchbase/platform/dirutils.h +0 -43
  2066. data/ext/couchbase/couchbase/platform/random.cc +0 -120
  2067. data/ext/couchbase/couchbase/platform/random.h +0 -39
  2068. data/ext/couchbase/couchbase/platform/string_hex.cc +0 -99
  2069. data/ext/couchbase/couchbase/platform/string_hex.h +0 -50
  2070. data/ext/couchbase/couchbase/platform/terminate_handler.cc +0 -125
  2071. data/ext/couchbase/couchbase/platform/terminate_handler.h +0 -36
  2072. data/ext/couchbase/couchbase/platform/uuid.cc +0 -98
  2073. data/ext/couchbase/couchbase/platform/uuid.h +0 -56
  2074. data/ext/couchbase/couchbase/protocol/CMakeLists.txt +0 -42
  2075. data/ext/couchbase/couchbase/protocol/client_opcode.hxx +0 -359
  2076. data/ext/couchbase/couchbase/protocol/client_opcode_fmt.hxx +0 -316
  2077. data/ext/couchbase/couchbase/protocol/client_request.cxx +0 -37
  2078. data/ext/couchbase/couchbase/protocol/client_request.hxx +0 -157
  2079. data/ext/couchbase/couchbase/protocol/client_response.cxx +0 -74
  2080. data/ext/couchbase/couchbase/protocol/client_response.hxx +0 -211
  2081. data/ext/couchbase/couchbase/protocol/cmd_append.cxx +0 -82
  2082. data/ext/couchbase/couchbase/protocol/cmd_append.hxx +0 -107
  2083. data/ext/couchbase/couchbase/protocol/cmd_cluster_map_change_notification.cxx +0 -51
  2084. data/ext/couchbase/couchbase/protocol/cmd_cluster_map_change_notification.hxx +0 -57
  2085. data/ext/couchbase/couchbase/protocol/cmd_decrement.cxx +0 -112
  2086. data/ext/couchbase/couchbase/protocol/cmd_decrement.hxx +0 -131
  2087. data/ext/couchbase/couchbase/protocol/cmd_exists.cxx +0 -92
  2088. data/ext/couchbase/couchbase/protocol/cmd_exists.hxx +0 -121
  2089. data/ext/couchbase/couchbase/protocol/cmd_get.cxx +0 -63
  2090. data/ext/couchbase/couchbase/protocol/cmd_get.hxx +0 -101
  2091. data/ext/couchbase/couchbase/protocol/cmd_get_and_lock.cxx +0 -68
  2092. data/ext/couchbase/couchbase/protocol/cmd_get_and_lock.hxx +0 -117
  2093. data/ext/couchbase/couchbase/protocol/cmd_get_and_touch.cxx +0 -70
  2094. data/ext/couchbase/couchbase/protocol/cmd_get_and_touch.hxx +0 -117
  2095. data/ext/couchbase/couchbase/protocol/cmd_get_cluster_config.cxx +0 -84
  2096. data/ext/couchbase/couchbase/protocol/cmd_get_cluster_config.hxx +0 -89
  2097. data/ext/couchbase/couchbase/protocol/cmd_get_collection_id.cxx +0 -50
  2098. data/ext/couchbase/couchbase/protocol/cmd_get_collection_id.hxx +0 -98
  2099. data/ext/couchbase/couchbase/protocol/cmd_get_collections_manifest.cxx +0 -44
  2100. data/ext/couchbase/couchbase/protocol/cmd_get_collections_manifest.hxx +0 -84
  2101. data/ext/couchbase/couchbase/protocol/cmd_get_error_map.cxx +0 -59
  2102. data/ext/couchbase/couchbase/protocol/cmd_get_error_map.hxx +0 -103
  2103. data/ext/couchbase/couchbase/protocol/cmd_get_meta.cxx +0 -74
  2104. data/ext/couchbase/couchbase/protocol/cmd_get_meta.hxx +0 -119
  2105. data/ext/couchbase/couchbase/protocol/cmd_hello.cxx +0 -66
  2106. data/ext/couchbase/couchbase/protocol/cmd_hello.hxx +0 -144
  2107. data/ext/couchbase/couchbase/protocol/cmd_increment.cxx +0 -117
  2108. data/ext/couchbase/couchbase/protocol/cmd_increment.hxx +0 -131
  2109. data/ext/couchbase/couchbase/protocol/cmd_info.hxx +0 -29
  2110. data/ext/couchbase/couchbase/protocol/cmd_insert.cxx +0 -92
  2111. data/ext/couchbase/couchbase/protocol/cmd_insert.hxx +0 -123
  2112. data/ext/couchbase/couchbase/protocol/cmd_lookup_in.cxx +0 -109
  2113. data/ext/couchbase/couchbase/protocol/cmd_lookup_in.hxx +0 -165
  2114. data/ext/couchbase/couchbase/protocol/cmd_mutate_in.cxx +0 -174
  2115. data/ext/couchbase/couchbase/protocol/cmd_mutate_in.hxx +0 -311
  2116. data/ext/couchbase/couchbase/protocol/cmd_noop.cxx +0 -36
  2117. data/ext/couchbase/couchbase/protocol/cmd_noop.hxx +0 -75
  2118. data/ext/couchbase/couchbase/protocol/cmd_prepend.cxx +0 -82
  2119. data/ext/couchbase/couchbase/protocol/cmd_prepend.hxx +0 -102
  2120. data/ext/couchbase/couchbase/protocol/cmd_remove.cxx +0 -83
  2121. data/ext/couchbase/couchbase/protocol/cmd_remove.hxx +0 -93
  2122. data/ext/couchbase/couchbase/protocol/cmd_replace.cxx +0 -105
  2123. data/ext/couchbase/couchbase/protocol/cmd_replace.hxx +0 -130
  2124. data/ext/couchbase/couchbase/protocol/cmd_sasl_auth.cxx +0 -40
  2125. data/ext/couchbase/couchbase/protocol/cmd_sasl_auth.hxx +0 -97
  2126. data/ext/couchbase/couchbase/protocol/cmd_sasl_list_mechs.cxx +0 -48
  2127. data/ext/couchbase/couchbase/protocol/cmd_sasl_list_mechs.hxx +0 -82
  2128. data/ext/couchbase/couchbase/protocol/cmd_sasl_step.cxx +0 -40
  2129. data/ext/couchbase/couchbase/protocol/cmd_sasl_step.hxx +0 -97
  2130. data/ext/couchbase/couchbase/protocol/cmd_select_bucket.cxx +0 -36
  2131. data/ext/couchbase/couchbase/protocol/cmd_select_bucket.hxx +0 -82
  2132. data/ext/couchbase/couchbase/protocol/cmd_touch.cxx +0 -57
  2133. data/ext/couchbase/couchbase/protocol/cmd_touch.hxx +0 -84
  2134. data/ext/couchbase/couchbase/protocol/cmd_unlock.cxx +0 -48
  2135. data/ext/couchbase/couchbase/protocol/cmd_unlock.hxx +0 -81
  2136. data/ext/couchbase/couchbase/protocol/cmd_upsert.cxx +0 -104
  2137. data/ext/couchbase/couchbase/protocol/cmd_upsert.hxx +0 -125
  2138. data/ext/couchbase/couchbase/protocol/datatype.hxx +0 -48
  2139. data/ext/couchbase/couchbase/protocol/durability_level.hxx +0 -59
  2140. data/ext/couchbase/couchbase/protocol/durability_level_fmt.hxx +0 -52
  2141. data/ext/couchbase/couchbase/protocol/enhanced_error_info.hxx +0 -28
  2142. data/ext/couchbase/couchbase/protocol/enhanced_error_info_fmt.hxx +0 -44
  2143. data/ext/couchbase/couchbase/protocol/frame_info_id.hxx +0 -142
  2144. data/ext/couchbase/couchbase/protocol/frame_info_id_fmt.hxx +0 -79
  2145. data/ext/couchbase/couchbase/protocol/hello_feature.hxx +0 -186
  2146. data/ext/couchbase/couchbase/protocol/hello_feature_fmt.hxx +0 -106
  2147. data/ext/couchbase/couchbase/protocol/magic.hxx +0 -53
  2148. data/ext/couchbase/couchbase/protocol/magic_fmt.hxx +0 -58
  2149. data/ext/couchbase/couchbase/protocol/server_opcode.hxx +0 -39
  2150. data/ext/couchbase/couchbase/protocol/server_opcode_fmt.hxx +0 -46
  2151. data/ext/couchbase/couchbase/protocol/server_request.hxx +0 -121
  2152. data/ext/couchbase/couchbase/protocol/status.cxx +0 -187
  2153. data/ext/couchbase/couchbase/protocol/status.hxx +0 -180
  2154. data/ext/couchbase/couchbase/protocol/status_fmt.hxx +0 -241
  2155. data/ext/couchbase/couchbase/query_profile_mode.hxx +0 -27
  2156. data/ext/couchbase/couchbase/sasl/CMakeLists.txt +0 -16
  2157. data/ext/couchbase/couchbase/sasl/client.cc +0 -50
  2158. data/ext/couchbase/couchbase/sasl/client.h +0 -128
  2159. data/ext/couchbase/couchbase/sasl/context.cc +0 -34
  2160. data/ext/couchbase/couchbase/sasl/context.h +0 -52
  2161. data/ext/couchbase/couchbase/sasl/error.h +0 -28
  2162. data/ext/couchbase/couchbase/sasl/error_fmt.h +0 -70
  2163. data/ext/couchbase/couchbase/sasl/mechanism.cc +0 -45
  2164. data/ext/couchbase/couchbase/sasl/mechanism.h +0 -52
  2165. data/ext/couchbase/couchbase/sasl/plain/plain.cc +0 -39
  2166. data/ext/couchbase/couchbase/sasl/plain/plain.h +0 -54
  2167. data/ext/couchbase/couchbase/sasl/scram-sha/scram-sha.cc +0 -372
  2168. data/ext/couchbase/couchbase/sasl/scram-sha/scram-sha.h +0 -184
  2169. data/ext/couchbase/couchbase/sasl/scram-sha/stringutils.cc +0 -82
  2170. data/ext/couchbase/couchbase/sasl/scram-sha/stringutils.h +0 -48
  2171. data/ext/couchbase/couchbase/search_highlight_style.hxx +0 -23
  2172. data/ext/couchbase/couchbase/search_scan_consistency.hxx +0 -23
  2173. data/ext/couchbase/couchbase/service_type.hxx +0 -31
  2174. data/ext/couchbase/couchbase/service_type_fmt.hxx +0 -61
  2175. data/ext/couchbase/couchbase/timeout_defaults.hxx +0 -42
  2176. data/ext/couchbase/couchbase/topology/CMakeLists.txt +0 -9
  2177. data/ext/couchbase/couchbase/topology/capabilities.hxx +0 -43
  2178. data/ext/couchbase/couchbase/topology/capabilities_fmt.hxx +0 -106
  2179. data/ext/couchbase/couchbase/topology/collections_manifest.hxx +0 -42
  2180. data/ext/couchbase/couchbase/topology/collections_manifest_fmt.hxx +0 -52
  2181. data/ext/couchbase/couchbase/topology/collections_manifest_json.hxx +0 -50
  2182. data/ext/couchbase/couchbase/topology/configuration.cxx +0 -223
  2183. data/ext/couchbase/couchbase/topology/configuration.hxx +0 -120
  2184. data/ext/couchbase/couchbase/topology/configuration_fmt.hxx +0 -166
  2185. data/ext/couchbase/couchbase/topology/configuration_json.hxx +0 -259
  2186. data/ext/couchbase/couchbase/topology/error_map.hxx +0 -149
  2187. data/ext/couchbase/couchbase/topology/error_map_fmt.hxx +0 -94
  2188. data/ext/couchbase/couchbase/topology/error_map_json.hxx +0 -88
  2189. data/ext/couchbase/couchbase/tracing/CMakeLists.txt +0 -9
  2190. data/ext/couchbase/couchbase/tracing/constants.hxx +0 -274
  2191. data/ext/couchbase/couchbase/tracing/noop_tracer.hxx +0 -55
  2192. data/ext/couchbase/couchbase/tracing/threshold_logging_options.hxx +0 -68
  2193. data/ext/couchbase/couchbase/tracing/threshold_logging_tracer.cxx +0 -422
  2194. data/ext/couchbase/couchbase/tracing/threshold_logging_tracer.hxx +0 -49
  2195. data/ext/couchbase/couchbase/utils/CMakeLists.txt +0 -17
  2196. data/ext/couchbase/couchbase/utils/byteswap.cxx +0 -45
  2197. data/ext/couchbase/couchbase/utils/byteswap.hxx +0 -49
  2198. data/ext/couchbase/couchbase/utils/connection_string.cxx +0 -420
  2199. data/ext/couchbase/couchbase/utils/connection_string.hxx +0 -76
  2200. data/ext/couchbase/couchbase/utils/crc32.hxx +0 -48
  2201. data/ext/couchbase/couchbase/utils/duration_parser.cxx +0 -193
  2202. data/ext/couchbase/couchbase/utils/duration_parser.hxx +0 -45
  2203. data/ext/couchbase/couchbase/utils/join_strings.hxx +0 -65
  2204. data/ext/couchbase/couchbase/utils/json.cxx +0 -71
  2205. data/ext/couchbase/couchbase/utils/json.hxx +0 -37
  2206. data/ext/couchbase/couchbase/utils/json_stream_control.hxx +0 -32
  2207. data/ext/couchbase/couchbase/utils/json_streaming_lexer.cxx +0 -394
  2208. data/ext/couchbase/couchbase/utils/json_streaming_lexer.hxx +0 -58
  2209. data/ext/couchbase/couchbase/utils/movable_function.hxx +0 -110
  2210. data/ext/couchbase/couchbase/utils/name_codec.hxx +0 -41
  2211. data/ext/couchbase/couchbase/utils/unsigned_leb128.hxx +0 -181
  2212. data/ext/couchbase/couchbase/utils/url_codec.cxx +0 -404
  2213. data/ext/couchbase/couchbase/utils/url_codec.hxx +0 -72
  2214. data/ext/couchbase/couchbase/view_scan_consistency.hxx +0 -27
  2215. data/ext/couchbase/couchbase/view_sort_order.hxx +0 -23
  2216. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/append.hpp +0 -217
  2217. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/as_tuple.hpp +0 -246
  2218. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/deferred.hpp +0 -104
  2219. data/ext/couchbase/third_party/asio/asio/include/asio/experimental/impl/prepend.hpp +0 -217
  2220. data/ext/couchbase/third_party/asio/asio/include/asio/impl/compose.hpp +0 -707
  2221. data/ext/couchbase/third_party/json/external/PEGTL/include/tao/pegtl/internal/dependent_true.hpp +0 -16
@@ -13,6 +13,7 @@
13
13
  # limitations under the License.
14
14
 
15
15
  require "couchbase/utils/time"
16
+ require "couchbase/config_profiles"
16
17
 
17
18
  module Couchbase
18
19
  # Definition of the Option classes for data APIs
@@ -44,7 +45,7 @@ module Couchbase
44
45
  # @api private
45
46
  def to_backend
46
47
  {
47
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
48
+ timeout: Utils::Time.extract_duration(@timeout),
48
49
  }
49
50
  end
50
51
  end
@@ -109,7 +110,7 @@ module Couchbase
109
110
  # @api private
110
111
  def to_backend
111
112
  options = {
112
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
113
+ timeout: Utils::Time.extract_duration(@timeout),
113
114
  }
114
115
  options.update(with_expiry: true) if @with_expiry
115
116
  unless @projections&.empty?
@@ -120,6 +121,9 @@ module Couchbase
120
121
  end
121
122
  options
122
123
  end
124
+
125
+ # @api private
126
+ DEFAULT = Get.new.freeze
123
127
  end
124
128
 
125
129
  # Options for {Collection#get_multi}
@@ -149,9 +153,12 @@ module Couchbase
149
153
  # @api private
150
154
  def to_backend
151
155
  {
152
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
156
+ timeout: Utils::Time.extract_duration(@timeout),
153
157
  }
154
158
  end
159
+
160
+ # @api private
161
+ DEFAULT = GetMulti.new.freeze
155
162
  end
156
163
 
157
164
  # Options for {Collection#get_and_lock}
@@ -181,9 +188,12 @@ module Couchbase
181
188
  # @api private
182
189
  def to_backend
183
190
  {
184
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
191
+ timeout: Utils::Time.extract_duration(@timeout),
185
192
  }
186
193
  end
194
+
195
+ # @api private
196
+ DEFAULT = GetAndLock.new.freeze
187
197
  end
188
198
 
189
199
  # Options for {Collection#get_and_touch}
@@ -213,9 +223,12 @@ module Couchbase
213
223
  # @api private
214
224
  def to_backend
215
225
  {
216
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
226
+ timeout: Utils::Time.extract_duration(@timeout),
217
227
  }
218
228
  end
229
+
230
+ # @api private
231
+ DEFAULT = GetAndTouch.new.freeze
219
232
  end
220
233
 
221
234
  # Options for {Collection#get_all_replicas}
@@ -245,9 +258,12 @@ module Couchbase
245
258
  # @api private
246
259
  def to_backend
247
260
  {
248
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
261
+ timeout: Utils::Time.extract_duration(@timeout),
249
262
  }
250
263
  end
264
+
265
+ # @api private
266
+ DEFAULT = GetAllReplicas.new.freeze
251
267
  end
252
268
 
253
269
  # Options for {Collection#get_any_replica}
@@ -277,9 +293,12 @@ module Couchbase
277
293
  # @api private
278
294
  def to_backend
279
295
  {
280
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
296
+ timeout: Utils::Time.extract_duration(@timeout),
281
297
  }
282
298
  end
299
+
300
+ # @api private
301
+ DEFAULT = GetAnyReplica.new.freeze
283
302
  end
284
303
 
285
304
  # Options for {Collection#exists}
@@ -303,9 +322,12 @@ module Couchbase
303
322
  # @api private
304
323
  def to_backend
305
324
  {
306
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
325
+ timeout: Utils::Time.extract_duration(@timeout),
307
326
  }
308
327
  end
328
+
329
+ # @api private
330
+ DEFAULT = Exists.new.freeze
309
331
  end
310
332
 
311
333
  # Options for {Collection#touch}
@@ -329,9 +351,12 @@ module Couchbase
329
351
  # @api private
330
352
  def to_backend
331
353
  {
332
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
354
+ timeout: Utils::Time.extract_duration(@timeout),
333
355
  }
334
356
  end
357
+
358
+ # @api private
359
+ DEFAULT = Touch.new.freeze
335
360
  end
336
361
 
337
362
  # Options for {Collection#unlock}
@@ -355,9 +380,12 @@ module Couchbase
355
380
  # @api private
356
381
  def to_backend
357
382
  {
358
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
383
+ timeout: Utils::Time.extract_duration(@timeout),
359
384
  }
360
385
  end
386
+
387
+ # @api private
388
+ DEFAULT = Unlock.new.freeze
361
389
  end
362
390
 
363
391
  # Options for {Collection#remove}
@@ -381,6 +409,18 @@ module Couchbase
381
409
  # +:persist_to_majority+::
382
410
  # The mutation must be persisted to a majority of the Data Service nodes.
383
411
  # Accordingly, it will be written to disk on those nodes.
412
+ # @param [Symbol] replicate_to number of nodes to replicate
413
+ # +:none+:: do not apply any replication requirements.
414
+ # +:one+:: wait for replication to at least one node.
415
+ # +:two+:: wait for replication to at least two nodes.
416
+ # +:three+:: wait for replication to at least three nodes.
417
+ # @param [Symbol] persist_to number of nodes to persist
418
+ # +:none+:: do not apply any persistence requirements.
419
+ # +:active+:: wait for persistence to active node
420
+ # +:one+:: wait for persistence to at least one node.
421
+ # +:two+:: wait for persistence to at least two nodes.
422
+ # +:three+:: wait for persistence to at least three nodes.
423
+ # +:four+:: wait for persistence to four nodes (active and replicas).
384
424
  #
385
425
  # @param [Integer, #in_milliseconds, nil] timeout
386
426
  # @param [Proc, nil] retry_strategy the custom retry strategy, if set
@@ -390,12 +430,20 @@ module Couchbase
390
430
  # @yieldparam [Remove]
391
431
  def initialize(cas: nil,
392
432
  durability_level: :none,
433
+ replicate_to: :none,
434
+ persist_to: :none,
393
435
  timeout: nil,
394
436
  retry_strategy: nil,
395
437
  client_context: nil,
396
438
  parent_span: nil)
397
439
  super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
398
440
  @cas = cas
441
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
442
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
443
+ end
444
+
445
+ @persist_to = persist_to
446
+ @replicate_to = replicate_to
399
447
  @durability_level = durability_level
400
448
  yield self if block_given?
401
449
  end
@@ -403,11 +451,16 @@ module Couchbase
403
451
  # @api private
404
452
  def to_backend
405
453
  {
406
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
454
+ timeout: Utils::Time.extract_duration(@timeout),
407
455
  durability_level: @durability_level,
456
+ persist_to: @persist_to,
457
+ replicate_to: @replicate_to,
408
458
  cas: @cas,
409
459
  }
410
460
  end
461
+
462
+ # @api private
463
+ DEFAULT = Remove.new.freeze
411
464
  end
412
465
 
413
466
  # Options for {Collection#remove_multi}
@@ -429,6 +482,18 @@ module Couchbase
429
482
  # +:persist_to_majority+::
430
483
  # The mutation must be persisted to a majority of the Data Service nodes.
431
484
  # Accordingly, it will be written to disk on those nodes.
485
+ # @param [Symbol] replicate_to number of nodes to replicate
486
+ # +:none+:: do not apply any replication requirements.
487
+ # +:one+:: wait for replication to at least one node.
488
+ # +:two+:: wait for replication to at least two nodes.
489
+ # +:three+:: wait for replication to at least three nodes.
490
+ # @param [Symbol] persist_to number of nodes to persist
491
+ # +:none+:: do not apply any persistence requirements.
492
+ # +:active+:: wait for persistence to active node
493
+ # +:one+:: wait for persistence to at least one node.
494
+ # +:two+:: wait for persistence to at least two nodes.
495
+ # +:three+:: wait for persistence to at least three nodes.
496
+ # +:four+:: wait for persistence to four nodes (active and replicas).
432
497
  #
433
498
  # @param [Integer, #in_milliseconds, nil] timeout
434
499
  # @param [Proc, nil] retry_strategy the custom retry strategy, if set
@@ -437,11 +502,19 @@ module Couchbase
437
502
  #
438
503
  # @yieldparam [Remove]
439
504
  def initialize(durability_level: :none,
505
+ replicate_to: :none,
506
+ persist_to: :none,
440
507
  timeout: nil,
441
508
  retry_strategy: nil,
442
509
  client_context: nil,
443
510
  parent_span: nil)
444
511
  super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
512
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
513
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
514
+ end
515
+
516
+ @persist_to = persist_to
517
+ @replicate_to = replicate_to
445
518
  @durability_level = durability_level
446
519
  yield self if block_given?
447
520
  end
@@ -449,10 +522,15 @@ module Couchbase
449
522
  # @api private
450
523
  def to_backend
451
524
  {
452
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
525
+ timeout: Utils::Time.extract_duration(@timeout),
453
526
  durability_level: @durability_level,
527
+ persist_to: @persist_to,
528
+ replicate_to: @replicate_to,
454
529
  }
455
530
  end
531
+
532
+ # @api private
533
+ DEFAULT = RemoveMulti.new.freeze
456
534
  end
457
535
 
458
536
  # Options for {Collection#insert}
@@ -478,6 +556,18 @@ module Couchbase
478
556
  # +:persist_to_majority+::
479
557
  # The mutation must be persisted to a majority of the Data Service nodes.
480
558
  # Accordingly, it will be written to disk on those nodes.
559
+ # @param [Symbol] replicate_to number of nodes to replicate
560
+ # +:none+:: do not apply any replication requirements.
561
+ # +:one+:: wait for replication to at least one node.
562
+ # +:two+:: wait for replication to at least two nodes.
563
+ # +:three+:: wait for replication to at least three nodes.
564
+ # @param [Symbol] persist_to number of nodes to persist
565
+ # +:none+:: do not apply any persistence requirements.
566
+ # +:active+:: wait for persistence to active node
567
+ # +:one+:: wait for persistence to at least one node.
568
+ # +:two+:: wait for persistence to at least two nodes.
569
+ # +:three+:: wait for persistence to at least three nodes.
570
+ # +:four+:: wait for persistence to four nodes (active and replicas).
481
571
  #
482
572
  # @param [Integer, #in_milliseconds, nil] timeout
483
573
  # @param [Proc, nil] retry_strategy the custom retry strategy, if set
@@ -488,6 +578,8 @@ module Couchbase
488
578
  def initialize(expiry: nil,
489
579
  transcoder: JsonTranscoder.new,
490
580
  durability_level: :none,
581
+ replicate_to: :none,
582
+ persist_to: :none,
491
583
  timeout: nil,
492
584
  retry_strategy: nil,
493
585
  client_context: nil,
@@ -495,6 +587,12 @@ module Couchbase
495
587
  super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
496
588
  @expiry = Utils::Time.extract_expiry_time(expiry)
497
589
  @transcoder = transcoder
590
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
591
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
592
+ end
593
+
594
+ @persist_to = persist_to
595
+ @replicate_to = replicate_to
498
596
  @durability_level = durability_level
499
597
  yield self if block_given?
500
598
  end
@@ -502,11 +600,16 @@ module Couchbase
502
600
  # @api private
503
601
  def to_backend
504
602
  {
505
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
603
+ timeout: Utils::Time.extract_duration(@timeout),
506
604
  expiry: @expiry,
507
605
  durability_level: @durability_level,
606
+ persist_to: @persist_to,
607
+ replicate_to: @replicate_to,
508
608
  }
509
609
  end
610
+
611
+ # @api private
612
+ DEFAULT = Insert.new.freeze
510
613
  end
511
614
 
512
615
  # Options for {Collection#upsert}
@@ -535,6 +638,18 @@ module Couchbase
535
638
  # +:persist_to_majority+::
536
639
  # The mutation must be persisted to a majority of the Data Service nodes.
537
640
  # Accordingly, it will be written to disk on those nodes.
641
+ # @param [Symbol] replicate_to number of nodes to replicate
642
+ # +:none+:: do not apply any replication requirements.
643
+ # +:one+:: wait for replication to at least one node.
644
+ # +:two+:: wait for replication to at least two nodes.
645
+ # +:three+:: wait for replication to at least three nodes.
646
+ # @param [Symbol] persist_to number of nodes to persist
647
+ # +:none+:: do not apply any persistence requirements.
648
+ # +:active+:: wait for persistence to active node
649
+ # +:one+:: wait for persistence to at least one node.
650
+ # +:two+:: wait for persistence to at least two nodes.
651
+ # +:three+:: wait for persistence to at least three nodes.
652
+ # +:four+:: wait for persistence to four nodes (active and replicas).
538
653
  #
539
654
  # @param [Integer, #in_milliseconds, nil] timeout
540
655
  # @param [Proc, nil] retry_strategy the custom retry strategy, if set
@@ -546,6 +661,8 @@ module Couchbase
546
661
  preserve_expiry: false,
547
662
  transcoder: JsonTranscoder.new,
548
663
  durability_level: :none,
664
+ replicate_to: :none,
665
+ persist_to: :none,
549
666
  timeout: nil,
550
667
  retry_strategy: nil,
551
668
  client_context: nil,
@@ -554,18 +671,29 @@ module Couchbase
554
671
  @expiry = Utils::Time.extract_expiry_time(expiry)
555
672
  @preserve_expiry = preserve_expiry
556
673
  @transcoder = transcoder
674
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
675
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
676
+ end
677
+
678
+ @persist_to = persist_to
679
+ @replicate_to = replicate_to
557
680
  @durability_level = durability_level
558
681
  yield self if block_given?
559
682
  end
560
683
 
561
684
  def to_backend
562
685
  {
563
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
686
+ timeout: Utils::Time.extract_duration(@timeout),
564
687
  expiry: @expiry,
565
688
  preserve_expiry: @preserve_expiry,
566
689
  durability_level: @durability_level,
690
+ persist_to: @persist_to,
691
+ replicate_to: @replicate_to,
567
692
  }
568
693
  end
694
+
695
+ # @api private
696
+ DEFAULT = Upsert.new.freeze
569
697
  end
570
698
 
571
699
  # Options for {Collection#upsert_multi}
@@ -594,6 +722,18 @@ module Couchbase
594
722
  # +:persist_to_majority+::
595
723
  # The mutation must be persisted to a majority of the Data Service nodes.
596
724
  # Accordingly, it will be written to disk on those nodes.
725
+ # @param [Symbol] replicate_to number of nodes to replicate
726
+ # +:none+:: do not apply any replication requirements.
727
+ # +:one+:: wait for replication to at least one node.
728
+ # +:two+:: wait for replication to at least two nodes.
729
+ # +:three+:: wait for replication to at least three nodes.
730
+ # @param [Symbol] persist_to number of nodes to persist
731
+ # +:none+:: do not apply any persistence requirements.
732
+ # +:active+:: wait for persistence to active node
733
+ # +:one+:: wait for persistence to at least one node.
734
+ # +:two+:: wait for persistence to at least two nodes.
735
+ # +:three+:: wait for persistence to at least three nodes.
736
+ # +:four+:: wait for persistence to four nodes (active and replicas).
597
737
  #
598
738
  # @param [Integer, #in_milliseconds, nil] timeout
599
739
  # @param [Proc, nil] retry_strategy the custom retry strategy, if set
@@ -605,6 +745,8 @@ module Couchbase
605
745
  preserve_expiry: false,
606
746
  transcoder: JsonTranscoder.new,
607
747
  durability_level: :none,
748
+ replicate_to: :none,
749
+ persist_to: :none,
608
750
  timeout: nil,
609
751
  retry_strategy: nil,
610
752
  client_context: nil,
@@ -613,18 +755,29 @@ module Couchbase
613
755
  @expiry = Utils::Time.extract_expiry_time(expiry)
614
756
  @preserve_expiry = preserve_expiry
615
757
  @transcoder = transcoder
758
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
759
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
760
+ end
761
+
762
+ @persist_to = persist_to
763
+ @replicate_to = replicate_to
616
764
  @durability_level = durability_level
617
765
  yield self if block_given?
618
766
  end
619
767
 
620
768
  def to_backend
621
769
  {
622
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
770
+ timeout: Utils::Time.extract_duration(@timeout),
623
771
  expiry: @expiry,
624
772
  preserve_expiry: @preserve_expiry,
625
773
  durability_level: @durability_level,
774
+ persist_to: @persist_to,
775
+ replicate_to: @replicate_to,
626
776
  }
627
777
  end
778
+
779
+ # @api private
780
+ DEFAULT = UpsertMulti.new.freeze
628
781
  end
629
782
 
630
783
  # Options for {Collection#replace}
@@ -655,6 +808,18 @@ module Couchbase
655
808
  # +:persist_to_majority+::
656
809
  # The mutation must be persisted to a majority of the Data Service nodes.
657
810
  # Accordingly, it will be written to disk on those nodes.
811
+ # @param [Symbol] replicate_to number of nodes to replicate
812
+ # +:none+:: do not apply any replication requirements.
813
+ # +:one+:: wait for replication to at least one node.
814
+ # +:two+:: wait for replication to at least two nodes.
815
+ # +:three+:: wait for replication to at least three nodes.
816
+ # @param [Symbol] persist_to number of nodes to persist
817
+ # +:none+:: do not apply any persistence requirements.
818
+ # +:active+:: wait for persistence to active node
819
+ # +:one+:: wait for persistence to at least one node.
820
+ # +:two+:: wait for persistence to at least two nodes.
821
+ # +:three+:: wait for persistence to at least three nodes.
822
+ # +:four+:: wait for persistence to four nodes (active and replicas).
658
823
  #
659
824
  # @param [Integer, #in_milliseconds, nil] timeout
660
825
  # @param [Proc, nil] retry_strategy the custom retry strategy, if set
@@ -667,6 +832,8 @@ module Couchbase
667
832
  transcoder: JsonTranscoder.new,
668
833
  cas: nil,
669
834
  durability_level: :none,
835
+ replicate_to: :none,
836
+ persist_to: :none,
670
837
  timeout: nil,
671
838
  retry_strategy: nil,
672
839
  client_context: nil,
@@ -676,19 +843,30 @@ module Couchbase
676
843
  @preserve_expiry = preserve_expiry
677
844
  @transcoder = transcoder
678
845
  @cas = cas
846
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
847
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
848
+ end
849
+
850
+ @persist_to = persist_to
851
+ @replicate_to = replicate_to
679
852
  @durability_level = durability_level
680
853
  yield self if block_given?
681
854
  end
682
855
 
683
856
  def to_backend
684
857
  {
685
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
858
+ timeout: Utils::Time.extract_duration(@timeout),
686
859
  expiry: @expiry,
687
860
  preserve_expiry: @preserve_expiry,
688
861
  durability_level: @durability_level,
862
+ persist_to: @persist_to,
863
+ replicate_to: @replicate_to,
689
864
  cas: @cas,
690
865
  }
691
866
  end
867
+
868
+ # @api private
869
+ DEFAULT = Replace.new.freeze
692
870
  end
693
871
 
694
872
  # Options for {Collection#mutate_in}
@@ -725,6 +903,18 @@ module Couchbase
725
903
  # +:persist_to_majority+::
726
904
  # The mutation must be persisted to a majority of the Data Service nodes.
727
905
  # Accordingly, it will be written to disk on those nodes.
906
+ # @param [Symbol] replicate_to number of nodes to replicate
907
+ # +:none+:: do not apply any replication requirements.
908
+ # +:one+:: wait for replication to at least one node.
909
+ # +:two+:: wait for replication to at least two nodes.
910
+ # +:three+:: wait for replication to at least three nodes.
911
+ # @param [Symbol] persist_to number of nodes to persist
912
+ # +:none+:: do not apply any persistence requirements.
913
+ # +:active+:: wait for persistence to active node
914
+ # +:one+:: wait for persistence to at least one node.
915
+ # +:two+:: wait for persistence to at least two nodes.
916
+ # +:three+:: wait for persistence to at least three nodes.
917
+ # +:four+:: wait for persistence to four nodes (active and replicas).
728
918
  # @param [JsonTranscoder, #encode(Object)] transcoder used for encoding
729
919
  #
730
920
  # @param [Integer, #in_milliseconds, nil] timeout
@@ -740,6 +930,8 @@ module Couchbase
740
930
  access_deleted: false,
741
931
  create_as_deleted: false,
742
932
  durability_level: :none,
933
+ replicate_to: :none,
934
+ persist_to: :none,
743
935
  transcoder: JsonTranscoder.new,
744
936
  timeout: nil,
745
937
  retry_strategy: nil,
@@ -752,6 +944,12 @@ module Couchbase
752
944
  @cas = cas
753
945
  @access_deleted = access_deleted
754
946
  @create_as_deleted = create_as_deleted
947
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
948
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
949
+ end
950
+
951
+ @persist_to = persist_to
952
+ @replicate_to = replicate_to
755
953
  @durability_level = durability_level
756
954
  @transcoder = transcoder
757
955
  yield self if block_given?
@@ -760,10 +958,12 @@ module Couchbase
760
958
  # @api private
761
959
  def to_backend
762
960
  {
763
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
961
+ timeout: Utils::Time.extract_duration(@timeout),
764
962
  expiry: @expiry,
765
963
  preserve_expiry: @preserve_expiry,
766
964
  durability_level: @durability_level,
965
+ persist_to: @persist_to,
966
+ replicate_to: @replicate_to,
767
967
  cas: @cas,
768
968
  store_semantics: @store_semantics,
769
969
  access_deleted: @access_deleted,
@@ -778,6 +978,9 @@ module Couchbase
778
978
  # @api private
779
979
  # @return [Boolean]
780
980
  attr_accessor :create_as_deleted
981
+
982
+ # @api private
983
+ DEFAULT = MutateIn.new.freeze
781
984
  end
782
985
 
783
986
  # Options for {Collection#lookup_in}
@@ -810,7 +1013,7 @@ module Couchbase
810
1013
  # @api private
811
1014
  def to_backend
812
1015
  {
813
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
1016
+ timeout: Utils::Time.extract_duration(@timeout),
814
1017
  access_deleted: @access_deleted,
815
1018
  }
816
1019
  end
@@ -818,6 +1021,9 @@ module Couchbase
818
1021
  # @api private
819
1022
  # @return [Boolean]
820
1023
  attr_accessor :access_deleted
1024
+
1025
+ # @api private
1026
+ DEFAULT = LookupIn.new.freeze
821
1027
  end
822
1028
 
823
1029
  # Options for {BinaryCollection#append}
@@ -847,10 +1053,13 @@ module Couchbase
847
1053
  # @api private
848
1054
  def to_backend
849
1055
  {
850
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
1056
+ timeout: Utils::Time.extract_duration(@timeout),
851
1057
  cas: @cas,
852
1058
  }
853
1059
  end
1060
+
1061
+ # @api private
1062
+ DEFAULT = Append.new.freeze
854
1063
  end
855
1064
 
856
1065
  # Options for {BinaryCollection#prepend}
@@ -881,10 +1090,13 @@ module Couchbase
881
1090
  # @api private
882
1091
  def to_backend
883
1092
  {
884
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
1093
+ timeout: Utils::Time.extract_duration(@timeout),
885
1094
  cas: @cas,
886
1095
  }
887
1096
  end
1097
+
1098
+ # @api private
1099
+ DEFAULT = Prepend.new.freeze
888
1100
  end
889
1101
 
890
1102
  # Options for {BinaryCollection#increment}
@@ -893,15 +1105,12 @@ module Couchbase
893
1105
  attr_accessor :initial # @return [Integer]
894
1106
  attr_accessor :expiry # @return [Integer, #in_seconds]
895
1107
  attr_accessor :durability_level # @return [Symbol]
896
- attr_accessor :preserve_expiry # @return [Boolean]
897
1108
 
898
1109
  # Creates an instance of options for {BinaryCollection#increment}
899
1110
  #
900
1111
  # @param [Integer] delta the delta for the operation
901
1112
  # @param [Integer] initial if present, holds the initial value
902
1113
  # @param [Integer, #in_seconds, Time, nil] expiry if set, holds the expiration for the operation
903
- # @param [Boolean] preserve_expiry if true and the document exists, the server will preserve current expiration
904
- # for the document, otherwise will use {expiry} from the operation.
905
1114
  # @param [Symbol] durability_level level of durability
906
1115
  # +:none+::
907
1116
  # no enhanced durability required for the mutation
@@ -915,6 +1124,18 @@ module Couchbase
915
1124
  # +:persist_to_majority+::
916
1125
  # The mutation must be persisted to a majority of the Data Service nodes.
917
1126
  # Accordingly, it will be written to disk on those nodes.
1127
+ # @param [Symbol] replicate_to number of nodes to replicate
1128
+ # +:none+:: do not apply any replication requirements.
1129
+ # +:one+:: wait for replication to at least one node.
1130
+ # +:two+:: wait for replication to at least two nodes.
1131
+ # +:three+:: wait for replication to at least three nodes.
1132
+ # @param [Symbol] persist_to number of nodes to persist
1133
+ # +:none+:: do not apply any persistence requirements.
1134
+ # +:active+:: wait for persistence to active node
1135
+ # +:one+:: wait for persistence to at least one node.
1136
+ # +:two+:: wait for persistence to at least two nodes.
1137
+ # +:three+:: wait for persistence to at least three nodes.
1138
+ # +:four+:: wait for persistence to four nodes (active and replicas).
918
1139
  #
919
1140
  # @param [Integer, #in_milliseconds, nil] timeout
920
1141
  # @param [Proc, nil] retry_strategy the custom retry strategy, if set
@@ -925,8 +1146,9 @@ module Couchbase
925
1146
  def initialize(delta: 1,
926
1147
  initial: nil,
927
1148
  expiry: nil,
928
- preserve_expiry: false,
929
1149
  durability_level: :none,
1150
+ replicate_to: :none,
1151
+ persist_to: :none,
930
1152
  timeout: nil,
931
1153
  retry_strategy: nil,
932
1154
  client_context: nil,
@@ -937,7 +1159,12 @@ module Couchbase
937
1159
  @delta = delta
938
1160
  @initial = initial
939
1161
  @expiry = Utils::Time.extract_expiry_time(expiry)
940
- @preserve_expiry = preserve_expiry
1162
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
1163
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
1164
+ end
1165
+
1166
+ @persist_to = persist_to
1167
+ @replicate_to = replicate_to
941
1168
  @durability_level = durability_level
942
1169
  yield self if block_given?
943
1170
  end
@@ -952,14 +1179,18 @@ module Couchbase
952
1179
  # @api private
953
1180
  def to_backend
954
1181
  {
955
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
1182
+ timeout: Utils::Time.extract_duration(@timeout),
956
1183
  delta: @delta,
957
1184
  initial_value: @initial,
958
1185
  expiry: @expiry,
959
- preserve_expiry: @preserve_expiry,
960
1186
  durability_level: @durability_level,
1187
+ persist_to: @persist_to,
1188
+ replicate_to: @replicate_to,
961
1189
  }
962
1190
  end
1191
+
1192
+ # @api private
1193
+ DEFAULT = Increment.new.freeze
963
1194
  end
964
1195
 
965
1196
  # Options for {BinaryCollection#decrement}
@@ -968,15 +1199,12 @@ module Couchbase
968
1199
  attr_accessor :initial # @return [Integer]
969
1200
  attr_accessor :expiry # @return [Integer, #in_seconds]
970
1201
  attr_accessor :durability_level # @return [Symbol]
971
- attr_accessor :preserve_expiry # @return [Boolean]
972
1202
 
973
1203
  # Creates an instance of options for {BinaryCollection#decrement}
974
1204
  #
975
1205
  # @param [Integer] delta the delta for the operation
976
1206
  # @param [Integer] initial if present, holds the initial value
977
1207
  # @param [Integer, #in_seconds, Time, nil] expiry if set, holds the expiration for the operation
978
- # @param [Boolean] preserve_expiry if true and the document exists, the server will preserve current expiration
979
- # for the document, otherwise will use {expiry} from the operation.
980
1208
  # @param [Symbol] durability_level level of durability
981
1209
  # +:none+::
982
1210
  # no enhanced durability required for the mutation
@@ -990,6 +1218,18 @@ module Couchbase
990
1218
  # +:persist_to_majority+::
991
1219
  # The mutation must be persisted to a majority of the Data Service nodes.
992
1220
  # Accordingly, it will be written to disk on those nodes.
1221
+ # @param [Symbol] replicate_to number of nodes to replicate
1222
+ # +:none+:: do not apply any replication requirements.
1223
+ # +:one+:: wait for replication to at least one node.
1224
+ # +:two+:: wait for replication to at least two nodes.
1225
+ # +:three+:: wait for replication to at least three nodes.
1226
+ # @param [Symbol] persist_to number of nodes to persist
1227
+ # +:none+:: do not apply any persistence requirements.
1228
+ # +:active+:: wait for persistence to active node
1229
+ # +:one+:: wait for persistence to at least one node.
1230
+ # +:two+:: wait for persistence to at least two nodes.
1231
+ # +:three+:: wait for persistence to at least three nodes.
1232
+ # +:four+:: wait for persistence to four nodes (active and replicas).
993
1233
  #
994
1234
  # @param [Integer, #in_milliseconds, nil] timeout
995
1235
  # @param [Proc, nil] retry_strategy the custom retry strategy, if set
@@ -1000,8 +1240,9 @@ module Couchbase
1000
1240
  def initialize(delta: 1,
1001
1241
  initial: nil,
1002
1242
  expiry: nil,
1003
- preserve_expiry: false,
1004
1243
  durability_level: :none,
1244
+ replicate_to: :none,
1245
+ persist_to: :none,
1005
1246
  timeout: nil,
1006
1247
  retry_strategy: nil,
1007
1248
  client_context: nil,
@@ -1012,7 +1253,12 @@ module Couchbase
1012
1253
  @delta = delta
1013
1254
  @initial = initial
1014
1255
  @expiry = Utils::Time.extract_expiry_time(expiry)
1015
- @preserve_expiry = preserve_expiry
1256
+ if durability_level != :none && (replicate_to != :none || persist_to != :none)
1257
+ raise ArgumentError, "durability_level conflicts with replicate_to and persist_to options"
1258
+ end
1259
+
1260
+ @persist_to = persist_to
1261
+ @replicate_to = replicate_to
1016
1262
  @durability_level = durability_level
1017
1263
  yield self if block_given?
1018
1264
  end
@@ -1027,14 +1273,18 @@ module Couchbase
1027
1273
  # @api private
1028
1274
  def to_backend
1029
1275
  {
1030
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
1276
+ timeout: Utils::Time.extract_duration(@timeout),
1031
1277
  delta: @delta,
1032
1278
  initial_value: @initial,
1033
1279
  expiry: @expiry,
1034
- preserve_expiry: @preserve_expiry,
1035
1280
  durability_level: @durability_level,
1281
+ persist_to: @persist_to,
1282
+ replicate_to: @replicate_to,
1036
1283
  }
1037
1284
  end
1285
+
1286
+ # @api private
1287
+ DEFAULT = Decrement.new.freeze
1038
1288
  end
1039
1289
 
1040
1290
  # Options for {Datastructures::CouchbaseList#initialize}
@@ -1146,6 +1396,22 @@ module Couchbase
1146
1396
  end
1147
1397
 
1148
1398
  # Options for {Couchbase::Cluster.connect}
1399
+ #
1400
+ # @example Pass authenticator object to Options
1401
+ # Cluster.connect("couchbase://localhost",
1402
+ # Options::Cluster(authenticator: PasswordAuthenticator.new("Administrator", "password")))
1403
+ #
1404
+ # @example Shorter version, more useful for interactive sessions
1405
+ # Cluster.connect("couchbase://localhost", "Administrator", "password")
1406
+ #
1407
+ # @example Authentication with TLS client certificate (note +couchbases://+ schema)
1408
+ # Cluster.connect("couchbases://localhost?trust_certificate=/tmp/ca.pem",
1409
+ # Options::Cluster(authenticator: CertificateAuthenticator.new("/tmp/certificate.pem", "/tmp/private.key")))
1410
+ #
1411
+ # @see https://docs.couchbase.com/server/current/manage/manage-security/configure-client-certificates.html
1412
+ #
1413
+ # @see .Cluster
1414
+ #
1149
1415
  class Cluster
1150
1416
  attr_accessor :authenticator # @return [PasswordAuthenticator, CertificateAuthenticator]
1151
1417
 
@@ -1163,9 +1429,33 @@ module Couchbase
1163
1429
  attr_accessor :analytics_threshold # @return [nil, Integer, #in_milliseconds]
1164
1430
  attr_accessor :management_threshold # @return [nil, Integer, #in_milliseconds]
1165
1431
 
1432
+ attr_accessor :bootstrap_timeout # @return [nil, Integer, #in_milliseconds]
1433
+ attr_accessor :resolve_timeout # @return [nil, Integer, #in_milliseconds]
1434
+ attr_accessor :connect_timeout # @return [nil, Integer, #in_milliseconds]
1435
+ attr_accessor :key_value_timeout # @return [nil, Integer, #in_milliseconds]
1436
+ attr_accessor :view_timeout # @return [nil, Integer, #in_milliseconds]
1437
+ attr_accessor :query_timeout # @return [nil, Integer, #in_milliseconds]
1438
+ attr_accessor :analytics_timeout # @return [nil, Integer, #in_milliseconds]
1439
+ attr_accessor :search_timeout # @return [nil, Integer, #in_milliseconds]
1440
+ attr_accessor :management_timeout # @return [nil, Integer, #in_milliseconds]
1441
+ attr_accessor :dns_srv_timeout # @return [nil, Integer, #in_milliseconds]
1442
+ attr_accessor :tcp_keep_alive_interval # @return [nil, Integer, #in_milliseconds]
1443
+ attr_accessor :config_poll_interval # @return [nil, Integer, #in_milliseconds]
1444
+ attr_accessor :config_poll_floor # @return [nil, Integer, #in_milliseconds]
1445
+ attr_accessor :config_idle_redial_timeout # @return [nil, Integer, #in_milliseconds]
1446
+ attr_accessor :idle_http_connection_timeout # @return [nil, Integer, #in_milliseconds]
1447
+
1166
1448
  # Creates an instance of options for {Couchbase::Cluster.connect}
1167
1449
  #
1168
1450
  # @param [PasswordAuthenticator, CertificateAuthenticator] authenticator
1451
+ # @param [nil, Integer, #in_milliseconds] key_value_timeout default timeout for Key/Value operations, e.g. {Collection#get}
1452
+ # @param [nil, Integer, #in_milliseconds] view_timeout default timeout for View query
1453
+ # @param [nil, Integer, #in_milliseconds] query_timeout default timeout for N1QL query
1454
+ # @param [nil, Integer, #in_milliseconds] analytics_timeout default timeout for Analytics query
1455
+ # @param [nil, Integer, #in_milliseconds] search_timeout default timeout for Search query
1456
+ # @param [nil, Integer, #in_milliseconds] management_timeout default timeout for management operations
1457
+ #
1458
+ # @see .Cluster
1169
1459
  #
1170
1460
  # @yieldparam [Cluster] self
1171
1461
  def initialize(authenticator: nil,
@@ -1181,7 +1471,22 @@ module Couchbase
1181
1471
  view_threshold: nil,
1182
1472
  search_threshold: nil,
1183
1473
  analytics_threshold: nil,
1184
- management_threshold: nil)
1474
+ management_threshold: nil,
1475
+ bootstrap_timeout: nil,
1476
+ resolve_timeout: nil,
1477
+ connect_timeout: nil,
1478
+ key_value_timeout: nil,
1479
+ view_timeout: nil,
1480
+ query_timeout: nil,
1481
+ analytics_timeout: nil,
1482
+ search_timeout: nil,
1483
+ management_timeout: nil,
1484
+ dns_srv_timeout: nil,
1485
+ tcp_keep_alive_interval: nil,
1486
+ config_poll_interval: nil,
1487
+ config_poll_floor: nil,
1488
+ config_idle_redial_timeout: nil,
1489
+ idle_http_connection_timeout: nil)
1185
1490
  @authenticator = authenticator
1186
1491
  @enable_metrics = enable_metrics
1187
1492
  @metrics_emit_interval = metrics_emit_interval
@@ -1196,6 +1501,21 @@ module Couchbase
1196
1501
  @search_threshold = search_threshold
1197
1502
  @analytics_threshold = analytics_threshold
1198
1503
  @management_threshold = management_threshold
1504
+ @bootstrap_timeout = bootstrap_timeout
1505
+ @resolve_timeout = resolve_timeout
1506
+ @connect_timeout = connect_timeout
1507
+ @key_value_timeout = key_value_timeout
1508
+ @view_timeout = view_timeout
1509
+ @query_timeout = query_timeout
1510
+ @analytics_timeout = analytics_timeout
1511
+ @search_timeout = search_timeout
1512
+ @management_timeout = management_timeout
1513
+ @dns_srv_timeout = dns_srv_timeout
1514
+ @tcp_keep_alive_interval = tcp_keep_alive_interval
1515
+ @config_poll_interval = config_poll_interval
1516
+ @config_poll_floor = config_poll_floor
1517
+ @config_idle_redial_timeout = config_idle_redial_timeout
1518
+ @idle_http_connection_timeout = idle_http_connection_timeout
1199
1519
  yield self if block_given?
1200
1520
  end
1201
1521
 
@@ -1205,6 +1525,11 @@ module Couchbase
1205
1525
  @authenticator = PasswordAuthenticator.new(username, password)
1206
1526
  end
1207
1527
 
1528
+ # @param [String] profile_name The name of the configuration profile to apply (e.g. "wan_development")
1529
+ def apply_profile(profile_name)
1530
+ ConfigProfiles::KNOWN_PROFILES.apply(profile_name, self)
1531
+ end
1532
+
1208
1533
  # @api private
1209
1534
  def to_backend
1210
1535
  {
@@ -1221,6 +1546,21 @@ module Couchbase
1221
1546
  search_threshold: Utils::Time.extract_duration(@search_threshold),
1222
1547
  analytics_threshold: Utils::Time.extract_duration(@analytics_threshold),
1223
1548
  management_threshold: Utils::Time.extract_duration(@management_threshold),
1549
+ bootstrap_timeout: Utils::Time.extract_duration(@bootstrap_timeout),
1550
+ resolve_timeout: Utils::Time.extract_duration(@resolve_timeout),
1551
+ connect_timeout: Utils::Time.extract_duration(@connect_timeout),
1552
+ key_value_timeout: Utils::Time.extract_duration(@key_value_timeout),
1553
+ view_timeout: Utils::Time.extract_duration(@view_timeout),
1554
+ query_timeout: Utils::Time.extract_duration(@query_timeout),
1555
+ analytics_timeout: Utils::Time.extract_duration(@analytics_timeout),
1556
+ search_timeout: Utils::Time.extract_duration(@search_timeout),
1557
+ management_timeout: Utils::Time.extract_duration(@management_timeout),
1558
+ dns_srv_timeout: Utils::Time.extract_duration(@dns_srv_timeout),
1559
+ tcp_keep_alive_interval: Utils::Time.extract_duration(@tcp_keep_alive_interval),
1560
+ config_poll_interval: Utils::Time.extract_duration(@config_poll_interval),
1561
+ config_poll_floor: Utils::Time.extract_duration(@config_poll_floor),
1562
+ config_idle_redial_timeout: Utils::Time.extract_duration(@config_idle_redial_timeout),
1563
+ idle_http_connection_timeout: Utils::Time.extract_duration(@idle_http_connection_timeout),
1224
1564
  }
1225
1565
  end
1226
1566
  end
@@ -1238,6 +1578,9 @@ module Couchbase
1238
1578
  @report_id = report_id
1239
1579
  yield self if block_given?
1240
1580
  end
1581
+
1582
+ # @api private
1583
+ DEFAULT = Diagnostics.new.freeze
1241
1584
  end
1242
1585
 
1243
1586
  # Options for {Couchbase::Bucket#ping}
@@ -1265,11 +1608,14 @@ module Couchbase
1265
1608
  # @api private
1266
1609
  def to_backend
1267
1610
  {
1268
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
1611
+ timeout: Utils::Time.extract_duration(@timeout),
1269
1612
  service_types: @service_types,
1270
1613
  report_id: @report_id,
1271
1614
  }
1272
1615
  end
1616
+
1617
+ # @api private
1618
+ DEFAULT = Ping.new.freeze
1273
1619
  end
1274
1620
 
1275
1621
  # Options for {Couchbase::Cluster#analytics_query}
@@ -1370,7 +1716,7 @@ module Couchbase
1370
1716
  # @api private
1371
1717
  def to_backend(scope_name: nil, bucket_name: nil)
1372
1718
  {
1373
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
1719
+ timeout: Utils::Time.extract_duration(@timeout),
1374
1720
  client_context_id: @client_context_id,
1375
1721
  scan_consistency: @scan_consistency,
1376
1722
  readonly: @readonly,
@@ -1384,6 +1730,9 @@ module Couchbase
1384
1730
  }
1385
1731
  end
1386
1732
 
1733
+ # @api private
1734
+ DEFAULT = Analytics.new.freeze
1735
+
1387
1736
  private
1388
1737
 
1389
1738
  # @api private
@@ -1600,15 +1949,18 @@ module Couchbase
1600
1949
 
1601
1950
  # @api private
1602
1951
  def to_backend(scope_name: nil, bucket_name: nil)
1952
+ if scope_name && bucket_name
1953
+ default_query_context = format("default:`%<bucket>s`.`%<scope>s`", bucket: bucket_name, scope: scope_name)
1954
+ end
1603
1955
  {
1604
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
1956
+ timeout: Utils::Time.extract_duration(@timeout),
1605
1957
  adhoc: @adhoc,
1606
1958
  client_context_id: @client_context_id,
1607
1959
  max_parallelism: @max_parallelism,
1608
1960
  readonly: @readonly,
1609
1961
  flex_index: @flex_index,
1610
1962
  preserve_expiry: @preserve_expiry,
1611
- scan_wait: @scan_wait.respond_to?(:in_milliseconds) ? @scan_wait.public_send(:in_milliseconds) : @scan_wait,
1963
+ scan_wait: Utils::Time.extract_duration(@scan_wait),
1612
1964
  scan_cap: @scan_cap,
1613
1965
  pipeline_batch: @pipeline_batch,
1614
1966
  pipeline_cap: @pipeline_cap,
@@ -1619,11 +1971,12 @@ module Couchbase
1619
1971
  raw_parameters: @raw_parameters,
1620
1972
  scan_consistency: @scan_consistency,
1621
1973
  mutation_state: @mutation_state&.to_a,
1622
- scope_qualifier: @scope_qualifier,
1623
- scope_name: scope_name,
1624
- bucket_name: bucket_name,
1974
+ query_context: @scope_qualifier || default_query_context,
1625
1975
  }
1626
1976
  end
1977
+
1978
+ # @api private
1979
+ DEFAULT = Query.new.freeze
1627
1980
  end
1628
1981
 
1629
1982
  # Options for {Couchbase::Cluster#search_query}
@@ -1740,7 +2093,7 @@ module Couchbase
1740
2093
  # @api private
1741
2094
  def to_backend(scope_name: nil)
1742
2095
  {
1743
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
2096
+ timeout: Utils::Time.extract_duration(@timeout),
1744
2097
  limit: @limit,
1745
2098
  skip: @skip,
1746
2099
  explain: @explain,
@@ -1757,6 +2110,9 @@ module Couchbase
1757
2110
  mutation_state: @mutation_state&.to_a,
1758
2111
  }
1759
2112
  end
2113
+
2114
+ # @api private
2115
+ DEFAULT = Search.new.freeze
1760
2116
  end
1761
2117
 
1762
2118
  # Options for {Couchbase::Cluster#view_query}
@@ -1859,7 +2215,7 @@ module Couchbase
1859
2215
  # @api private
1860
2216
  def to_backend
1861
2217
  {
1862
- timeout: @timeout.respond_to?(:in_milliseconds) ? @timeout.public_send(:in_milliseconds) : @timeout,
2218
+ timeout: Utils::Time.extract_duration(@timeout),
1863
2219
  scan_consistency: @scan_consistency,
1864
2220
  skip: @skip,
1865
2221
  limit: @limit,
@@ -1878,6 +2234,9 @@ module Couchbase
1878
2234
  debug: @debug,
1879
2235
  }
1880
2236
  end
2237
+
2238
+ # @api private
2239
+ DEFAULT = View.new.freeze
1881
2240
  end
1882
2241
 
1883
2242
  # @api private
@@ -2131,18 +2490,7 @@ module Couchbase
2131
2490
 
2132
2491
  # Construct {Cluster} options for {Cluster.connect}
2133
2492
  #
2134
- # @example Pass authenticator object to Options
2135
- # Cluster.connect("couchbase://localhost",
2136
- # Options::Cluster(authenticator: PasswordAuthenticator.new("Administrator", "password")))
2137
- #
2138
- # @example Shorter version, more useful for interactive sessions
2139
- # Cluster.connect("couchbase://localhost", "Administrator", "password")
2140
- #
2141
- # @example Authentication with TLS client certificate (note +couchbases://+ schema)
2142
- # Cluster.connect("couchbases://localhost?trust_certificate=/tmp/ca.pem",
2143
- # Options::Cluster(authenticator: CertificateAuthenticator.new("/tmp/certificate.pem", "/tmp/private.key")))
2144
- #
2145
- # @see https://docs.couchbase.com/server/current/manage/manage-security/configure-client-certificates.html
2493
+ # It forwards all its arguments to {Cluster#initialize}
2146
2494
  #
2147
2495
  # @return [Cluster]
2148
2496
  def Cluster(**args)