couchbase 4.6.1 → 4.7.0-dev.1
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.
- package/CMakeLists.txt +2 -1
- package/deps/couchbase-cxx-cache/mozilla-ca-bundle.crt +23 -5
- package/deps/couchbase-cxx-cache/mozilla-ca-bundle.sha256 +1 -1
- package/deps/couchbase-cxx-client/CMakeLists.txt +24 -11
- package/deps/couchbase-cxx-client/README.md +2 -2
- package/deps/couchbase-cxx-client/cmake/APKBUILD.in +17 -1
- package/deps/couchbase-cxx-client/cmake/Bundler.cmake +9 -1
- package/deps/couchbase-cxx-client/cmake/Cache.cmake +48 -19
- package/deps/couchbase-cxx-client/cmake/CompilerOptions.cmake +3 -1
- package/deps/couchbase-cxx-client/cmake/OpenSSL.cmake +10 -2
- package/deps/couchbase-cxx-client/cmake/Packaging.cmake +48 -8
- package/deps/couchbase-cxx-client/cmake/ThirdPartyDependencies.cmake +41 -0
- package/deps/couchbase-cxx-client/cmake/build_config.hxx.in +2 -0
- package/deps/couchbase-cxx-client/cmake/couchbase-cxx-client.spec.in +18 -0
- package/deps/couchbase-cxx-client/cmake/debian/control +6 -1
- package/deps/couchbase-cxx-client/cmake/debian/rules +1 -0
- package/deps/couchbase-cxx-client/cmake/tarball_glob.txt +10 -0
- package/deps/couchbase-cxx-client/core/app_telemetry_meter.cxx +1 -0
- package/deps/couchbase-cxx-client/core/app_telemetry_reporter.cxx +45 -43
- package/deps/couchbase-cxx-client/core/app_telemetry_reporter.hxx +4 -3
- package/deps/couchbase-cxx-client/core/bucket.cxx +128 -13
- package/deps/couchbase-cxx-client/core/bucket.hxx +12 -2
- package/deps/couchbase-cxx-client/core/cluster.cxx +304 -152
- package/deps/couchbase-cxx-client/core/cluster.hxx +32 -0
- package/deps/couchbase-cxx-client/core/cluster_credentials.cxx +25 -0
- package/deps/couchbase-cxx-client/core/cluster_credentials.hxx +5 -0
- package/deps/couchbase-cxx-client/core/cluster_label_listener.cxx +72 -0
- package/deps/couchbase-cxx-client/core/cluster_label_listener.hxx +46 -0
- package/deps/couchbase-cxx-client/core/cluster_options.hxx +4 -0
- package/deps/couchbase-cxx-client/core/deprecation_utils.hxx +26 -0
- package/deps/couchbase-cxx-client/core/error.hxx +27 -0
- package/deps/couchbase-cxx-client/core/free_form_http_request.hxx +0 -2
- package/deps/couchbase-cxx-client/core/http_component.cxx +12 -48
- package/deps/couchbase-cxx-client/core/impl/analytics.cxx +3 -2
- package/deps/couchbase-cxx-client/core/impl/analytics.hxx +2 -1
- package/deps/couchbase-cxx-client/core/impl/analytics_index_manager.cxx +249 -137
- package/deps/couchbase-cxx-client/core/impl/binary_collection.cxx +134 -58
- package/deps/couchbase-cxx-client/core/impl/bucket_manager.cxx +87 -35
- package/deps/couchbase-cxx-client/core/impl/collection.cxx +560 -245
- package/deps/couchbase-cxx-client/core/impl/collection_manager.cxx +89 -49
- package/deps/couchbase-cxx-client/core/impl/dns_srv_tracker.cxx +3 -3
- package/deps/couchbase-cxx-client/core/impl/error.cxx +20 -13
- package/deps/couchbase-cxx-client/core/impl/error.hxx +15 -10
- package/deps/couchbase-cxx-client/core/impl/get_all_replicas.hxx +1 -1
- package/deps/couchbase-cxx-client/core/impl/get_any_replica.hxx +2 -1
- package/deps/couchbase-cxx-client/core/impl/get_replica.hxx +2 -0
- package/deps/couchbase-cxx-client/core/impl/lookup_in_replica.hxx +1 -1
- package/deps/couchbase-cxx-client/core/impl/observability_recorder.cxx +161 -0
- package/deps/couchbase-cxx-client/core/impl/observability_recorder.hxx +77 -0
- package/deps/couchbase-cxx-client/core/impl/observe_seqno.hxx +2 -0
- package/deps/couchbase-cxx-client/core/impl/public_bucket.cxx +31 -7
- package/deps/couchbase-cxx-client/core/impl/public_cluster.cxx +107 -19
- package/deps/couchbase-cxx-client/core/impl/query.cxx +6 -3
- package/deps/couchbase-cxx-client/core/impl/query.hxx +3 -1
- package/deps/couchbase-cxx-client/core/impl/query_index_manager.cxx +267 -102
- package/deps/couchbase-cxx-client/core/impl/scope.cxx +53 -11
- package/deps/couchbase-cxx-client/core/impl/search.cxx +8 -4
- package/deps/couchbase-cxx-client/core/impl/search.hxx +6 -2
- package/deps/couchbase-cxx-client/core/impl/search_index_manager.cxx +131 -41
- package/deps/couchbase-cxx-client/core/impl/with_cancellation.hxx +75 -0
- package/deps/couchbase-cxx-client/core/io/config_tracker.cxx +9 -9
- package/deps/couchbase-cxx-client/core/io/config_tracker.hxx +2 -1
- package/deps/couchbase-cxx-client/core/io/http_command.hxx +98 -49
- package/deps/couchbase-cxx-client/core/io/http_context.hxx +2 -0
- package/deps/couchbase-cxx-client/core/io/http_session.cxx +23 -10
- package/deps/couchbase-cxx-client/core/io/http_session.hxx +17 -9
- package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +163 -228
- package/deps/couchbase-cxx-client/core/io/http_traits.hxx +0 -7
- package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +123 -44
- package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +251 -26
- package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +9 -1
- package/deps/couchbase-cxx-client/core/io/mcbp_traits.hxx +0 -8
- package/deps/couchbase-cxx-client/core/io/streams.cxx +3 -3
- package/deps/couchbase-cxx-client/core/io/streams.hxx +3 -2
- package/deps/couchbase-cxx-client/core/meta/features.hxx +15 -0
- package/deps/couchbase-cxx-client/core/meta/version.cxx +13 -0
- package/deps/couchbase-cxx-client/core/meta/version.hxx +3 -0
- package/deps/couchbase-cxx-client/core/metrics/constants.hxx +23 -0
- package/deps/couchbase-cxx-client/core/metrics/logging_meter.cxx +5 -5
- package/deps/couchbase-cxx-client/core/metrics/meter_wrapper.cxx +65 -63
- package/deps/couchbase-cxx-client/core/metrics/meter_wrapper.hxx +12 -10
- package/deps/couchbase-cxx-client/core/operations/document_analytics.hxx +0 -5
- package/deps/couchbase-cxx-client/core/operations/document_append.hxx +0 -4
- package/deps/couchbase-cxx-client/core/operations/document_decrement.hxx +0 -5
- package/deps/couchbase-cxx-client/core/operations/document_exists.hxx +0 -7
- package/deps/couchbase-cxx-client/core/operations/document_get.hxx +0 -7
- package/deps/couchbase-cxx-client/core/operations/document_get_all_replicas.hxx +77 -27
- package/deps/couchbase-cxx-client/core/operations/document_get_and_lock.hxx +0 -9
- package/deps/couchbase-cxx-client/core/operations/document_get_and_touch.hxx +0 -9
- package/deps/couchbase-cxx-client/core/operations/document_get_any_replica.hxx +83 -2
- package/deps/couchbase-cxx-client/core/operations/document_get_projected.hxx +0 -9
- package/deps/couchbase-cxx-client/core/operations/document_increment.hxx +0 -5
- package/deps/couchbase-cxx-client/core/operations/document_insert.hxx +0 -4
- package/deps/couchbase-cxx-client/core/operations/document_lookup_in.hxx +0 -9
- package/deps/couchbase-cxx-client/core/operations/document_lookup_in_all_replicas.hxx +46 -4
- package/deps/couchbase-cxx-client/core/operations/document_lookup_in_any_replica.hxx +121 -43
- package/deps/couchbase-cxx-client/core/operations/document_mutate_in.hxx +0 -5
- package/deps/couchbase-cxx-client/core/operations/document_prepend.hxx +0 -4
- package/deps/couchbase-cxx-client/core/operations/document_query.hxx +0 -4
- package/deps/couchbase-cxx-client/core/operations/document_remove.hxx +0 -4
- package/deps/couchbase-cxx-client/core/operations/document_replace.hxx +0 -4
- package/deps/couchbase-cxx-client/core/operations/document_search.hxx +0 -7
- package/deps/couchbase-cxx-client/core/operations/document_touch.hxx +0 -7
- package/deps/couchbase-cxx-client/core/operations/document_unlock.hxx +0 -6
- package/deps/couchbase-cxx-client/core/operations/document_upsert.hxx +0 -4
- package/deps/couchbase-cxx-client/core/operations/document_view.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/document_view.hxx +10 -13
- package/deps/couchbase-cxx-client/core/operations/http_noop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataset_create.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataset_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataset_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataverse_create.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataverse_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_get_pending_mutations.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_index_create.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_index_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_index_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_connect.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_create.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_disconnect.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_replace.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_create.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_describe.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_flush.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_get.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_update.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/change_password.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/cluster_describe.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/cluster_developer_preview_enable.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/collection_create.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/collection_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/collection_update.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/collections_manifest_get.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/error_utils.cxx +4 -1
- package/deps/couchbase-cxx-client/core/operations/management/eventing_deploy_function.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_drop_function.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_get_all_functions.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_get_function.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_get_status.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_pause_function.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_resume_function.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_undeploy_function.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_upsert_function.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/freeform.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/group_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/group_get.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/group_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/group_upsert.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/query_index_build.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/query_index_build_deferred.hxx +68 -30
- package/deps/couchbase-cxx-client/core/operations/management/query_index_create.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/query_index_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/query_index_get_all.hxx +4 -3
- package/deps/couchbase-cxx-client/core/operations/management/query_index_get_all_deferred.hxx +2 -1
- package/deps/couchbase-cxx-client/core/operations/management/role_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/scope_create.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/scope_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/scope_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_get_stats.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_analyze_document.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_ingest.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_plan_freeze.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_query.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_documents_count.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_stats.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_upsert.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/user_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/user_get.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/user_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/user_upsert.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/view_index_drop.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/view_index_get.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/view_index_get_all.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/view_index_upsert.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/operation_traits.hxx +6 -0
- package/deps/couchbase-cxx-client/core/operations.hxx +0 -1
- package/deps/couchbase-cxx-client/core/operations_fwd.hxx +8 -0
- package/deps/couchbase-cxx-client/core/origin.cxx +67 -12
- package/deps/couchbase-cxx-client/core/origin.hxx +13 -8
- package/deps/couchbase-cxx-client/core/orphan_reporter.cxx +164 -0
- package/deps/couchbase-cxx-client/core/orphan_reporter.hxx +65 -0
- package/deps/couchbase-cxx-client/core/sasl/CMakeLists.txt +1 -0
- package/deps/couchbase-cxx-client/core/sasl/client.cc +6 -0
- package/deps/couchbase-cxx-client/core/sasl/mechanism.cc +2 -1
- package/deps/couchbase-cxx-client/core/sasl/mechanism.h +2 -1
- package/deps/couchbase-cxx-client/core/sasl/oauthbearer/oauthbearer.cc +41 -0
- package/deps/couchbase-cxx-client/core/sasl/oauthbearer/oauthbearer.h +47 -0
- package/deps/couchbase-cxx-client/core/tls_context_provider.cxx +44 -0
- package/deps/couchbase-cxx-client/core/tls_context_provider.hxx +44 -0
- package/deps/couchbase-cxx-client/core/tracing/attribute_helpers.hxx +45 -0
- package/deps/couchbase-cxx-client/core/tracing/constants.hxx +148 -68
- package/deps/couchbase-cxx-client/core/tracing/threshold_logging_options.hxx +0 -3
- package/deps/couchbase-cxx-client/core/tracing/threshold_logging_tracer.cxx +122 -170
- package/deps/couchbase-cxx-client/core/tracing/tracer_wrapper.cxx +17 -24
- package/deps/couchbase-cxx-client/core/tracing/tracer_wrapper.hxx +8 -10
- package/deps/couchbase-cxx-client/core/tracing/wrapper_sdk_tracer.cxx +114 -0
- package/deps/couchbase-cxx-client/core/tracing/wrapper_sdk_tracer.hxx +85 -0
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.cxx +16 -14
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.hxx +4 -4
- package/deps/couchbase-cxx-client/core/transactions/transactions.cxx +1 -1
- package/deps/couchbase-cxx-client/core/transactions/transactions_cleanup.cxx +1 -2
- package/deps/couchbase-cxx-client/core/utils/byteswap.hxx +12 -0
- package/deps/couchbase-cxx-client/core/utils/concurrent_fixed_priority_queue.hxx +102 -0
- package/deps/couchbase-cxx-client/core/utils/connection_string.cxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/certificate_authenticator.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +47 -0
- package/deps/couchbase-cxx-client/couchbase/cluster_options.hxx +16 -0
- package/deps/couchbase-cxx-client/couchbase/collection.hxx +60 -15
- package/deps/couchbase-cxx-client/couchbase/error_codes.hxx +48 -48
- package/deps/couchbase-cxx-client/couchbase/jwt_authenticator.hxx +52 -0
- package/deps/couchbase-cxx-client/couchbase/metrics/meter.hxx +2 -1
- package/deps/couchbase-cxx-client/couchbase/metrics/otel_meter.hxx +75 -80
- package/deps/couchbase-cxx-client/couchbase/network_options.hxx +19 -0
- package/deps/couchbase-cxx-client/couchbase/password_authenticator.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/tracing/otel_tracer.hxx +15 -17
- package/deps/couchbase-cxx-client/couchbase/tracing/request_span.hxx +2 -2
- package/dist/analyticsexecutor.d.ts +15 -0
- package/dist/analyticsexecutor.js +79 -50
- package/dist/analyticsindexmanager.d.ts +66 -0
- package/dist/analyticsindexmanager.js +404 -277
- package/dist/analyticstypes.d.ts +5 -0
- package/dist/authenticators.d.ts +34 -1
- package/dist/authenticators.js +19 -1
- package/dist/binarycollection.d.ts +17 -0
- package/dist/binding.d.ts +245 -228
- package/dist/bindingutilities.js +1 -1
- package/dist/bucket.d.ts +8 -0
- package/dist/bucket.js +8 -0
- package/dist/bucketmanager.d.ts +30 -0
- package/dist/bucketmanager.js +128 -69
- package/dist/cluster.d.ts +45 -0
- package/dist/cluster.js +133 -21
- package/dist/collection.d.ts +75 -2
- package/dist/collection.js +772 -551
- package/dist/collectionmanager.d.ts +34 -0
- package/dist/collectionmanager.js +172 -89
- package/dist/couchbase.d.ts +5 -0
- package/dist/couchbase.js +5 -0
- package/dist/datastructures.js +310 -97
- package/dist/errors.d.ts +8 -0
- package/dist/errors.js +12 -1
- package/dist/eventingfunctionmanager.d.ts +42 -0
- package/dist/eventingfunctionmanager.js +172 -100
- package/dist/logger.d.ts +192 -0
- package/dist/logger.js +213 -0
- package/dist/loggingmeter.d.ts +120 -0
- package/dist/loggingmeter.js +226 -0
- package/dist/metrics.d.ts +33 -0
- package/dist/metrics.js +5 -0
- package/dist/observability.d.ts +60 -0
- package/dist/observability.js +86 -0
- package/dist/observabilityhandler.d.ts +176 -0
- package/dist/observabilityhandler.js +733 -0
- package/dist/observabilitytypes.d.ts +320 -0
- package/dist/observabilitytypes.js +362 -0
- package/dist/observabilityutilities.d.ts +60 -0
- package/dist/observabilityutilities.js +175 -0
- package/dist/otelmeter.d.ts +51 -0
- package/dist/otelmeter.js +100 -0
- package/dist/oteltracer.d.ts +69 -0
- package/dist/oteltracer.js +141 -0
- package/dist/queryexecutor.d.ts +16 -0
- package/dist/queryexecutor.js +128 -86
- package/dist/queryindexmanager.d.ts +29 -0
- package/dist/queryindexmanager.js +277 -150
- package/dist/querytypes.d.ts +5 -0
- package/dist/scope.js +2 -2
- package/dist/scopeeventingfunctionmanager.d.ts +5 -0
- package/dist/scopeeventingfunctionmanager.js +217 -119
- package/dist/scopesearchindexmanager.d.ts +5 -0
- package/dist/scopesearchindexmanager.js +295 -166
- package/dist/sdspecs.js +6 -1
- package/dist/searchexecutor.d.ts +15 -0
- package/dist/searchexecutor.js +54 -26
- package/dist/searchindexmanager.d.ts +54 -0
- package/dist/searchindexmanager.js +235 -142
- package/dist/searchtypes.d.ts +5 -0
- package/dist/thresholdlogging.d.ts +301 -0
- package/dist/thresholdlogging.js +657 -0
- package/dist/tracing.d.ts +55 -0
- package/dist/tracing.js +2 -0
- package/dist/usermanager.d.ts +46 -0
- package/dist/usermanager.js +199 -118
- package/dist/utilities.d.ts +4 -0
- package/dist/utilities.js +11 -1
- package/dist/version.d.ts +2 -0
- package/dist/version.js +7 -0
- package/dist/viewexecutor.d.ts +15 -0
- package/dist/viewexecutor.js +54 -29
- package/dist/viewindexmanager.d.ts +30 -0
- package/dist/viewindexmanager.js +129 -100
- package/dist/viewtypes.d.ts +5 -0
- package/package.json +19 -9
- package/scripts/prebuilds.js +1 -1
- package/scripts/updateVersion.js +26 -0
- package/src/connection.cpp +79 -98
- package/src/connection.hpp +46 -38
- package/src/connection_autogen.cpp +1236 -292
- package/src/jstocbpp_autogen.hpp +1117 -313
- package/src/jstocbpp_basic.hpp +73 -0
- package/src/jstocbpp_defs.hpp +37 -9
- package/src/jstocbpp_errors.hpp +37 -11
- package/tools/gen-bindings-js.js +100 -22
- package/tools/gen-bindings-json.py +40 -6
- package/src/transcoder.hpp +0 -96
package/dist/bindingutilities.js
CHANGED
|
@@ -987,7 +987,7 @@ exports.scanTypeToCpp = scanTypeToCpp;
|
|
|
987
987
|
*/
|
|
988
988
|
function bucketTypeToCpp(type) {
|
|
989
989
|
if (type === null || type === undefined) {
|
|
990
|
-
return binding_1.default.management_cluster_bucket_type.
|
|
990
|
+
return binding_1.default.management_cluster_bucket_type.unknown;
|
|
991
991
|
}
|
|
992
992
|
if (type === bucketmanager_1.BucketType.Couchbase) {
|
|
993
993
|
return binding_1.default.management_cluster_bucket_type.couchbase;
|
package/dist/bucket.d.ts
CHANGED
|
@@ -63,6 +63,10 @@ export declare class Bucket {
|
|
|
63
63
|
/**
|
|
64
64
|
* Returns a ViewIndexManager which can be used to manage the view indexes
|
|
65
65
|
* of this bucket.
|
|
66
|
+
*
|
|
67
|
+
* @deprecated Since version 4.7.0. Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version.
|
|
68
|
+
* Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the
|
|
69
|
+
* Index Service (GSI) and the Query Service (SQL++).
|
|
66
70
|
*/
|
|
67
71
|
viewIndexes(): ViewIndexManager;
|
|
68
72
|
/**
|
|
@@ -73,6 +77,10 @@ export declare class Bucket {
|
|
|
73
77
|
/**
|
|
74
78
|
* Executes a view query.
|
|
75
79
|
*
|
|
80
|
+
* @deprecated Since version 4.7.0. Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version.
|
|
81
|
+
* Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the
|
|
82
|
+
* Index Service (GSI) and the Query Service (SQL++).
|
|
83
|
+
*
|
|
76
84
|
* @param designDoc The name of the design document containing the view to execute.
|
|
77
85
|
* @param viewName The name of the view to execute.
|
|
78
86
|
* @param options Optional parameters for this operation.
|
package/dist/bucket.js
CHANGED
|
@@ -80,6 +80,10 @@ class Bucket {
|
|
|
80
80
|
/**
|
|
81
81
|
* Returns a ViewIndexManager which can be used to manage the view indexes
|
|
82
82
|
* of this bucket.
|
|
83
|
+
*
|
|
84
|
+
* @deprecated Since version 4.7.0. Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version.
|
|
85
|
+
* Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the
|
|
86
|
+
* Index Service (GSI) and the Query Service (SQL++).
|
|
83
87
|
*/
|
|
84
88
|
viewIndexes() {
|
|
85
89
|
return new viewindexmanager_1.ViewIndexManager(this);
|
|
@@ -94,6 +98,10 @@ class Bucket {
|
|
|
94
98
|
/**
|
|
95
99
|
* Executes a view query.
|
|
96
100
|
*
|
|
101
|
+
* @deprecated Since version 4.7.0. Views are deprecated in Couchbase Server 7.0+, and will be removed from a future server version.
|
|
102
|
+
* Views are not compatible with the Magma storage engine. Instead of views, use indexes and queries using the
|
|
103
|
+
* Index Service (GSI) and the Query Service (SQL++).
|
|
104
|
+
*
|
|
97
105
|
* @param designDoc The name of the design document containing the view to execute.
|
|
98
106
|
* @param viewName The name of the view to execute.
|
|
99
107
|
* @param options Optional parameters for this operation.
|
package/dist/bucketmanager.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CppManagementClusterBucketSettings } from './binding';
|
|
2
2
|
import { Cluster } from './cluster';
|
|
3
3
|
import { DurabilityLevel } from './generaltypes';
|
|
4
|
+
import { ObservabilityInstruments } from './observabilitytypes';
|
|
5
|
+
import { RequestSpan } from './tracing';
|
|
4
6
|
import { NodeCallback } from './utilities';
|
|
5
7
|
/**
|
|
6
8
|
* Represents the various conflict resolution modes which can be used for
|
|
@@ -331,6 +333,10 @@ export interface CreateBucketOptions {
|
|
|
331
333
|
* The timeout for this operation, represented in milliseconds.
|
|
332
334
|
*/
|
|
333
335
|
timeout?: number;
|
|
336
|
+
/**
|
|
337
|
+
* Specifies the parent span for this specific operation.
|
|
338
|
+
*/
|
|
339
|
+
parentSpan?: RequestSpan;
|
|
334
340
|
}
|
|
335
341
|
/**
|
|
336
342
|
* @category Management
|
|
@@ -340,6 +346,10 @@ export interface UpdateBucketOptions {
|
|
|
340
346
|
* The timeout for this operation, represented in milliseconds.
|
|
341
347
|
*/
|
|
342
348
|
timeout?: number;
|
|
349
|
+
/**
|
|
350
|
+
* Specifies the parent span for this specific operation.
|
|
351
|
+
*/
|
|
352
|
+
parentSpan?: RequestSpan;
|
|
343
353
|
}
|
|
344
354
|
/**
|
|
345
355
|
* @category Management
|
|
@@ -349,6 +359,10 @@ export interface DropBucketOptions {
|
|
|
349
359
|
* The timeout for this operation, represented in milliseconds.
|
|
350
360
|
*/
|
|
351
361
|
timeout?: number;
|
|
362
|
+
/**
|
|
363
|
+
* Specifies the parent span for this specific operation.
|
|
364
|
+
*/
|
|
365
|
+
parentSpan?: RequestSpan;
|
|
352
366
|
}
|
|
353
367
|
/**
|
|
354
368
|
* @category Management
|
|
@@ -358,6 +372,10 @@ export interface GetBucketOptions {
|
|
|
358
372
|
* The timeout for this operation, represented in milliseconds.
|
|
359
373
|
*/
|
|
360
374
|
timeout?: number;
|
|
375
|
+
/**
|
|
376
|
+
* Specifies the parent span for this specific operation.
|
|
377
|
+
*/
|
|
378
|
+
parentSpan?: RequestSpan;
|
|
361
379
|
}
|
|
362
380
|
/**
|
|
363
381
|
* @category Management
|
|
@@ -367,6 +385,10 @@ export interface GetAllBucketsOptions {
|
|
|
367
385
|
* The timeout for this operation, represented in milliseconds.
|
|
368
386
|
*/
|
|
369
387
|
timeout?: number;
|
|
388
|
+
/**
|
|
389
|
+
* Specifies the parent span for this specific operation.
|
|
390
|
+
*/
|
|
391
|
+
parentSpan?: RequestSpan;
|
|
370
392
|
}
|
|
371
393
|
/**
|
|
372
394
|
* @category Management
|
|
@@ -376,6 +398,10 @@ export interface FlushBucketOptions {
|
|
|
376
398
|
* The timeout for this operation, represented in milliseconds.
|
|
377
399
|
*/
|
|
378
400
|
timeout?: number;
|
|
401
|
+
/**
|
|
402
|
+
* Specifies the parent span for this specific operation.
|
|
403
|
+
*/
|
|
404
|
+
parentSpan?: RequestSpan;
|
|
379
405
|
}
|
|
380
406
|
/**
|
|
381
407
|
* BucketManager provides an interface for adding/removing/updating
|
|
@@ -389,6 +415,10 @@ export declare class BucketManager {
|
|
|
389
415
|
* @internal
|
|
390
416
|
*/
|
|
391
417
|
constructor(cluster: Cluster);
|
|
418
|
+
/**
|
|
419
|
+
* @internal
|
|
420
|
+
*/
|
|
421
|
+
get observabilityInstruments(): ObservabilityInstruments;
|
|
392
422
|
/**
|
|
393
423
|
* Creates a new bucket.
|
|
394
424
|
*
|
package/dist/bucketmanager.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BucketManager = exports.BucketSettings = exports.CompressionMode = exports.EvictionPolicy = exports.StorageBackend = exports.BucketType = exports.ConflictResolutionType = void 0;
|
|
4
4
|
const bindingutilities_1 = require("./bindingutilities");
|
|
5
|
+
const observability_1 = require("./observability");
|
|
6
|
+
const observabilityhandler_1 = require("./observabilityhandler");
|
|
7
|
+
const observabilitytypes_1 = require("./observabilitytypes");
|
|
5
8
|
const utilities_1 = require("./utilities");
|
|
6
9
|
/**
|
|
7
10
|
* Represents the various conflict resolution modes which can be used for
|
|
@@ -175,14 +178,22 @@ class BucketSettings {
|
|
|
175
178
|
* @internal
|
|
176
179
|
*/
|
|
177
180
|
static _toCppData(data) {
|
|
181
|
+
let durabilityInput;
|
|
182
|
+
if (data.durabilityMinLevel !== undefined) {
|
|
183
|
+
durabilityInput = (0, utilities_1.nsServerStrToDuraLevel)(data.durabilityMinLevel);
|
|
184
|
+
}
|
|
185
|
+
else if (data.minimumDurabilityLevel !== undefined) {
|
|
186
|
+
durabilityInput = data.minimumDurabilityLevel;
|
|
187
|
+
}
|
|
178
188
|
return {
|
|
179
189
|
name: data.name,
|
|
180
190
|
bucket_type: (0, bindingutilities_1.bucketTypeToCpp)(data.bucketType),
|
|
181
191
|
ram_quota_mb: data.ramQuotaMB,
|
|
182
192
|
max_expiry: data.maxTTL || data.maxExpiry,
|
|
183
193
|
compression_mode: (0, bindingutilities_1.bucketCompressionModeToCpp)(data.compressionMode),
|
|
184
|
-
minimum_durability_level:
|
|
185
|
-
(0, bindingutilities_1.durabilityToCpp)(
|
|
194
|
+
minimum_durability_level: durabilityInput !== undefined
|
|
195
|
+
? (0, bindingutilities_1.durabilityToCpp)(durabilityInput)
|
|
196
|
+
: durabilityInput,
|
|
186
197
|
num_replicas: data.numReplicas,
|
|
187
198
|
replica_indexes: data.replicaIndexes,
|
|
188
199
|
flush_enabled: data.flushEnabled,
|
|
@@ -258,6 +269,12 @@ class BucketManager {
|
|
|
258
269
|
constructor(cluster) {
|
|
259
270
|
this._cluster = cluster;
|
|
260
271
|
}
|
|
272
|
+
/**
|
|
273
|
+
* @internal
|
|
274
|
+
*/
|
|
275
|
+
get observabilityInstruments() {
|
|
276
|
+
return this._cluster.observabilityInstruments;
|
|
277
|
+
}
|
|
261
278
|
/**
|
|
262
279
|
* Creates a new bucket.
|
|
263
280
|
*
|
|
@@ -273,20 +290,27 @@ class BucketManager {
|
|
|
273
290
|
if (!options) {
|
|
274
291
|
options = {};
|
|
275
292
|
}
|
|
276
|
-
const
|
|
277
|
-
|
|
293
|
+
const obsReqHandler = new observabilityhandler_1.ObservableRequestHandler(observabilitytypes_1.BucketMgmtOp.BucketCreate, this.observabilityInstruments, options === null || options === void 0 ? void 0 : options.parentSpan);
|
|
294
|
+
obsReqHandler.setRequestHttpAttributes({ bucketName: settings.name });
|
|
295
|
+
try {
|
|
296
|
+
const timeout = options.timeout || this._cluster.managementTimeout;
|
|
278
297
|
const bucketData = CreateBucketSettings._toCppData(settings);
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
298
|
+
return utilities_1.PromiseHelper.wrapAsync(async () => {
|
|
299
|
+
const [err, _] = await (0, observability_1.wrapObservableBindingCall)(this._cluster.conn.managementBucketCreate.bind(this._cluster.conn), {
|
|
300
|
+
bucket: bucketData,
|
|
301
|
+
timeout: timeout,
|
|
302
|
+
}, obsReqHandler);
|
|
284
303
|
if (err) {
|
|
285
|
-
|
|
304
|
+
obsReqHandler.endWithError(err);
|
|
305
|
+
throw err;
|
|
286
306
|
}
|
|
287
|
-
|
|
288
|
-
});
|
|
289
|
-
}
|
|
307
|
+
obsReqHandler.end();
|
|
308
|
+
}, callback);
|
|
309
|
+
}
|
|
310
|
+
catch (err) {
|
|
311
|
+
obsReqHandler.endWithError(err);
|
|
312
|
+
throw err;
|
|
313
|
+
}
|
|
290
314
|
}
|
|
291
315
|
/**
|
|
292
316
|
* Updates the settings for an existing bucket.
|
|
@@ -303,20 +327,27 @@ class BucketManager {
|
|
|
303
327
|
if (!options) {
|
|
304
328
|
options = {};
|
|
305
329
|
}
|
|
306
|
-
const
|
|
307
|
-
|
|
330
|
+
const obsReqHandler = new observabilityhandler_1.ObservableRequestHandler(observabilitytypes_1.BucketMgmtOp.BucketUpdate, this.observabilityInstruments, options === null || options === void 0 ? void 0 : options.parentSpan);
|
|
331
|
+
obsReqHandler.setRequestHttpAttributes({ bucketName: settings.name });
|
|
332
|
+
try {
|
|
333
|
+
const timeout = options.timeout || this._cluster.managementTimeout;
|
|
308
334
|
const bucketData = BucketSettings._toCppData(settings);
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
335
|
+
return utilities_1.PromiseHelper.wrapAsync(async () => {
|
|
336
|
+
const [err, _] = await (0, observability_1.wrapObservableBindingCall)(this._cluster.conn.managementBucketUpdate.bind(this._cluster.conn), {
|
|
337
|
+
bucket: bucketData,
|
|
338
|
+
timeout: timeout,
|
|
339
|
+
}, obsReqHandler);
|
|
314
340
|
if (err) {
|
|
315
|
-
|
|
341
|
+
obsReqHandler.endWithError(err);
|
|
342
|
+
throw err;
|
|
316
343
|
}
|
|
317
|
-
|
|
318
|
-
});
|
|
319
|
-
}
|
|
344
|
+
obsReqHandler.end();
|
|
345
|
+
}, callback);
|
|
346
|
+
}
|
|
347
|
+
catch (err) {
|
|
348
|
+
obsReqHandler.endWithError(err);
|
|
349
|
+
throw err;
|
|
350
|
+
}
|
|
320
351
|
}
|
|
321
352
|
/**
|
|
322
353
|
* Drops an existing bucket.
|
|
@@ -333,19 +364,26 @@ class BucketManager {
|
|
|
333
364
|
if (!options) {
|
|
334
365
|
options = {};
|
|
335
366
|
}
|
|
336
|
-
const
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
367
|
+
const obsReqHandler = new observabilityhandler_1.ObservableRequestHandler(observabilitytypes_1.BucketMgmtOp.BucketDrop, this.observabilityInstruments, options === null || options === void 0 ? void 0 : options.parentSpan);
|
|
368
|
+
obsReqHandler.setRequestHttpAttributes({ bucketName: bucketName });
|
|
369
|
+
try {
|
|
370
|
+
const timeout = options.timeout || this._cluster.managementTimeout;
|
|
371
|
+
return utilities_1.PromiseHelper.wrapAsync(async () => {
|
|
372
|
+
const [err, _] = await (0, observability_1.wrapObservableBindingCall)(this._cluster.conn.managementBucketDrop.bind(this._cluster.conn), {
|
|
373
|
+
name: bucketName,
|
|
374
|
+
timeout: timeout,
|
|
375
|
+
}, obsReqHandler);
|
|
343
376
|
if (err) {
|
|
344
|
-
|
|
377
|
+
obsReqHandler.endWithError(err);
|
|
378
|
+
throw err;
|
|
345
379
|
}
|
|
346
|
-
|
|
347
|
-
});
|
|
348
|
-
}
|
|
380
|
+
obsReqHandler.end();
|
|
381
|
+
}, callback);
|
|
382
|
+
}
|
|
383
|
+
catch (err) {
|
|
384
|
+
obsReqHandler.endWithError(err);
|
|
385
|
+
throw err;
|
|
386
|
+
}
|
|
349
387
|
}
|
|
350
388
|
/**
|
|
351
389
|
* Fetches the settings in use for a specified bucket.
|
|
@@ -362,20 +400,27 @@ class BucketManager {
|
|
|
362
400
|
if (!options) {
|
|
363
401
|
options = {};
|
|
364
402
|
}
|
|
365
|
-
const
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
403
|
+
const obsReqHandler = new observabilityhandler_1.ObservableRequestHandler(observabilitytypes_1.BucketMgmtOp.BucketGet, this.observabilityInstruments, options === null || options === void 0 ? void 0 : options.parentSpan);
|
|
404
|
+
obsReqHandler.setRequestHttpAttributes({ bucketName: bucketName });
|
|
405
|
+
try {
|
|
406
|
+
const timeout = options.timeout || this._cluster.managementTimeout;
|
|
407
|
+
return utilities_1.PromiseHelper.wrapAsync(async () => {
|
|
408
|
+
const [err, resp] = await (0, observability_1.wrapObservableBindingCall)(this._cluster.conn.managementBucketGet.bind(this._cluster.conn), {
|
|
409
|
+
name: bucketName,
|
|
410
|
+
timeout: timeout,
|
|
411
|
+
}, obsReqHandler);
|
|
372
412
|
if (err) {
|
|
373
|
-
|
|
413
|
+
obsReqHandler.endWithError(err);
|
|
414
|
+
throw err;
|
|
374
415
|
}
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
});
|
|
378
|
-
}
|
|
416
|
+
obsReqHandler.end();
|
|
417
|
+
return BucketSettings._fromCppData(resp.bucket);
|
|
418
|
+
}, callback);
|
|
419
|
+
}
|
|
420
|
+
catch (err) {
|
|
421
|
+
obsReqHandler.endWithError(err);
|
|
422
|
+
throw err;
|
|
423
|
+
}
|
|
379
424
|
}
|
|
380
425
|
/**
|
|
381
426
|
* Returns a list of existing buckets in the cluster.
|
|
@@ -391,19 +436,26 @@ class BucketManager {
|
|
|
391
436
|
if (!options) {
|
|
392
437
|
options = {};
|
|
393
438
|
}
|
|
394
|
-
const
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
const err = (0,
|
|
439
|
+
const obsReqHandler = new observabilityhandler_1.ObservableRequestHandler(observabilitytypes_1.BucketMgmtOp.BucketGetAll, this.observabilityInstruments, options === null || options === void 0 ? void 0 : options.parentSpan);
|
|
440
|
+
obsReqHandler.setRequestHttpAttributes();
|
|
441
|
+
try {
|
|
442
|
+
const timeout = options.timeout || this._cluster.managementTimeout;
|
|
443
|
+
return utilities_1.PromiseHelper.wrapAsync(async () => {
|
|
444
|
+
const [err, resp] = await (0, observability_1.wrapObservableBindingCall)(this._cluster.conn.managementBucketGetAll.bind(this._cluster.conn), {
|
|
445
|
+
timeout: timeout,
|
|
446
|
+
}, obsReqHandler);
|
|
400
447
|
if (err) {
|
|
401
|
-
|
|
448
|
+
obsReqHandler.endWithError(err);
|
|
449
|
+
throw err;
|
|
402
450
|
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
});
|
|
406
|
-
}
|
|
451
|
+
obsReqHandler.end();
|
|
452
|
+
return resp.buckets.map((bucketData) => BucketSettings._fromCppData(bucketData));
|
|
453
|
+
}, callback);
|
|
454
|
+
}
|
|
455
|
+
catch (err) {
|
|
456
|
+
obsReqHandler.endWithError(err);
|
|
457
|
+
throw err;
|
|
458
|
+
}
|
|
407
459
|
}
|
|
408
460
|
/**
|
|
409
461
|
* Flushes the bucket, deleting all the existing data that is stored in it.
|
|
@@ -420,19 +472,26 @@ class BucketManager {
|
|
|
420
472
|
if (!options) {
|
|
421
473
|
options = {};
|
|
422
474
|
}
|
|
423
|
-
const
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
475
|
+
const obsReqHandler = new observabilityhandler_1.ObservableRequestHandler(observabilitytypes_1.BucketMgmtOp.BucketFlush, this.observabilityInstruments, options === null || options === void 0 ? void 0 : options.parentSpan);
|
|
476
|
+
obsReqHandler.setRequestHttpAttributes({ bucketName: bucketName });
|
|
477
|
+
try {
|
|
478
|
+
const timeout = options.timeout || this._cluster.managementTimeout;
|
|
479
|
+
return utilities_1.PromiseHelper.wrapAsync(async () => {
|
|
480
|
+
const [err, _] = await (0, observability_1.wrapObservableBindingCall)(this._cluster.conn.managementBucketFlush.bind(this._cluster.conn), {
|
|
481
|
+
name: bucketName,
|
|
482
|
+
timeout: timeout,
|
|
483
|
+
}, obsReqHandler);
|
|
430
484
|
if (err) {
|
|
431
|
-
|
|
485
|
+
obsReqHandler.endWithError(err);
|
|
486
|
+
throw err;
|
|
432
487
|
}
|
|
433
|
-
|
|
434
|
-
});
|
|
435
|
-
}
|
|
488
|
+
obsReqHandler.end();
|
|
489
|
+
}, callback);
|
|
490
|
+
}
|
|
491
|
+
catch (err) {
|
|
492
|
+
obsReqHandler.endWithError(err);
|
|
493
|
+
throw err;
|
|
494
|
+
}
|
|
436
495
|
}
|
|
437
496
|
}
|
|
438
497
|
exports.BucketManager = BucketManager;
|
package/dist/cluster.d.ts
CHANGED
|
@@ -7,12 +7,16 @@ import { Bucket } from './bucket';
|
|
|
7
7
|
import { BucketManager } from './bucketmanager';
|
|
8
8
|
import { DiagnosticsOptions, DiagnosticsResult, PingOptions, PingResult } from './diagnosticstypes';
|
|
9
9
|
import { EventingFunctionManager } from './eventingfunctionmanager';
|
|
10
|
+
import { CouchbaseLogger, Logger } from './logger';
|
|
11
|
+
import { Meter } from './metrics';
|
|
12
|
+
import { ObservabilityInstruments } from './observabilitytypes';
|
|
10
13
|
import { QueryIndexManager } from './queryindexmanager';
|
|
11
14
|
import { QueryMetaData, QueryOptions, QueryResult } from './querytypes';
|
|
12
15
|
import { SearchIndexManager } from './searchindexmanager';
|
|
13
16
|
import { SearchQuery } from './searchquery';
|
|
14
17
|
import { SearchMetaData, SearchQueryOptions, SearchRequest, SearchResult, SearchRow } from './searchtypes';
|
|
15
18
|
import { StreamableRowPromise } from './streamablepromises';
|
|
19
|
+
import { RequestTracer } from './tracing';
|
|
16
20
|
import { Transactions, TransactionsConfig } from './transactions';
|
|
17
21
|
import { Transcoder } from './transcoders';
|
|
18
22
|
import { UserManager } from './usermanager';
|
|
@@ -192,6 +196,11 @@ export interface TracingConfig {
|
|
|
192
196
|
* @category Core
|
|
193
197
|
*/
|
|
194
198
|
export interface OrphanReporterConfig {
|
|
199
|
+
/**
|
|
200
|
+
* Specifies to enable or disable orphaned response logging.
|
|
201
|
+
* Defaults to true (enabled) if not specified.
|
|
202
|
+
*/
|
|
203
|
+
enableOrphanReporting?: boolean;
|
|
195
204
|
/**
|
|
196
205
|
* Specifies the interval after which the aggregated orphaned response information is logged, specified in millseconds.
|
|
197
206
|
* Defaults to 10000 (10 seconds) if not specified.
|
|
@@ -284,6 +293,10 @@ export interface ConnectOptions {
|
|
|
284
293
|
*
|
|
285
294
|
*/
|
|
286
295
|
appTelemetryConfig?: AppTelemetryConfig;
|
|
296
|
+
/**
|
|
297
|
+
* Specifies the request tracer for this cluster.
|
|
298
|
+
*/
|
|
299
|
+
tracer?: RequestTracer;
|
|
287
300
|
/**
|
|
288
301
|
* Specifies the tracing (threshold logging) config for connections of this cluster.
|
|
289
302
|
*/
|
|
@@ -292,10 +305,18 @@ export interface ConnectOptions {
|
|
|
292
305
|
* Specifies the orphan report logging config for connections of this cluster.
|
|
293
306
|
*/
|
|
294
307
|
orphanReporterConfig?: OrphanReporterConfig;
|
|
308
|
+
/**
|
|
309
|
+
* Specifies the meter for this cluster.
|
|
310
|
+
*/
|
|
311
|
+
meter?: Meter;
|
|
295
312
|
/**
|
|
296
313
|
* Specifies the metrics config for connections of this cluster.
|
|
297
314
|
*/
|
|
298
315
|
metricsConfig?: MetricsConfig;
|
|
316
|
+
/**
|
|
317
|
+
* Provides an implementation of the {@link Logger} interface to be used by the SDK.
|
|
318
|
+
*/
|
|
319
|
+
logger?: Logger;
|
|
299
320
|
}
|
|
300
321
|
/**
|
|
301
322
|
* Exposes the operations which are available to be performed against a cluster.
|
|
@@ -326,9 +347,13 @@ export declare class Cluster {
|
|
|
326
347
|
private _dnsConfig;
|
|
327
348
|
private _preferredServerGroup;
|
|
328
349
|
private _appTelemetryConfig;
|
|
350
|
+
private _tracer;
|
|
351
|
+
private _observabilityInstruments;
|
|
329
352
|
private _tracingConfig;
|
|
330
353
|
private _orphanReporterConfig;
|
|
331
354
|
private _metricsConfig;
|
|
355
|
+
private _meter;
|
|
356
|
+
private _logger;
|
|
332
357
|
/**
|
|
333
358
|
* @internal
|
|
334
359
|
*/
|
|
@@ -377,6 +402,14 @@ export declare class Cluster {
|
|
|
377
402
|
@internal
|
|
378
403
|
*/
|
|
379
404
|
get resolveTimeout(): number | undefined;
|
|
405
|
+
/**
|
|
406
|
+
@internal
|
|
407
|
+
*/
|
|
408
|
+
get logger(): CouchbaseLogger;
|
|
409
|
+
/**
|
|
410
|
+
* @internal
|
|
411
|
+
*/
|
|
412
|
+
get observabilityInstruments(): ObservabilityInstruments;
|
|
380
413
|
/**
|
|
381
414
|
* @internal
|
|
382
415
|
*/
|
|
@@ -494,5 +527,17 @@ export declare class Cluster {
|
|
|
494
527
|
* @param callback A node-style callback to be invoked after execution.
|
|
495
528
|
*/
|
|
496
529
|
close(callback?: NodeCallback<void>): Promise<void>;
|
|
530
|
+
/**
|
|
531
|
+
* Update the credentials used by this cluster.
|
|
532
|
+
*
|
|
533
|
+
* @param auth The new credentials to use.
|
|
534
|
+
*/
|
|
535
|
+
updateCredentials(auth: Authenticator): void;
|
|
536
|
+
/**
|
|
537
|
+
* @internal
|
|
538
|
+
*/
|
|
539
|
+
_getClusterLabels(): Record<string, string | undefined>;
|
|
540
|
+
private _getCppCredentials;
|
|
541
|
+
private _setupObservability;
|
|
497
542
|
private _connect;
|
|
498
543
|
}
|