couchbase 3.5.4 → 3.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ext/CMakeLists.txt +8 -6
- data/ext/cache/cpm/{CPM_0.38.6.cmake → CPM_0.40.5.cmake} +152 -22
- data/ext/cache/extconf_include.rb +3 -3
- data/ext/cache/mozilla-ca-bundle.crt +94 -118
- data/ext/cache/mozilla-ca-bundle.sha256 +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/CMakeLists.txt +30 -6
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/utils.cmake +13 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async_logger-inl.h +5 -7
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/mpmc_blocking_q.h +3 -3
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/os-inl.h +3 -3
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/thread_pool-inl.h +3 -8
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/thread_pool.h +3 -14
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/base.h +47 -31
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/format-inl.h +32 -8
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/format.h +22 -14
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/ranges.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/mdc.h +4 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/pattern_formatter-inl.h +16 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ansicolor_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/base_sink.h +4 -4
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/callback_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/daily_file_sink.h +3 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/hourly_file_sink.h +2 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/msvc_sink.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/rotating_file_sink-inl.h +1 -1
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/syslog_sink.h +3 -2
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/wincolor_sink-inl.h +9 -0
- data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/version.h +2 -2
- data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/format.cc → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/src/bundled_fmtlib_format.cpp} +10 -5
- data/ext/couchbase/CMakeLists.txt +3 -2
- data/ext/couchbase/cmake/APKBUILD.in +54 -0
- data/ext/couchbase/cmake/Backtrace.cmake +3 -1
- data/ext/couchbase/cmake/CPM.cmake +1 -1
- data/ext/couchbase/cmake/CompilerWarnings.cmake +0 -5
- data/ext/couchbase/cmake/Packaging.cmake +174 -11
- data/ext/couchbase/cmake/RPath.cmake +10 -0
- data/ext/couchbase/cmake/Testing.cmake +0 -4
- data/ext/couchbase/cmake/ThirdPartyDependencies.cmake +7 -26
- data/ext/couchbase/cmake/VersionInfo.cmake +4 -0
- data/ext/couchbase/cmake/build_version.hxx.in +1 -0
- data/ext/couchbase/cmake/couchbase-cxx-client.spec.in +2 -2
- data/ext/couchbase/cmake/couchbase_cxx_client.pc.in +2 -2
- data/ext/couchbase/core/agent_config.cxx +1 -1
- data/ext/couchbase/core/agent_group_config.cxx +1 -1
- data/ext/couchbase/core/bucket.cxx +25 -23
- data/ext/couchbase/core/bucket.hxx +2 -1
- data/ext/couchbase/core/cluster.cxx +9 -9
- data/ext/couchbase/core/cluster.hxx +2 -1
- data/ext/couchbase/core/cluster_agent_config.cxx +1 -1
- data/ext/couchbase/core/collections_component.cxx +1 -1
- data/ext/couchbase/core/columnar/agent_config.cxx +2 -2
- data/ext/couchbase/core/columnar/error.hxx +0 -1
- data/ext/couchbase/core/columnar/query_component.cxx +2 -2
- data/ext/couchbase/core/config_profiles.cxx +1 -1
- data/ext/couchbase/core/core_sdk_shim.cxx +1 -1
- data/ext/couchbase/core/crud_component.cxx +1 -1
- data/ext/couchbase/core/design_document_namespace_fmt.hxx +1 -1
- data/ext/couchbase/core/diagnostics_fmt.hxx +1 -1
- data/ext/couchbase/core/document_id.cxx +1 -1
- data/ext/couchbase/core/document_id_fmt.hxx +1 -1
- data/ext/couchbase/core/error_context/analytics_json.hxx +3 -1
- data/ext/couchbase/core/error_context/key_value_json.hxx +1 -1
- data/ext/couchbase/core/error_context/query_public_json.hxx +1 -1
- data/ext/couchbase/core/error_context/subdocument_json.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_error_map_attribute.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_extended_error_info.hxx +1 -1
- data/ext/couchbase/core/fmt/key_value_status_code.hxx +1 -1
- data/ext/couchbase/core/http_component.cxx +3 -3
- data/ext/couchbase/core/impl/analytics.cxx +1 -0
- data/ext/couchbase/core/impl/best_effort_retry_strategy.cxx +1 -1
- data/ext/couchbase/core/impl/cluster.cxx +55 -18
- data/ext/couchbase/core/impl/collection.cxx +40 -15
- data/ext/couchbase/core/impl/date_range.cxx +2 -2
- data/ext/couchbase/core/impl/date_range_query.cxx +2 -2
- data/ext/couchbase/core/impl/dns_srv_tracker.cxx +1 -1
- data/ext/couchbase/core/impl/error.cxx +27 -4
- data/ext/couchbase/core/impl/expiry.cxx +2 -2
- data/ext/couchbase/core/impl/fail_fast_retry_strategy.cxx +1 -2
- data/ext/couchbase/core/impl/get_replica.hxx +2 -0
- data/ext/couchbase/core/impl/key_value_error_context.cxx +6 -4
- data/ext/couchbase/core/impl/lookup_in_replica.hxx +2 -0
- data/ext/couchbase/core/impl/numeric_range.cxx +1 -1
- data/ext/couchbase/core/impl/observe_poll.cxx +7 -7
- data/ext/couchbase/core/impl/observe_seqno.hxx +2 -0
- data/ext/couchbase/core/impl/query.cxx +1 -0
- data/ext/couchbase/core/impl/query_error_context.cxx +3 -2
- data/ext/couchbase/core/impl/replica_utils.cxx +5 -5
- data/ext/couchbase/core/impl/replica_utils.hxx +2 -1
- data/ext/couchbase/core/impl/scope.cxx +5 -6
- data/ext/couchbase/core/impl/search.cxx +3 -1
- data/ext/couchbase/core/io/config_tracker.cxx +1 -1
- data/ext/couchbase/core/io/dns_client.cxx +23 -8
- data/ext/couchbase/core/io/http_command.hxx +2 -2
- data/ext/couchbase/core/io/http_parser.cxx +1 -1
- data/ext/couchbase/core/io/http_session.cxx +4 -0
- data/ext/couchbase/core/io/http_session.hxx +4 -2
- data/ext/couchbase/core/io/mcbp_command.hxx +2 -2
- data/ext/couchbase/core/key_value_config.cxx +2 -2
- data/ext/couchbase/core/logger/logger.cxx +1 -1
- data/ext/couchbase/core/logger/logger.hxx +1 -1
- data/ext/couchbase/core/management/rbac_fmt.hxx +1 -1
- data/ext/couchbase/core/mcbp/operation_queue.cxx +1 -1
- data/ext/couchbase/core/mcbp/packet.cxx +1 -1
- data/ext/couchbase/core/meta/features.hxx +16 -0
- data/ext/couchbase/core/meta/version.cxx +48 -7
- data/ext/couchbase/core/operations/document_analytics.cxx +23 -17
- data/ext/couchbase/core/operations/document_analytics.hxx +1 -0
- data/ext/couchbase/core/operations/document_append.hxx +2 -0
- data/ext/couchbase/core/operations/document_decrement.hxx +2 -0
- data/ext/couchbase/core/operations/document_exists.hxx +2 -0
- data/ext/couchbase/core/operations/document_get.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_all_replicas.hxx +5 -4
- data/ext/couchbase/core/operations/document_get_and_lock.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_and_touch.hxx +2 -0
- data/ext/couchbase/core/operations/document_get_any_replica.hxx +5 -3
- data/ext/couchbase/core/operations/document_get_projected.hxx +2 -0
- data/ext/couchbase/core/operations/document_increment.hxx +2 -0
- data/ext/couchbase/core/operations/document_insert.hxx +2 -0
- data/ext/couchbase/core/operations/document_lookup_in.hxx +2 -0
- data/ext/couchbase/core/operations/document_lookup_in_all_replicas.hxx +5 -3
- data/ext/couchbase/core/operations/document_lookup_in_any_replica.hxx +5 -3
- data/ext/couchbase/core/operations/document_mutate_in.hxx +2 -0
- data/ext/couchbase/core/operations/document_prepend.hxx +2 -0
- data/ext/couchbase/core/operations/document_query.hxx +1 -0
- data/ext/couchbase/core/operations/document_remove.hxx +2 -0
- data/ext/couchbase/core/operations/document_replace.hxx +2 -0
- data/ext/couchbase/core/operations/document_search.hxx +1 -0
- data/ext/couchbase/core/operations/document_touch.hxx +2 -0
- data/ext/couchbase/core/operations/document_unlock.hxx +2 -0
- data/ext/couchbase/core/operations/document_upsert.hxx +2 -0
- data/ext/couchbase/core/operations/document_view.hxx +1 -0
- data/ext/couchbase/core/operations/http_noop.hxx +2 -0
- data/ext/couchbase/core/operations/management/CMakeLists.txt +0 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataset_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataset_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataverse_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_dataverse_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_get_pending_mutations.hxx +2 -0
- data/ext/couchbase/core/operations/management/analytics_index_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_index_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_connect.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_connect.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_disconnect.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/analytics_link_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_get_all.cxx +24 -16
- data/ext/couchbase/core/operations/management/analytics_link_get_all.hxx +4 -3
- data/ext/couchbase/core/operations/management/analytics_link_replace.hxx +1 -0
- data/ext/couchbase/core/operations/management/analytics_link_utils.hxx +4 -3
- data/ext/couchbase/core/operations/management/bucket_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_describe.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_describe.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_flush.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_flush.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/bucket_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/bucket_update.hxx +1 -0
- data/ext/couchbase/core/operations/management/change_password.cxx +1 -1
- data/ext/couchbase/core/operations/management/change_password.hxx +1 -0
- data/ext/couchbase/core/operations/management/cluster_describe.hxx +1 -0
- data/ext/couchbase/core/operations/management/cluster_developer_preview_enable.hxx +1 -0
- data/ext/couchbase/core/operations/management/collection_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_create.hxx +2 -0
- data/ext/couchbase/core/operations/management/collection_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/collection_update.cxx +1 -1
- data/ext/couchbase/core/operations/management/collection_update.hxx +2 -0
- data/ext/couchbase/core/operations/management/collections_manifest_get.hxx +2 -0
- data/ext/couchbase/core/operations/management/eventing_deploy_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_deploy_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_drop_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_drop_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_all_functions.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_get_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_get_status.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_pause_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_pause_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_resume_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_resume_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.cxx +1 -1
- data/ext/couchbase/core/operations/management/eventing_undeploy_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/eventing_upsert_function.cxx +1 -2
- data/ext/couchbase/core/operations/management/eventing_upsert_function.hxx +3 -2
- data/ext/couchbase/core/operations/management/freeform.hxx +2 -0
- data/ext/couchbase/core/operations/management/group_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/group_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/group_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/group_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_build.hxx +7 -5
- data/ext/couchbase/core/operations/management/query_index_build_deferred.hxx +3 -0
- data/ext/couchbase/core/operations/management/query_index_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/query_index_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/query_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/query_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/query_index_get_all_deferred.hxx +3 -0
- data/ext/couchbase/core/operations/management/role_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_create.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_create.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/scope_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/scope_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_get_stats.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_analyze_document.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_analyze_document.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_ingest.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_ingest.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_plan_freeze.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_control_query.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_control_query.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_documents_count.hxx +2 -0
- data/ext/couchbase/core/operations/management/search_index_get_stats.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_get_stats.hxx +1 -0
- data/ext/couchbase/core/operations/management/search_index_upsert.cxx +1 -1
- data/ext/couchbase/core/operations/management/search_index_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_get_all.hxx +1 -0
- data/ext/couchbase/core/operations/management/user_upsert.cxx +3 -3
- data/ext/couchbase/core/operations/management/user_upsert.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_drop.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_drop.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_get.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_get.hxx +1 -0
- data/ext/couchbase/core/operations/management/view_index_get_all.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_get_all.hxx +2 -0
- data/ext/couchbase/core/operations/management/view_index_upsert.cxx +1 -1
- data/ext/couchbase/core/operations/management/view_index_upsert.hxx +1 -0
- data/ext/couchbase/core/origin.cxx +3 -2
- data/ext/couchbase/core/platform/base64.h +8 -8
- data/ext/couchbase/core/protocol/client_opcode_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/client_response.hxx +1 -1
- data/ext/couchbase/core/protocol/frame_info_id_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/hello_feature_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/magic_fmt.hxx +1 -1
- data/ext/couchbase/core/protocol/server_opcode_fmt.hxx +1 -1
- data/ext/couchbase/core/query_context.hxx +7 -6
- data/ext/couchbase/core/retry_orchestrator.cxx +1 -1
- data/ext/couchbase/core/sasl/CMakeLists.txt +0 -1
- data/ext/couchbase/core/sasl/error_fmt.h +1 -1
- data/ext/couchbase/core/seed_config.cxx +2 -2
- data/ext/couchbase/core/service_type_fmt.hxx +1 -1
- data/ext/couchbase/core/topology/capabilities_fmt.hxx +1 -1
- data/ext/couchbase/core/topology/collections_manifest_fmt.hxx +2 -1
- data/ext/couchbase/core/topology/configuration_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/async_attempt_context.cxx +1 -1
- data/ext/couchbase/core/transactions/async_attempt_context.hxx +9 -22
- data/ext/couchbase/core/transactions/attempt_context.cxx +1 -1
- data/ext/couchbase/core/transactions/attempt_context.hxx +6 -33
- data/ext/couchbase/core/transactions/attempt_context_impl.cxx +41 -41
- data/ext/couchbase/core/transactions/attempt_context_impl.hxx +15 -16
- data/ext/couchbase/core/transactions/exceptions_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/atr_cleanup_entry.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/client_record.hxx +4 -3
- data/ext/couchbase/core/transactions/internal/doc_record_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/exceptions_internal.hxx +0 -2
- data/ext/couchbase/core/transactions/internal/exceptions_internal_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/internal/logging.hxx +2 -0
- data/ext/couchbase/core/transactions/internal/transaction_context.hxx +3 -0
- data/ext/couchbase/core/transactions/result_fmt.hxx +1 -1
- data/ext/couchbase/core/transactions/transaction_context.cxx +12 -2
- data/ext/couchbase/core/transactions/transaction_get_result.hxx +0 -20
- data/ext/couchbase/core/transactions/transaction_links.hxx +1 -1
- data/ext/couchbase/core/utils/join_strings.hxx +2 -2
- data/ext/couchbase/core/utils/keyspace.hxx +2 -1
- data/ext/couchbase/core/utils/url_codec.cxx +1 -1
- data/ext/couchbase/couchbase/common_options.hxx +16 -1
- data/ext/couchbase/couchbase/fmt/analytics_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/analytics_status.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/cas.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/durability_level.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/error.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/error_context.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/mutation_token.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_profile.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/query_status.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/retry_reason.hxx +5 -1
- data/ext/couchbase/couchbase/fmt/search_scan_consistency.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/tls_verify_mode.hxx +0 -2
- data/ext/couchbase/couchbase/fmt/transaction_keyspace.hxx +0 -2
- data/ext/couchbase/couchbase/metrics/otel_meter.hxx +16 -20
- data/ext/couchbase.cxx +1 -0
- data/ext/extconf.rb +11 -0
- data/ext/rcb_analytics.cxx +7 -7
- data/ext/rcb_backend.cxx +83 -2
- data/ext/rcb_buckets.cxx +1 -1
- data/ext/rcb_collections.cxx +1 -1
- data/ext/rcb_crud.cxx +51 -30
- data/ext/rcb_diagnostics.cxx +1 -1
- data/ext/rcb_exceptions.cxx +3 -2
- data/ext/rcb_extras.cxx +1 -1
- data/ext/rcb_logger.cxx +6 -1
- data/ext/rcb_logger.hxx +3 -0
- data/ext/rcb_range_scan.cxx +3 -5
- data/ext/rcb_search.cxx +1 -1
- data/ext/rcb_users.cxx +2 -2
- data/ext/rcb_utils.hxx +32 -0
- data/lib/couchbase/bucket.rb +0 -8
- data/lib/couchbase/cluster.rb +2 -13
- data/lib/couchbase/collection.rb +0 -43
- data/lib/couchbase/collection_options.rb +3 -3
- data/lib/couchbase/datastructures/couchbase_queue.rb +1 -1
- data/lib/couchbase/datastructures/couchbase_set.rb +1 -1
- data/lib/couchbase/deprecations.rb +61 -0
- data/lib/couchbase/fork_hooks.rb +32 -0
- data/lib/couchbase/logger.rb +3 -3
- data/lib/couchbase/management/analytics_index_manager.rb +1 -1
- data/lib/couchbase/management/bucket_manager.rb +1 -1
- data/lib/couchbase/management/collection_manager.rb +1 -1
- data/lib/couchbase/management/query_index_manager.rb +1 -1
- data/lib/couchbase/options.rb +50 -2
- data/lib/couchbase/protostellar/request_generator/query.rb +1 -1
- data/lib/couchbase/utils/time.rb +1 -1
- data/lib/couchbase/version.rb +1 -1
- data/lib/couchbase.rb +2 -0
- metadata +133 -153
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/CMakeLists.txt +0 -520
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/ChangeLog.md +0 -2598
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/LICENSE +0 -27
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/README.md +0 -484
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/fmt.cc +0 -135
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/src/os.cc +0 -403
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/FindSetEnv.cmake +0 -7
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/JoinPaths.cmake +0 -26
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/fmt-config.cmake.in +0 -7
- data/ext/cache/fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/support/cmake/fmt.pc.in +0 -11
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/args.h +0 -235
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/chrono.h +0 -2240
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/color.h +0 -643
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/compile.h +0 -535
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/core.h +0 -2969
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/format-inl.h +0 -1678
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/format.h +0 -4535
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/os.h +0 -455
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/ostream.h +0 -245
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/printf.h +0 -675
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/ranges.h +0 -738
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/std.h +0 -537
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/include/spdlog/fmt/bundled/xchar.h +0 -259
- data/ext/cache/spdlog/19df5d3d8e5526c255d27414e09568671ef87483/spdlog/src/bundled_fmtlib_format.cpp +0 -46
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/LICENSE +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/ide.cmake +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/pch.h.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlog.pc.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlogCPack.cmake +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/spdlogConfig.cmake.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/cmake/version.rc.in +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/async_logger.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/argv.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/env.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/helpers-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/cfg/helpers.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/common-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/common.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/backtracer-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/backtracer.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/circular_q.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/console_globals.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/file_helper-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/file_helper.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/fmt_helper.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg_buffer-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/log_msg_buffer.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/null_mutex.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/os.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/periodic_worker-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/periodic_worker.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/registry-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/registry.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/synchronous_factory.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/tcp_client-windows.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/tcp_client.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/udp_client-windows.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/udp_client.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/details/windows_include.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bin_to_hex.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/args.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/chrono.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/color.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/compile.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/core.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bundled/fmt.license.rst +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/bundled/locale.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/os.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/ostream.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/printf.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/std.h +0 -0
- /data/ext/cache/{fmt/141a17a028e6c29914e109691389f6cf87f9cfe3/fmt/include/fmt → spdlog/7251ead404dccd824789f8f3a13df2a6fb56440c/spdlog/include/spdlog/fmt/bundled}/xchar.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/chrono.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/compile.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/fmt.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/ostr.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/ranges.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/std.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fmt/xchar.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/formatter.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/fwd.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/logger-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/logger.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/pattern_formatter.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/android_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ansicolor_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/base_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/basic_file_sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/basic_file_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/dist_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/dup_filter_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/kafka_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/mongo_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/null_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ostream_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/qt_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/ringbuffer_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/rotating_file_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/sink-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_color_sinks-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_color_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_sinks-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/stdout_sinks.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/systemd_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/tcp_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/udp_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/win_eventlog_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/sinks/wincolor_sink.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/spdlog-inl.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/spdlog.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/stopwatch.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/include/spdlog/tweakme.h +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/async.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/cfg.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/color_sinks.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/file_sinks.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/spdlog.cpp +0 -0
- /data/ext/cache/spdlog/{19df5d3d8e5526c255d27414e09568671ef87483 → 7251ead404dccd824789f8f3a13df2a6fb56440c}/spdlog/src/stdout_sinks.cpp +0 -0
data/lib/couchbase/cluster.rb
CHANGED
@@ -48,7 +48,7 @@ module Couchbase
|
|
48
48
|
# @param [Options::Cluster, nil] options custom options when creating the cluster connection
|
49
49
|
#
|
50
50
|
# @example Explicitly create options object and initialize PasswordAuthenticator internally
|
51
|
-
# options = Cluster
|
51
|
+
# options = Options::Cluster.new
|
52
52
|
# options.authenticate("Administrator", "password")
|
53
53
|
# Cluster.connect("couchbase://localhost", options)
|
54
54
|
#
|
@@ -354,7 +354,7 @@ module Couchbase
|
|
354
354
|
raise ArgumentError, "options must have authenticator configured"
|
355
355
|
end
|
356
356
|
else
|
357
|
-
raise ArgumentError, "unexpected second argument, have to be String or
|
357
|
+
raise ArgumentError, "unexpected second argument, have to be String or Options::Cluster"
|
358
358
|
end
|
359
359
|
end
|
360
360
|
|
@@ -447,16 +447,5 @@ module Couchbase
|
|
447
447
|
end
|
448
448
|
end
|
449
449
|
end
|
450
|
-
|
451
|
-
# @api private
|
452
|
-
ClusterOptions = ::Couchbase::Options::Cluster
|
453
|
-
# @api private
|
454
|
-
DiagnosticsOptions = ::Couchbase::Options::Diagnostics
|
455
|
-
# @api private
|
456
|
-
AnalyticsOptions = ::Couchbase::Options::Analytics
|
457
|
-
# @api private
|
458
|
-
QueryOptions = ::Couchbase::Options::Query
|
459
|
-
# @api private
|
460
|
-
SearchOptions = ::Couchbase::Options::Search
|
461
450
|
end
|
462
451
|
end
|
data/lib/couchbase/collection.rb
CHANGED
@@ -660,48 +660,5 @@ module Couchbase
|
|
660
660
|
end
|
661
661
|
end
|
662
662
|
end
|
663
|
-
|
664
|
-
# @api private
|
665
|
-
# TODO: deprecate in 3.1
|
666
|
-
GetOptions = ::Couchbase::Options::Get
|
667
|
-
# @api private
|
668
|
-
# TODO: deprecate in 3.1
|
669
|
-
GetAndLockOptions = ::Couchbase::Options::GetAndLock
|
670
|
-
# @api private
|
671
|
-
# TODO: deprecate in 3.1
|
672
|
-
GetAndTouchOptions = ::Couchbase::Options::GetAndTouch
|
673
|
-
# @api private
|
674
|
-
# TODO: deprecate in 3.1
|
675
|
-
LookupInOptions = ::Couchbase::Options::LookupIn
|
676
|
-
# @api private
|
677
|
-
# TODO: deprecate in 3.1
|
678
|
-
MutateInOptions = ::Couchbase::Options::MutateIn
|
679
|
-
# @api private
|
680
|
-
# TODO: deprecate in 3.1
|
681
|
-
UnlockOptions = ::Couchbase::Options::Unlock
|
682
|
-
# @api private
|
683
|
-
# TODO: deprecate in 3.1
|
684
|
-
TouchOptions = ::Couchbase::Options::Touch
|
685
|
-
# @api private
|
686
|
-
# TODO: deprecate in 3.1
|
687
|
-
ReplaceOptions = ::Couchbase::Options::Replace
|
688
|
-
# @api private
|
689
|
-
# TODO: deprecate in 3.1
|
690
|
-
UpsertOptions = ::Couchbase::Options::Upsert
|
691
|
-
# @api private
|
692
|
-
# TODO: deprecate in 3.1
|
693
|
-
InsertOptions = ::Couchbase::Options::Insert
|
694
|
-
# @api private
|
695
|
-
# TODO: deprecate in 3.1
|
696
|
-
RemoveOptions = ::Couchbase::Options::Remove
|
697
|
-
# @api private
|
698
|
-
# TODO: deprecate in 3.1
|
699
|
-
ExistsOptions = ::Couchbase::Options::Exists
|
700
|
-
# @api private
|
701
|
-
# TODO: deprecate in 3.1
|
702
|
-
GetAnyReplicaOptions = ::Couchbase::Options::GetAnyReplica
|
703
|
-
# @api private
|
704
|
-
# TODO: deprecate in 3.1
|
705
|
-
GetAllReplicasOptions = ::Couchbase::Options::GetAllReplicas
|
706
663
|
end
|
707
664
|
end
|
@@ -80,7 +80,7 @@ module Couchbase
|
|
80
80
|
|
81
81
|
# @deprecated Use {#expiry_time}
|
82
82
|
# @return [Integer] the expiration if fetched and present
|
83
|
-
def expiry # rubocop:disable Style/TrivialAccessors will be removed in next major release
|
83
|
+
def expiry # rubocop:disable Style/TrivialAccessors -- will be removed in next major release
|
84
84
|
@expiry
|
85
85
|
end
|
86
86
|
|
@@ -211,7 +211,7 @@ module Couchbase
|
|
211
211
|
|
212
212
|
# @api private
|
213
213
|
#
|
214
|
-
# @see
|
214
|
+
# @see Options::MutateIn#create_as_deleted
|
215
215
|
#
|
216
216
|
# @return [Boolean] true if the document is a tombstone (created in deleted state)
|
217
217
|
def deleted?
|
@@ -273,7 +273,7 @@ module Couchbase
|
|
273
273
|
|
274
274
|
# @api private
|
275
275
|
#
|
276
|
-
# @see
|
276
|
+
# @see Options::MutateIn#create_as_deleted
|
277
277
|
#
|
278
278
|
# @return [Boolean] true if the document is a tombstone (created in deleted state)
|
279
279
|
def deleted?
|
@@ -112,7 +112,7 @@ module Couchbase
|
|
112
112
|
LookupInSpec.get("[-1]"),
|
113
113
|
], @options.lookup_in_options)
|
114
114
|
obj = result.exists?(0) ? result.content(0) : nil
|
115
|
-
options =
|
115
|
+
options = Options::MutateIn.new
|
116
116
|
options.cas = result.cas
|
117
117
|
@collection.mutate_in(@id, [
|
118
118
|
MutateInSpec.remove("[-1]"),
|
@@ -109,7 +109,7 @@ module Couchbase
|
|
109
109
|
idx = result.content.index(obj)
|
110
110
|
return false unless idx
|
111
111
|
|
112
|
-
options =
|
112
|
+
options = Options::MutateIn.new
|
113
113
|
options.cas = result.cas
|
114
114
|
@collection.mutate_in(@id, [
|
115
115
|
MutateInSpec.remove("[#{idx}]"),
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020-2025 Couchbase, Inc.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module Couchbase
|
18
|
+
module Deprecations
|
19
|
+
def self.deprecate_constants(removed_in_version, parent, constants)
|
20
|
+
deprecator = Module.new do
|
21
|
+
define_method(:const_missing) do |old_name|
|
22
|
+
return super unless constants.key?(old_name)
|
23
|
+
|
24
|
+
new_name = constants[old_name]
|
25
|
+
|
26
|
+
warn "NOTE: #{name}::#{old_name} is deprecated; use Couchbase::#{new_name} instead. " \
|
27
|
+
"It will be removed in version #{removed_in_version}."
|
28
|
+
Couchbase.const_get(new_name)
|
29
|
+
end
|
30
|
+
end
|
31
|
+
parent.singleton_class.prepend(deprecator)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
Deprecations.deprecate_constants("3.6.0", Cluster,
|
36
|
+
AnalyticsOptions: "Options::Analytics",
|
37
|
+
ClusterOptions: "Options::Cluster",
|
38
|
+
DiagnosticsOptions: "Options::Diagnostics",
|
39
|
+
QueryOptions: "Options::Query",
|
40
|
+
SearchOptions: "Options::Search")
|
41
|
+
|
42
|
+
Deprecations.deprecate_constants("3.6.0", Bucket,
|
43
|
+
PingOptions: "Options::Ping",
|
44
|
+
ViewOptions: "Options::View")
|
45
|
+
|
46
|
+
Deprecations.deprecate_constants("3.6.0", Collection,
|
47
|
+
ExistsOptions: "Options::Exists",
|
48
|
+
GetAllReplicasOptions: "Options::GetAllReplicas",
|
49
|
+
GetAndLockOptions: "Options::GetAndLock",
|
50
|
+
GetAndTouchOptions: "Options::GetAndTouch",
|
51
|
+
GetAnyReplicaOptions: "Options::GetAnyReplica",
|
52
|
+
GetOptions: "Options::Get",
|
53
|
+
InsertOptions: "Options::Insert",
|
54
|
+
LookupInOptions: "Options::LookupIn",
|
55
|
+
MutateInOptions: "Options::MutateIn",
|
56
|
+
RemoveOptions: "Options::Remove",
|
57
|
+
ReplaceOptions: "Options::Replace",
|
58
|
+
TouchOptions: "Options::Touch",
|
59
|
+
UnlockOptions: "Options::Unlock",
|
60
|
+
UpsertOptions: "Options::Upsert")
|
61
|
+
end
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020-2025 Couchbase, Inc.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module Couchbase
|
18
|
+
module ForkHooks
|
19
|
+
def _fork
|
20
|
+
Couchbase::Backend.notify_fork(:prepare)
|
21
|
+
pid = super
|
22
|
+
if pid
|
23
|
+
Couchbase::Backend.notify_fork(:parent)
|
24
|
+
else
|
25
|
+
Couchbase::Backend.notify_fork(:child)
|
26
|
+
end
|
27
|
+
pid
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
Process.singleton_class.prepend(Couchbase::ForkHooks)
|
data/lib/couchbase/logger.rb
CHANGED
@@ -46,7 +46,7 @@ module Couchbase
|
|
46
46
|
|
47
47
|
# Return logger associated with the library
|
48
48
|
def self.logger
|
49
|
-
@logger # rubocop:disable ThreadSafety/
|
49
|
+
@logger # rubocop:disable ThreadSafety/ClassInstanceVariable
|
50
50
|
end
|
51
51
|
|
52
52
|
# Associate logger with the library
|
@@ -67,8 +67,8 @@ module Couchbase
|
|
67
67
|
#
|
68
68
|
# @since 3.4.0
|
69
69
|
def self.set_logger(logger, adapter_class: nil, verbose: false, level: :info)
|
70
|
-
@logger = logger # rubocop:disable ThreadSafety/
|
71
|
-
if @logger.nil? # rubocop:disable ThreadSafety/
|
70
|
+
@logger = logger # rubocop:disable ThreadSafety/ClassInstanceVariable
|
71
|
+
if @logger.nil? # rubocop:disable ThreadSafety/ClassInstanceVariable
|
72
72
|
Backend.install_logger_shim(nil)
|
73
73
|
return
|
74
74
|
end
|
@@ -513,7 +513,7 @@ module Couchbase
|
|
513
513
|
end
|
514
514
|
end
|
515
515
|
|
516
|
-
# rubocop:disable Naming/MethodName constructor shortcuts
|
516
|
+
# rubocop:disable Naming/MethodName -- constructor shortcuts
|
517
517
|
module_function
|
518
518
|
|
519
519
|
# Construct {CreateDataverse} options for {AnalyticsIndexManager#create_dataverse}
|
@@ -137,7 +137,7 @@ module Couchbase
|
|
137
137
|
end
|
138
138
|
end
|
139
139
|
|
140
|
-
# rubocop:disable Naming/MethodName constructor shortcuts
|
140
|
+
# rubocop:disable Naming/MethodName -- constructor shortcuts
|
141
141
|
module_function
|
142
142
|
|
143
143
|
# Construct {CreateBucket} options for {BucketManager#create_bucket}
|
@@ -149,7 +149,7 @@ module Couchbase
|
|
149
149
|
DEFAULT = DropCollection.new.freeze
|
150
150
|
end
|
151
151
|
|
152
|
-
# rubocop:disable Naming/MethodName constructor shortcuts
|
152
|
+
# rubocop:disable Naming/MethodName -- constructor shortcuts
|
153
153
|
module_function
|
154
154
|
|
155
155
|
# Construct {GetAllScopes} options for {CollectionManager#get_all_scopes}
|
@@ -339,7 +339,7 @@ module Couchbase
|
|
339
339
|
end
|
340
340
|
end
|
341
341
|
|
342
|
-
# rubocop:disable Naming/MethodName constructor shortcuts
|
342
|
+
# rubocop:disable Naming/MethodName -- constructor shortcuts
|
343
343
|
module_function
|
344
344
|
|
345
345
|
# Construct {GetAllIndexes} options for {QueryIndexManager#get_all_indexes}
|
data/lib/couchbase/options.rb
CHANGED
@@ -237,10 +237,14 @@ module Couchbase
|
|
237
237
|
# Options for {Collection#get_all_replicas}
|
238
238
|
class GetAllReplicas < Base
|
239
239
|
attr_accessor :transcoder # @return [JsonTranscoder, #decode(String, Integer)]
|
240
|
+
attr_accessor :read_preference # @return [Symbol]
|
240
241
|
|
241
242
|
# Creates an instance of options for {Collection#get_all_replicas}
|
242
243
|
#
|
243
244
|
# @param [JsonTranscoder, #decode(String, Integer)] transcoder used for decoding
|
245
|
+
# @param [Symbol] read_preference decides how the replica nodes will be selected.
|
246
|
+
# +:no_preference+:: no preference and will select any available replica. This is the default
|
247
|
+
# +:selected_server_group+:: restrict to nodes in {Cluster#preferred_server_group}
|
244
248
|
#
|
245
249
|
# @param [Integer, #in_milliseconds, nil] timeout
|
246
250
|
# @param [Proc, nil] retry_strategy the custom retry strategy, if set
|
@@ -249,12 +253,14 @@ module Couchbase
|
|
249
253
|
#
|
250
254
|
# @yieldparam [GetAllReplicas] self
|
251
255
|
def initialize(transcoder: JsonTranscoder.new,
|
256
|
+
read_preference: :no_preference,
|
252
257
|
timeout: nil,
|
253
258
|
retry_strategy: nil,
|
254
259
|
client_context: nil,
|
255
260
|
parent_span: nil)
|
256
261
|
super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
|
257
262
|
@transcoder = transcoder
|
263
|
+
@read_preference = read_preference
|
258
264
|
yield self if block_given?
|
259
265
|
end
|
260
266
|
|
@@ -262,6 +268,7 @@ module Couchbase
|
|
262
268
|
def to_backend
|
263
269
|
{
|
264
270
|
timeout: Utils::Time.extract_duration(@timeout),
|
271
|
+
read_preference: @read_preference,
|
265
272
|
}
|
266
273
|
end
|
267
274
|
|
@@ -272,10 +279,14 @@ module Couchbase
|
|
272
279
|
# Options for {Collection#get_any_replica}
|
273
280
|
class GetAnyReplica < Base
|
274
281
|
attr_accessor :transcoder # @return [JsonTranscoder, #decode(String, Integer)]
|
282
|
+
attr_accessor :read_preference # @return [Symbol]
|
275
283
|
|
276
284
|
# Creates an instance of options for {Collection#get_any_replica}
|
277
285
|
#
|
278
286
|
# @param [JsonTranscoder, #decode(String, Integer)] transcoder used for decoding
|
287
|
+
# @param [Symbol] read_preference decides how the replica nodes will be selected.
|
288
|
+
# +:no_preference+:: no preference and will select any available replica. This is the default
|
289
|
+
# +:selected_server_group+:: restrict to nodes in {Cluster#preferred_server_group}
|
279
290
|
#
|
280
291
|
# @param [Integer, #in_milliseconds, nil] timeout
|
281
292
|
# @param [Proc, nil] retry_strategy the custom retry strategy, if set
|
@@ -284,12 +295,14 @@ module Couchbase
|
|
284
295
|
#
|
285
296
|
# @yieldparam [GetAnyReplica] self
|
286
297
|
def initialize(transcoder: JsonTranscoder.new,
|
298
|
+
read_preference: :no_preference,
|
287
299
|
timeout: nil,
|
288
300
|
retry_strategy: nil,
|
289
301
|
client_context: nil,
|
290
302
|
parent_span: nil)
|
291
303
|
super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
|
292
304
|
@transcoder = transcoder
|
305
|
+
@read_preference = read_preference
|
293
306
|
yield self if block_given?
|
294
307
|
end
|
295
308
|
|
@@ -297,6 +310,7 @@ module Couchbase
|
|
297
310
|
def to_backend
|
298
311
|
{
|
299
312
|
timeout: Utils::Time.extract_duration(@timeout),
|
313
|
+
read_preference: @read_preference,
|
300
314
|
}
|
301
315
|
end
|
302
316
|
|
@@ -1032,10 +1046,14 @@ module Couchbase
|
|
1032
1046
|
# Options for {Collection#lookup_in_any_replica}
|
1033
1047
|
class LookupInAnyReplica < Base
|
1034
1048
|
attr_accessor :transcoder # @return [JsonTranscoder, #decode(String)]
|
1049
|
+
attr_accessor :read_preference # @return [Symbol]
|
1035
1050
|
|
1036
1051
|
# Creates an instance of options for {Collection#lookup_in_any_replica}
|
1037
1052
|
#
|
1038
1053
|
# @param [JsonTranscoder, #decode(String)] transcoder used for encoding
|
1054
|
+
# @param [Symbol] read_preference decides how the replica nodes will be selected.
|
1055
|
+
# +:no_preference+:: no preference and will select any available replica. This is the default
|
1056
|
+
# +:selected_server_group+:: restrict to nodes in {Cluster#preferred_server_group}
|
1039
1057
|
#
|
1040
1058
|
# @param [Integer, #in_milliseconds, nil] timeout
|
1041
1059
|
# @param [Proc, nil] retry_strategy the custom retry strategy, if set
|
@@ -1044,12 +1062,14 @@ module Couchbase
|
|
1044
1062
|
#
|
1045
1063
|
# @yieldparam [LookupIn] self
|
1046
1064
|
def initialize(transcoder: JsonTranscoder.new,
|
1065
|
+
read_preference: :no_preference,
|
1047
1066
|
timeout: nil,
|
1048
1067
|
retry_strategy: nil,
|
1049
1068
|
client_context: nil,
|
1050
1069
|
parent_span: nil)
|
1051
1070
|
super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
|
1052
1071
|
@transcoder = transcoder
|
1072
|
+
@read_preference = read_preference
|
1053
1073
|
yield self if block_given?
|
1054
1074
|
end
|
1055
1075
|
|
@@ -1057,6 +1077,7 @@ module Couchbase
|
|
1057
1077
|
def to_backend
|
1058
1078
|
{
|
1059
1079
|
timeout: Utils::Time.extract_duration(@timeout),
|
1080
|
+
read_preference: @read_preference,
|
1060
1081
|
}
|
1061
1082
|
end
|
1062
1083
|
|
@@ -1071,10 +1092,14 @@ module Couchbase
|
|
1071
1092
|
# Options for {Collection#lookup_in_all_replicas}
|
1072
1093
|
class LookupInAllReplicas < Base
|
1073
1094
|
attr_accessor :transcoder # @return [JsonTranscoder, #decode(String)]
|
1095
|
+
attr_accessor :read_preference # @return [Symbol]
|
1074
1096
|
|
1075
1097
|
# Creates an instance of options for {Collection#lookup_in_all_replicas}
|
1076
1098
|
#
|
1077
1099
|
# @param [JsonTranscoder, #decode(String)] transcoder used for encoding
|
1100
|
+
# @param [Symbol] read_preference decides how the replica nodes will be selected.
|
1101
|
+
# +:no_preference+:: no preference and will select any available replica. This is the default
|
1102
|
+
# +:selected_server_group+:: restrict to nodes in {Cluster#preferred_server_group}
|
1078
1103
|
#
|
1079
1104
|
# @param [Integer, #in_milliseconds, nil] timeout
|
1080
1105
|
# @param [Proc, nil] retry_strategy the custom retry strategy, if set
|
@@ -1083,12 +1108,14 @@ module Couchbase
|
|
1083
1108
|
#
|
1084
1109
|
# @yieldparam [LookupInAllReplicas] self
|
1085
1110
|
def initialize(transcoder: JsonTranscoder.new,
|
1111
|
+
read_preference: :no_preference,
|
1086
1112
|
timeout: nil,
|
1087
1113
|
retry_strategy: nil,
|
1088
1114
|
client_context: nil,
|
1089
1115
|
parent_span: nil)
|
1090
1116
|
super(timeout: timeout, retry_strategy: retry_strategy, client_context: client_context, parent_span: parent_span)
|
1091
1117
|
@transcoder = transcoder
|
1118
|
+
@read_preference = read_preference
|
1092
1119
|
yield self if block_given?
|
1093
1120
|
end
|
1094
1121
|
|
@@ -1096,6 +1123,7 @@ module Couchbase
|
|
1096
1123
|
def to_backend
|
1097
1124
|
{
|
1098
1125
|
timeout: Utils::Time.extract_duration(@timeout),
|
1126
|
+
read_preference: @read_preference,
|
1099
1127
|
}
|
1100
1128
|
end
|
1101
1129
|
|
@@ -1646,6 +1674,8 @@ module Couchbase
|
|
1646
1674
|
class Cluster
|
1647
1675
|
attr_accessor :authenticator # @return [PasswordAuthenticator, CertificateAuthenticator]
|
1648
1676
|
|
1677
|
+
attr_accessor :preferred_server_group # @return [String]
|
1678
|
+
|
1649
1679
|
attr_accessor :enable_metrics # @return [Boolean]
|
1650
1680
|
attr_accessor :metrics_emit_interval # @return [nil, Integer, #in_milliseconds]
|
1651
1681
|
attr_accessor :enable_tracing # @return [Boolean]
|
@@ -1679,6 +1709,7 @@ module Couchbase
|
|
1679
1709
|
# Creates an instance of options for {Couchbase::Cluster.connect}
|
1680
1710
|
#
|
1681
1711
|
# @param [PasswordAuthenticator, CertificateAuthenticator] authenticator
|
1712
|
+
# @param [String] preferred_server_group the server group to use for replica APIs e.g. {Collection#get_all_replicas}
|
1682
1713
|
# @param [nil, Integer, #in_milliseconds] key_value_timeout default timeout for Key/Value operations, e.g. {Collection#get}
|
1683
1714
|
# @param [nil, Integer, #in_milliseconds] view_timeout default timeout for View query
|
1684
1715
|
# @param [nil, Integer, #in_milliseconds] query_timeout default timeout for N1QL query
|
@@ -1690,6 +1721,7 @@ module Couchbase
|
|
1690
1721
|
#
|
1691
1722
|
# @yieldparam [Cluster] self
|
1692
1723
|
def initialize(authenticator: nil,
|
1724
|
+
preferred_server_group: nil,
|
1693
1725
|
enable_metrics: nil,
|
1694
1726
|
metrics_emit_interval: nil,
|
1695
1727
|
enable_tracing: nil,
|
@@ -1719,6 +1751,7 @@ module Couchbase
|
|
1719
1751
|
config_idle_redial_timeout: nil,
|
1720
1752
|
idle_http_connection_timeout: nil)
|
1721
1753
|
@authenticator = authenticator
|
1754
|
+
@preferred_server_group = preferred_server_group
|
1722
1755
|
@enable_metrics = enable_metrics
|
1723
1756
|
@metrics_emit_interval = metrics_emit_interval
|
1724
1757
|
@enable_tracing = enable_tracing
|
@@ -1765,6 +1798,7 @@ module Couchbase
|
|
1765
1798
|
def to_backend
|
1766
1799
|
{
|
1767
1800
|
enable_metrics: @enable_metrics,
|
1801
|
+
preferred_server_group: @preferred_server_group,
|
1768
1802
|
metrics_emit_interval: Utils::Time.extract_duration(@metrics_emit_interval),
|
1769
1803
|
enable_tracing: @enable_tracing,
|
1770
1804
|
orphaned_emit_interval: Utils::Time.extract_duration(@orphaned_emit_interval),
|
@@ -2358,7 +2392,7 @@ module Couchbase
|
|
2358
2392
|
|
2359
2393
|
# @param [:and, :or, nil] vector_query_combination
|
2360
2394
|
#
|
2361
|
-
# @yieldparam [
|
2395
|
+
# @yieldparam [Options::VectorSearch] self
|
2362
2396
|
def initialize(vector_query_combination: nil)
|
2363
2397
|
@vector_query_combination = vector_query_combination
|
2364
2398
|
|
@@ -2502,7 +2536,7 @@ module Couchbase
|
|
2502
2536
|
# TODO: deprecate in 3.1
|
2503
2537
|
CommonOptions = ::Couchbase::Options::Base
|
2504
2538
|
|
2505
|
-
# rubocop:disable Naming/MethodName constructor shortcuts
|
2539
|
+
# rubocop:disable Naming/MethodName -- constructor shortcuts
|
2506
2540
|
module_function
|
2507
2541
|
|
2508
2542
|
# Construct {Get} options for {Collection#get}
|
@@ -2841,6 +2875,20 @@ module Couchbase
|
|
2841
2875
|
Scan.new(**args)
|
2842
2876
|
end
|
2843
2877
|
|
2878
|
+
# Construct {LookupInAnyReplica} options for {Collection#lookup_in_any_replica}
|
2879
|
+
#
|
2880
|
+
# @return [LookupInAnyReplica]
|
2881
|
+
def LookupInAnyReplica(**args)
|
2882
|
+
LookupInAnyReplica.new(**args)
|
2883
|
+
end
|
2884
|
+
|
2885
|
+
# Construct {LookupInAllReplics} options for {Collection#lookup_in_all_replicas}
|
2886
|
+
#
|
2887
|
+
# @return [LookupInAllReplicas]
|
2888
|
+
def LookupInAllReplicas(**args)
|
2889
|
+
LookupInAllReplicas.new(**args)
|
2890
|
+
end
|
2891
|
+
|
2844
2892
|
# rubocop:enable Naming/MethodName
|
2845
2893
|
end
|
2846
2894
|
end
|
data/lib/couchbase/utils/time.rb
CHANGED
@@ -58,7 +58,7 @@ module Couchbase
|
|
58
58
|
# 3. Otherwise invoke #to_i on the argument and interpret it as a number of milliseconds
|
59
59
|
def extract_duration(number_or_duration)
|
60
60
|
return unless number_or_duration
|
61
|
-
return number_or_duration if number_or_duration.class == Integer # rubocop:disable Style/ClassEqualityComparison avoid overrides of #is_a?, #kind_of?
|
61
|
+
return number_or_duration if number_or_duration.class == Integer # rubocop:disable Style/ClassEqualityComparison -- avoid overrides of #is_a?, #kind_of?
|
62
62
|
|
63
63
|
if number_or_duration.respond_to?(:in_milliseconds)
|
64
64
|
number_or_duration.in_milliseconds
|
data/lib/couchbase/version.rb
CHANGED
@@ -21,5 +21,5 @@ module Couchbase
|
|
21
21
|
# $ ruby -rcouchbase -e 'pp Couchbase::VERSION'
|
22
22
|
# {:sdk=>"3.4.0", :ruby_abi=>"3.1.0", :revision=>"416fe68e6029ec8a4c40611cf6e6b30d3b90d20f"}
|
23
23
|
VERSION = {} unless defined?(VERSION) # rubocop:disable Style/MutableConstant
|
24
|
-
VERSION.update(:sdk => "3.5.
|
24
|
+
VERSION.update(:sdk => "3.5.6")
|
25
25
|
end
|
data/lib/couchbase.rb
CHANGED
@@ -16,8 +16,10 @@
|
|
16
16
|
|
17
17
|
require "couchbase/version"
|
18
18
|
require "couchbase/libcouchbase"
|
19
|
+
require "couchbase/fork_hooks"
|
19
20
|
require "couchbase/logger"
|
20
21
|
require "couchbase/cluster"
|
22
|
+
require "couchbase/deprecations"
|
21
23
|
|
22
24
|
require "couchbase/railtie" if defined?(Rails)
|
23
25
|
|