couchbase 4.2.8 → 4.2.10
Sign up to get free protection for your applications and to get access to all the features.
- package/CMakeLists.txt +1 -1
- package/deps/couchbase-cxx-cache/mozilla-ca-bundle.crt +139 -56
- package/deps/couchbase-cxx-cache/mozilla-ca-bundle.sha256 +1 -1
- package/deps/couchbase-cxx-client/CMakeLists.txt +401 -424
- package/deps/couchbase-cxx-client/cmake/CompilerWarnings.cmake +7 -3
- package/deps/couchbase-cxx-client/cmake/OpenSSL.cmake +1 -0
- package/deps/couchbase-cxx-client/core/agent_config.hxx +1 -1
- package/deps/couchbase-cxx-client/core/agent_group.cxx +0 -1
- package/deps/couchbase-cxx-client/core/agent_group.hxx +9 -0
- package/deps/couchbase-cxx-client/core/agent_group_config.hxx +1 -1
- package/deps/couchbase-cxx-client/core/bucket.cxx +74 -10
- package/deps/couchbase-cxx-client/core/bucket.hxx +4 -2
- package/deps/couchbase-cxx-client/core/cluster.cxx +1491 -108
- package/deps/couchbase-cxx-client/core/cluster.hxx +183 -473
- package/deps/couchbase-cxx-client/core/cluster_agent_config.hxx +1 -1
- package/deps/couchbase-cxx-client/core/cluster_options.cxx +12 -2
- package/deps/couchbase-cxx-client/core/cluster_options.hxx +9 -8
- package/deps/couchbase-cxx-client/core/config_profiles.cxx +2 -2
- package/deps/couchbase-cxx-client/core/config_profiles.hxx +1 -1
- package/deps/couchbase-cxx-client/core/core_sdk_shim.cxx +1 -2
- package/deps/couchbase-cxx-client/core/core_sdk_shim.hxx +3 -2
- package/deps/couchbase-cxx-client/core/diagnostics.hxx +0 -1
- package/deps/couchbase-cxx-client/core/dispatcher.cxx +2 -2
- package/deps/couchbase-cxx-client/core/impl/analytics.cxx +38 -76
- package/deps/couchbase-cxx-client/core/impl/analytics.hxx +40 -0
- package/deps/couchbase-cxx-client/core/impl/analytics_index_manager.cxx +820 -0
- package/deps/couchbase-cxx-client/core/impl/binary_collection.cxx +403 -0
- package/deps/couchbase-cxx-client/core/impl/bucket.cxx +102 -0
- package/deps/couchbase-cxx-client/core/impl/bucket_manager.cxx +433 -0
- package/deps/couchbase-cxx-client/core/impl/cluster.cxx +299 -44
- package/deps/couchbase-cxx-client/core/impl/collection.cxx +1384 -0
- package/deps/couchbase-cxx-client/core/impl/collection_manager.cxx +306 -0
- package/deps/couchbase-cxx-client/core/impl/configuration_profiles_registry.cxx +3 -1
- package/deps/couchbase-cxx-client/core/impl/diagnostics.cxx +294 -0
- package/deps/couchbase-cxx-client/core/impl/diagnostics.hxx +39 -0
- package/deps/couchbase-cxx-client/core/impl/dns_srv_tracker.cxx +2 -0
- package/deps/couchbase-cxx-client/core/{operations/mcbp_noop.cxx → impl/doc_id_query.cxx} +19 -15
- package/deps/couchbase-cxx-client/core/impl/key_value_error_category.cxx +4 -2
- package/deps/couchbase-cxx-client/core/impl/lookup_in_all_replicas.hxx +0 -10
- package/deps/couchbase-cxx-client/core/impl/lookup_in_any_replica.hxx +0 -10
- package/deps/couchbase-cxx-client/core/impl/observe_poll.cxx +24 -17
- package/deps/couchbase-cxx-client/core/impl/observe_poll.hxx +1 -1
- package/deps/couchbase-cxx-client/core/impl/query.cxx +45 -68
- package/deps/couchbase-cxx-client/core/impl/query.hxx +34 -0
- package/deps/couchbase-cxx-client/core/impl/query_index_manager.cxx +628 -0
- package/deps/couchbase-cxx-client/core/impl/scope.cxx +187 -0
- package/deps/couchbase-cxx-client/core/impl/search.cxx +81 -57
- package/deps/couchbase-cxx-client/core/impl/search.hxx +45 -0
- package/deps/couchbase-cxx-client/core/impl/search_index_manager.cxx +712 -0
- package/deps/couchbase-cxx-client/core/impl/search_request.cxx +139 -0
- package/deps/couchbase-cxx-client/core/impl/search_row_location.cxx +12 -0
- package/deps/couchbase-cxx-client/core/impl/search_sort_geo_distance.cxx +87 -0
- package/deps/couchbase-cxx-client/core/impl/vector_query.cxx +42 -0
- package/deps/couchbase-cxx-client/core/impl/vector_search.cxx +40 -0
- package/deps/couchbase-cxx-client/core/impl/with_legacy_durability.hxx +23 -25
- package/deps/couchbase-cxx-client/core/io/dns_config.cxx +28 -0
- package/deps/couchbase-cxx-client/core/io/dns_config.hxx +6 -25
- package/deps/couchbase-cxx-client/core/io/http_session.hxx +6 -3
- package/deps/couchbase-cxx-client/core/io/http_session_manager.hxx +9 -1
- package/deps/couchbase-cxx-client/core/io/mcbp_command.hxx +1 -1
- package/deps/couchbase-cxx-client/core/io/mcbp_message.hxx +3 -2
- package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +75 -53
- package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +3 -1
- package/deps/couchbase-cxx-client/core/logger/logger.cxx +1 -1
- package/deps/couchbase-cxx-client/core/logger/logger.hxx +4 -4
- package/deps/couchbase-cxx-client/core/management/bucket_settings.hxx +1 -1
- package/deps/couchbase-cxx-client/core/mcbp/packet.cxx +1 -1
- package/deps/couchbase-cxx-client/core/mcbp/queue_callback.hxx +1 -1
- package/deps/couchbase-cxx-client/core/meta/features.hxx +38 -0
- package/deps/couchbase-cxx-client/core/operations/document_query.cxx +23 -2
- package/deps/couchbase-cxx-client/core/operations/document_query.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/document_search.cxx +37 -1
- package/deps/couchbase-cxx-client/core/operations/document_search.hxx +11 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataset_create.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataset_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataverse_create.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_dataverse_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_get_pending_mutations.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_index_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_connect.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_disconnect.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/analytics_link_get_all.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_create.cxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/management/bucket_describe.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_flush.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/bucket_get.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/change_password.cxx +3 -1
- package/deps/couchbase-cxx-client/core/operations/management/collection_create.cxx +9 -6
- package/deps/couchbase-cxx-client/core/operations/management/collection_create.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/management/collection_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/collection_update.cxx +9 -8
- package/deps/couchbase-cxx-client/core/operations/management/collection_update.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/management/error_utils.cxx +9 -5
- package/deps/couchbase-cxx-client/core/operations/management/eventing_deploy_function.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_drop_function.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_get_function.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_pause_function.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_resume_function.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_undeploy_function.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/eventing_upsert_function.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/group_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/group_get.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/group_get_all.cxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/management/query_index_build_deferred.hxx +2 -2
- package/deps/couchbase-cxx-client/core/operations/management/query_index_create.cxx +4 -1
- package/deps/couchbase-cxx-client/core/operations/management/query_index_drop.cxx +4 -1
- package/deps/couchbase-cxx-client/core/operations/management/query_index_get_all.cxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/management/query_index_get_all.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/management/scope_create.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/scope_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/scope_get_all.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_get_stats.cxx +4 -4
- package/deps/couchbase-cxx-client/core/operations/management/search_get_stats.hxx +4 -4
- package/deps/couchbase-cxx-client/core/operations/management/search_index_analyze_document.cxx +19 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_analyze_document.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_ingest.cxx +23 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_ingest.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_plan_freeze.cxx +23 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_plan_freeze.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_query.cxx +23 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_query.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_drop.cxx +19 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_drop.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get.cxx +19 -1
- 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.cxx +39 -22
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_all.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_documents_count.cxx +20 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_documents_count.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_stats.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_upsert.cxx +19 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_upsert.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/view_index_drop.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/view_index_get.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/view_index_get_all.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/view_index_upsert.cxx +2 -0
- package/deps/couchbase-cxx-client/core/operations.hxx +0 -1
- package/deps/couchbase-cxx-client/core/operations_fwd.hxx +260 -0
- package/deps/couchbase-cxx-client/core/origin.cxx +146 -5
- package/deps/couchbase-cxx-client/core/origin.hxx +30 -140
- package/deps/couchbase-cxx-client/core/protocol/cmd_cluster_map_change_notification.hxx +3 -3
- package/deps/couchbase-cxx-client/core/protocol/cmd_hello.hxx +5 -0
- package/deps/couchbase-cxx-client/core/protocol/cmd_observe_seqno.hxx +4 -4
- package/deps/couchbase-cxx-client/core/protocol/hello_feature.hxx +6 -0
- package/deps/couchbase-cxx-client/core/protocol/hello_feature_fmt.hxx +3 -0
- package/deps/couchbase-cxx-client/core/protocol/status.cxx +6 -0
- package/deps/couchbase-cxx-client/core/protocol/status.hxx +1 -0
- package/deps/couchbase-cxx-client/core/query_context.hxx +11 -7
- package/deps/couchbase-cxx-client/core/range_scan_orchestrator.cxx +1 -1
- package/deps/couchbase-cxx-client/core/topology/collections_manifest.hxx +1 -1
- package/deps/couchbase-cxx-client/core/topology/collections_manifest_json.hxx +1 -1
- package/deps/couchbase-cxx-client/core/topology/configuration.cxx +23 -0
- package/deps/couchbase-cxx-client/core/topology/configuration.hxx +8 -12
- package/deps/couchbase-cxx-client/core/topology/configuration_fmt.hxx +3 -3
- package/deps/couchbase-cxx-client/core/topology/configuration_json.hxx +2 -0
- package/deps/couchbase-cxx-client/core/topology/error_map.hxx +2 -2
- package/deps/couchbase-cxx-client/core/topology/error_map_json.hxx +4 -0
- package/deps/couchbase-cxx-client/core/transactions/active_transaction_record.cxx +58 -0
- package/deps/couchbase-cxx-client/core/transactions/active_transaction_record.hxx +5 -40
- package/deps/couchbase-cxx-client/core/transactions/async_attempt_context.cxx +30 -0
- package/deps/couchbase-cxx-client/core/transactions/atr_cleanup_entry.cxx +18 -18
- package/deps/couchbase-cxx-client/core/transactions/attempt_context.cxx +36 -0
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.cxx +39 -41
- package/deps/couchbase-cxx-client/core/transactions/attempt_context_impl.hxx +2 -2
- package/deps/couchbase-cxx-client/core/transactions/internal/atr_cleanup_entry.hxx +3 -1
- package/deps/couchbase-cxx-client/core/transactions/internal/atr_entry.hxx +2 -0
- package/deps/couchbase-cxx-client/core/transactions/internal/doc_record.cxx +32 -0
- package/deps/couchbase-cxx-client/core/transactions/internal/doc_record.hxx +4 -30
- package/deps/couchbase-cxx-client/core/transactions/internal/doc_record_fmt.hxx +41 -0
- package/deps/couchbase-cxx-client/core/transactions/internal/logging.hxx +17 -15
- package/deps/couchbase-cxx-client/core/transactions/internal/transaction_context.hxx +1 -1
- package/deps/couchbase-cxx-client/core/transactions/internal/transactions_cleanup.hxx +4 -4
- package/deps/couchbase-cxx-client/core/transactions/internal/utils.hxx +5 -13
- package/deps/couchbase-cxx-client/core/transactions/result.hxx +0 -26
- package/deps/couchbase-cxx-client/core/transactions/result_fmt.hxx +46 -0
- package/deps/couchbase-cxx-client/core/transactions/staged_mutation.cxx +16 -14
- package/deps/couchbase-cxx-client/core/transactions/transaction_context.cxx +6 -6
- package/deps/couchbase-cxx-client/core/transactions/transaction_keyspace.cxx +48 -0
- package/deps/couchbase-cxx-client/core/transactions/transaction_links.hxx +1 -0
- package/deps/couchbase-cxx-client/core/transactions/transaction_options.cxx +61 -4
- package/deps/couchbase-cxx-client/core/transactions/transactions.cxx +9 -8
- package/deps/couchbase-cxx-client/core/transactions/transactions_cleanup.cxx +9 -16
- package/deps/couchbase-cxx-client/core/transactions/transactions_config.cxx +7 -6
- package/deps/couchbase-cxx-client/core/transactions.hxx +6 -5
- package/deps/couchbase-cxx-client/core/utils/join_strings.hxx +4 -3
- package/deps/couchbase-cxx-client/core/utils/keyspace.hxx +4 -4
- package/deps/couchbase-cxx-client/core/vector_query_combination.hxx +23 -0
- package/deps/couchbase-cxx-client/couchbase/allow_querying_search_index_options.hxx +44 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_index_manager.hxx +463 -0
- package/deps/couchbase-cxx-client/couchbase/analyze_document_options.hxx +44 -0
- package/deps/couchbase-cxx-client/couchbase/append_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/behavior_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/binary_collection.hxx +19 -115
- package/deps/couchbase-cxx-client/couchbase/bucket.hxx +42 -30
- package/deps/couchbase-cxx-client/couchbase/bucket_manager.hxx +8 -7
- package/deps/couchbase-cxx-client/couchbase/build_query_index_options.hxx +0 -1
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +151 -73
- package/deps/couchbase-cxx-client/couchbase/cluster_options.hxx +1 -27
- package/deps/couchbase-cxx-client/couchbase/codec/json_transcoder.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/codec/raw_binary_transcoder.hxx +2 -1
- package/deps/couchbase-cxx-client/couchbase/codec/raw_json_transcoder.hxx +78 -0
- package/deps/couchbase-cxx-client/couchbase/codec/raw_string_transcoder.hxx +72 -0
- package/deps/couchbase-cxx-client/couchbase/collection.hxx +176 -386
- package/deps/couchbase-cxx-client/couchbase/collection_manager.hxx +8 -9
- package/deps/couchbase-cxx-client/couchbase/collection_query_index_manager.hxx +21 -24
- package/deps/couchbase-cxx-client/couchbase/connect_link_analytics_options.hxx +116 -0
- package/deps/couchbase-cxx-client/couchbase/create_bucket_options.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/create_collection_options.hxx +32 -3
- package/deps/couchbase-cxx-client/couchbase/create_dataset_analytics_options.hxx +120 -0
- package/deps/couchbase-cxx-client/couchbase/create_dataverse_analytics_options.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/create_index_analytics_options.hxx +103 -0
- package/deps/couchbase-cxx-client/couchbase/create_link_analytics_options.hxx +63 -0
- package/deps/couchbase-cxx-client/couchbase/decrement_options.hxx +0 -23
- package/deps/couchbase-cxx-client/couchbase/diagnostics_options.hxx +75 -0
- package/deps/couchbase-cxx-client/couchbase/diagnostics_result.hxx +124 -0
- package/deps/couchbase-cxx-client/couchbase/disallow_querying_search_index_options.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/disconnect_link_analytics_options.hxx +105 -0
- package/deps/couchbase-cxx-client/couchbase/drop_dataset_analytics_options.hxx +103 -0
- package/deps/couchbase-cxx-client/couchbase/drop_dataverse_analytics_options.hxx +84 -0
- package/deps/couchbase-cxx-client/couchbase/drop_index_analytics_options.hxx +103 -0
- package/deps/couchbase-cxx-client/couchbase/drop_link_analytics_options.hxx +63 -0
- package/deps/couchbase-cxx-client/couchbase/drop_search_index_options.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/endpoint_diagnostics.hxx +206 -0
- package/deps/couchbase-cxx-client/couchbase/endpoint_ping_report.hxx +205 -0
- package/deps/couchbase-cxx-client/couchbase/error_codes.hxx +22 -1
- package/deps/couchbase-cxx-client/couchbase/exists_options.hxx +0 -23
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_error_map_attribute.hxx +6 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/key_value_status_code.hxx +3 -0
- package/deps/couchbase-cxx-client/couchbase/fmt/transaction_keyspace.hxx +37 -0
- package/deps/couchbase-cxx-client/couchbase/freeze_plan_search_index_options.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/get_all_datasets_analytics_options.hxx +66 -0
- package/deps/couchbase-cxx-client/couchbase/get_all_indexes_analytics_options.hxx +65 -0
- package/deps/couchbase-cxx-client/couchbase/get_all_query_indexes_options.hxx +1 -4
- package/deps/couchbase-cxx-client/couchbase/get_all_replicas_options.hxx +0 -23
- package/deps/couchbase-cxx-client/couchbase/get_all_search_indexes_options.hxx +45 -0
- package/deps/couchbase-cxx-client/couchbase/get_and_lock_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/get_and_touch_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/get_any_replica_options.hxx +0 -23
- package/deps/couchbase-cxx-client/couchbase/get_indexed_search_index_options.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/get_links_analytics_options.hxx +121 -0
- package/deps/couchbase-cxx-client/couchbase/get_options.hxx +1 -29
- package/deps/couchbase-cxx-client/couchbase/get_pending_mutations_analytics_options.hxx +67 -0
- package/deps/couchbase-cxx-client/couchbase/get_search_index_options.hxx +44 -0
- package/deps/couchbase-cxx-client/couchbase/increment_options.hxx +0 -23
- package/deps/couchbase-cxx-client/couchbase/insert_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/key_value_error_map_attribute.hxx +12 -0
- package/deps/couchbase-cxx-client/couchbase/key_value_status_code.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/lookup_in_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/management/analytics_dataset.hxx +48 -0
- package/deps/couchbase-cxx-client/couchbase/management/analytics_index.hxx +48 -0
- package/deps/couchbase-cxx-client/couchbase/management/analytics_link.hxx +239 -0
- package/deps/couchbase-cxx-client/couchbase/management/collection_spec.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/management/query_index.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/management/search_index.hxx +40 -0
- package/deps/couchbase-cxx-client/couchbase/manager_error_context.hxx +0 -1
- package/deps/couchbase-cxx-client/couchbase/mutate_in_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/network_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/pause_ingest_search_index_options.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/phrase_query.hxx +19 -0
- package/deps/couchbase-cxx-client/couchbase/ping_options.hxx +93 -0
- package/deps/couchbase-cxx-client/couchbase/ping_result.hxx +118 -0
- package/deps/couchbase-cxx-client/couchbase/prepend_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/query_index_manager.hxx +99 -20
- package/deps/couchbase-cxx-client/couchbase/query_options.hxx +0 -21
- package/deps/couchbase-cxx-client/couchbase/remove_options.hxx +0 -23
- package/deps/couchbase-cxx-client/couchbase/replace_link_analytics_options.hxx +63 -0
- package/deps/couchbase-cxx-client/couchbase/replace_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/resume_ingest_search_index_options.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/scope.hxx +37 -53
- package/deps/couchbase-cxx-client/couchbase/scope_search_index_manager.hxx +291 -0
- package/deps/couchbase-cxx-client/couchbase/search_facet_result.hxx +1 -7
- package/deps/couchbase-cxx-client/couchbase/search_geo_distance_units.hxx +26 -0
- package/deps/couchbase-cxx-client/couchbase/search_index_manager.hxx +292 -0
- package/deps/couchbase-cxx-client/couchbase/search_request.hxx +120 -0
- package/deps/couchbase-cxx-client/couchbase/search_row_location.hxx +10 -0
- package/deps/couchbase-cxx-client/couchbase/search_sort_geo_distance.hxx +84 -0
- package/deps/couchbase-cxx-client/couchbase/security_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/service_type.hxx +58 -0
- package/deps/couchbase-cxx-client/couchbase/touch_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/tracing/request_tracer.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/transactions/async_attempt_context.hxx +10 -7
- package/deps/couchbase-cxx-client/couchbase/transactions/attempt_context.hxx +10 -10
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_keyspace.hxx +8 -58
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_options.hxx +28 -70
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_query_options.hxx +7 -2
- package/deps/couchbase-cxx-client/couchbase/transactions/transactions_cleanup_config.hxx +2 -1
- package/deps/couchbase-cxx-client/couchbase/transactions/transactions_config.hxx +11 -38
- package/deps/couchbase-cxx-client/couchbase/unfreeze_plan_search_index_options.hxx +43 -0
- package/deps/couchbase-cxx-client/couchbase/unlock_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/update_collection_options.hxx +32 -3
- package/deps/couchbase-cxx-client/couchbase/upsert_options.hxx +0 -24
- package/deps/couchbase-cxx-client/couchbase/upsert_search_index_options.hxx +41 -0
- package/deps/couchbase-cxx-client/couchbase/vector_query.hxx +99 -0
- package/deps/couchbase-cxx-client/couchbase/vector_search.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/vector_search_options.hxx +76 -0
- package/dist/binding.d.ts +16 -9
- package/dist/binding.js +4 -1
- package/dist/bindingutilities.d.ts +6 -1
- package/dist/bindingutilities.js +17 -1
- package/dist/cluster.d.ts +12 -1
- package/dist/cluster.js +22 -0
- package/dist/collection.js +3 -3
- package/dist/couchbase.d.ts +1 -0
- package/dist/couchbase.js +1 -0
- package/dist/errors.d.ts +9 -0
- package/dist/errors.js +14 -2
- package/dist/searchexecutor.d.ts +2 -2
- package/dist/searchexecutor.js +19 -3
- package/dist/searchtypes.d.ts +46 -0
- package/dist/searchtypes.js +81 -1
- package/dist/transactions.d.ts +2 -0
- package/dist/transactions.js +2 -3
- package/dist/usermanager.js +1 -1
- package/dist/vectorsearch.d.ts +99 -0
- package/dist/vectorsearch.js +132 -0
- package/package.json +7 -7
- package/src/binding.cpp +1 -0
- package/src/connection.cpp +12 -9
- package/src/connection.hpp +3 -3
- package/src/connection_autogen.cpp +7 -5
- package/src/constants.cpp +14 -0
- package/src/instance.cpp +2 -2
- package/src/instance.hpp +1 -1
- package/src/jstocbpp_autogen.hpp +45 -45
- package/src/jstocbpp_basic.hpp +2 -0
- package/src/jstocbpp_errors.hpp +1 -0
- package/src/jstocbpp_transactions.hpp +6 -22
- package/src/mutationtoken.hpp +1 -0
- package/tools/gen-bindings-json.py +41 -16
- package/deps/couchbase-cxx-client/core/impl/append.cxx +0 -87
- package/deps/couchbase-cxx-client/core/impl/build_deferred_query_indexes.cxx +0 -157
- package/deps/couchbase-cxx-client/core/impl/create_bucket.cxx +0 -158
- package/deps/couchbase-cxx-client/core/impl/create_collection.cxx +0 -83
- package/deps/couchbase-cxx-client/core/impl/create_query_index.cxx +0 -232
- package/deps/couchbase-cxx-client/core/impl/create_scope.cxx +0 -69
- package/deps/couchbase-cxx-client/core/impl/decrement.cxx +0 -96
- package/deps/couchbase-cxx-client/core/impl/drop_bucket.cxx +0 -66
- package/deps/couchbase-cxx-client/core/impl/drop_collection.cxx +0 -76
- package/deps/couchbase-cxx-client/core/impl/drop_query_index.cxx +0 -187
- package/deps/couchbase-cxx-client/core/impl/drop_scope.cxx +0 -68
- package/deps/couchbase-cxx-client/core/impl/exists.cxx +0 -47
- package/deps/couchbase-cxx-client/core/impl/flush_bucket.cxx +0 -66
- package/deps/couchbase-cxx-client/core/impl/get.cxx +0 -68
- package/deps/couchbase-cxx-client/core/impl/get_all_buckets.cxx +0 -178
- package/deps/couchbase-cxx-client/core/impl/get_all_query_indexes.cxx +0 -106
- package/deps/couchbase-cxx-client/core/impl/get_all_replicas.cxx +0 -145
- package/deps/couchbase-cxx-client/core/impl/get_all_scopes.cxx +0 -94
- package/deps/couchbase-cxx-client/core/impl/get_and_lock.cxx +0 -49
- package/deps/couchbase-cxx-client/core/impl/get_and_touch.cxx +0 -49
- package/deps/couchbase-cxx-client/core/impl/get_any_replica.cxx +0 -134
- package/deps/couchbase-cxx-client/core/impl/get_bucket.cxx +0 -168
- package/deps/couchbase-cxx-client/core/impl/increment.cxx +0 -96
- package/deps/couchbase-cxx-client/core/impl/insert.cxx +0 -90
- package/deps/couchbase-cxx-client/core/impl/lookup_in.cxx +0 -69
- package/deps/couchbase-cxx-client/core/impl/lookup_in_all_replicas.cxx +0 -178
- package/deps/couchbase-cxx-client/core/impl/lookup_in_any_replica.cxx +0 -169
- package/deps/couchbase-cxx-client/core/impl/mutate_in.cxx +0 -125
- package/deps/couchbase-cxx-client/core/impl/prepend.cxx +0 -87
- package/deps/couchbase-cxx-client/core/impl/remove.cxx +0 -86
- package/deps/couchbase-cxx-client/core/impl/replace.cxx +0 -102
- package/deps/couchbase-cxx-client/core/impl/touch.cxx +0 -49
- package/deps/couchbase-cxx-client/core/impl/unlock.cxx +0 -47
- package/deps/couchbase-cxx-client/core/impl/update_bucket.cxx +0 -133
- package/deps/couchbase-cxx-client/core/impl/update_collection.cxx +0 -83
- package/deps/couchbase-cxx-client/core/impl/upsert.cxx +0 -100
- package/deps/couchbase-cxx-client/core/impl/watch_query_indexes.cxx +0 -196
- package/deps/couchbase-cxx-client/core/operations/mcbp_noop.hxx +0 -49
- /package/deps/couchbase-cxx-client/core/impl/{streaming_json_lexter_error_category.cxx → streaming_json_lexer_error_category.cxx} +0 -0
@@ -0,0 +1,41 @@
|
|
1
|
+
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright 2020-Present Couchbase, Inc.
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
#pragma once
|
19
|
+
|
20
|
+
#include <functional>
|
21
|
+
#include <memory>
|
22
|
+
#include <optional>
|
23
|
+
#include <string>
|
24
|
+
|
25
|
+
namespace couchbase
|
26
|
+
{
|
27
|
+
struct upsert_search_index_options : public common_options<upsert_search_index_options> {
|
28
|
+
public:
|
29
|
+
struct built : public common_options<upsert_search_index_options>::built {
|
30
|
+
};
|
31
|
+
|
32
|
+
[[nodiscard]] auto build() const -> built
|
33
|
+
{
|
34
|
+
return { build_common_options() };
|
35
|
+
}
|
36
|
+
|
37
|
+
private:
|
38
|
+
};
|
39
|
+
|
40
|
+
using upsert_search_index_handler = std::function<void(couchbase::manager_error_context)>;
|
41
|
+
} // namespace couchbase
|
@@ -0,0 +1,99 @@
|
|
1
|
+
#include <utility>
|
2
|
+
|
3
|
+
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
4
|
+
/*
|
5
|
+
* Copyright 2023-Present Couchbase, Inc.
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
*/
|
19
|
+
|
20
|
+
#pragma once
|
21
|
+
|
22
|
+
namespace couchbase
|
23
|
+
{
|
24
|
+
/**
|
25
|
+
* @since 1.0.0
|
26
|
+
* @volatile
|
27
|
+
*/
|
28
|
+
class vector_query
|
29
|
+
{
|
30
|
+
public:
|
31
|
+
/**
|
32
|
+
* Creates a vector query
|
33
|
+
*
|
34
|
+
* @param vector_field_name the document field that contains the vector
|
35
|
+
* @param vector_query the vector query to run. Cannot be empty.
|
36
|
+
*
|
37
|
+
* @since 1.0.0
|
38
|
+
* @volatile
|
39
|
+
*/
|
40
|
+
vector_query(std::string vector_field_name, std::vector<double> vector_query)
|
41
|
+
: vector_field_name_{ std::move(vector_field_name) }
|
42
|
+
, vector_query_{ std::move(vector_query) }
|
43
|
+
{
|
44
|
+
if (vector_query_.empty()) {
|
45
|
+
throw std::invalid_argument("the vector_query cannot be empty");
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* The number of results that will be returned from this vector query. Defaults to 3.
|
51
|
+
*
|
52
|
+
* @param num_candidates the number of results returned
|
53
|
+
*
|
54
|
+
* @return this vector_query for chaining purposes
|
55
|
+
*
|
56
|
+
* @since 1.0.0
|
57
|
+
* @volatile
|
58
|
+
*/
|
59
|
+
auto num_candidates(std::uint32_t num_candidates) -> vector_query&
|
60
|
+
{
|
61
|
+
if (num_candidates < 1) {
|
62
|
+
throw std::invalid_argument("The num_candidates cannot be less than 1");
|
63
|
+
}
|
64
|
+
num_candidates_ = num_candidates;
|
65
|
+
return *this;
|
66
|
+
}
|
67
|
+
|
68
|
+
/**
|
69
|
+
* The boost parameter is used to increase the relative weight of a clause (with a boost greater than 1) or decrease the relative weight
|
70
|
+
* (with a boost between 0 and 1).
|
71
|
+
*
|
72
|
+
* @param boost boost value
|
73
|
+
*
|
74
|
+
* @return this vector_query for chaining purposes.
|
75
|
+
*
|
76
|
+
* @since 1.0.0
|
77
|
+
* @volatile
|
78
|
+
*/
|
79
|
+
auto boost(double boost) -> vector_query&
|
80
|
+
{
|
81
|
+
boost_ = boost;
|
82
|
+
return *this;
|
83
|
+
}
|
84
|
+
|
85
|
+
/**
|
86
|
+
* @return encoded representation of the query.
|
87
|
+
*
|
88
|
+
* @since 1.0.0
|
89
|
+
* @internal
|
90
|
+
*/
|
91
|
+
[[nodiscard]] auto encode() const -> encoded_search_query;
|
92
|
+
|
93
|
+
private:
|
94
|
+
std::string vector_field_name_;
|
95
|
+
std::vector<double> vector_query_;
|
96
|
+
std::uint32_t num_candidates_{ 3 };
|
97
|
+
std::optional<double> boost_{};
|
98
|
+
};
|
99
|
+
} // namespace couchbase
|
@@ -0,0 +1,85 @@
|
|
1
|
+
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright 2023-Present Couchbase, Inc.
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
#pragma once
|
19
|
+
|
20
|
+
#include <couchbase/vector_query.hxx>
|
21
|
+
#include <couchbase/vector_search_options.hxx>
|
22
|
+
|
23
|
+
namespace couchbase
|
24
|
+
{
|
25
|
+
/**
|
26
|
+
* A vector_search allows one or more @ref vector_query to be executed.
|
27
|
+
*
|
28
|
+
* @since 1.0.0
|
29
|
+
* @volatile
|
30
|
+
*/
|
31
|
+
class vector_search
|
32
|
+
{
|
33
|
+
public:
|
34
|
+
/**
|
35
|
+
* Will execute all of the provided vector_queries, using the specified options
|
36
|
+
*
|
37
|
+
* @param vector_queries vector queries to be run
|
38
|
+
* @param options options to use on the vector queries
|
39
|
+
*
|
40
|
+
* @since 1.0.0
|
41
|
+
* @volatile
|
42
|
+
*/
|
43
|
+
explicit vector_search(std::vector<vector_query> vector_queries, vector_search_options options = {})
|
44
|
+
: vector_queries_{ std::move(vector_queries) }
|
45
|
+
, options_{ options.build() }
|
46
|
+
{
|
47
|
+
}
|
48
|
+
|
49
|
+
/**
|
50
|
+
* Will execute a singe vector_query, using default options
|
51
|
+
*
|
52
|
+
* @param query the query to be run
|
53
|
+
*
|
54
|
+
* @since 1.0.0
|
55
|
+
* @volatile
|
56
|
+
*/
|
57
|
+
explicit vector_search(vector_query query)
|
58
|
+
: vector_queries_{ std::vector<vector_query>{ std::move(query) } }
|
59
|
+
{
|
60
|
+
}
|
61
|
+
|
62
|
+
/**
|
63
|
+
* Fetches the vector_search_options
|
64
|
+
*
|
65
|
+
* @since 1.0.0
|
66
|
+
* @internal
|
67
|
+
*/
|
68
|
+
[[nodiscard]] vector_search_options::built options() const
|
69
|
+
{
|
70
|
+
return options_;
|
71
|
+
}
|
72
|
+
|
73
|
+
/**
|
74
|
+
* @return encoded representation of the vector_search.
|
75
|
+
*
|
76
|
+
* @since 1.0.0
|
77
|
+
* @internal
|
78
|
+
*/
|
79
|
+
[[nodiscard]] auto encode() const -> encoded_search_query;
|
80
|
+
|
81
|
+
private:
|
82
|
+
std::vector<vector_query> vector_queries_;
|
83
|
+
vector_search_options::built options_{};
|
84
|
+
};
|
85
|
+
} // namespace couchbase
|
@@ -0,0 +1,76 @@
|
|
1
|
+
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright 2023-Present Couchbase, Inc.
|
4
|
+
*
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
* you may not use this file except in compliance with the License.
|
7
|
+
* You may obtain a copy of the License at
|
8
|
+
*
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
*
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
* See the License for the specific language governing permissions and
|
15
|
+
* limitations under the License.
|
16
|
+
*/
|
17
|
+
|
18
|
+
#pragma once
|
19
|
+
|
20
|
+
namespace couchbase
|
21
|
+
{
|
22
|
+
enum class vector_query_combination { combination_and, combination_or };
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Options related to executing a @ref vector_search
|
26
|
+
*
|
27
|
+
* @since 1.0.0
|
28
|
+
* @volatile
|
29
|
+
*/
|
30
|
+
struct vector_search_options {
|
31
|
+
|
32
|
+
/**
|
33
|
+
* Immutable value object representing consistent options
|
34
|
+
*
|
35
|
+
* @since 1.0.0
|
36
|
+
* @internal
|
37
|
+
*/
|
38
|
+
struct built {
|
39
|
+
std::optional<vector_query_combination> combination;
|
40
|
+
};
|
41
|
+
|
42
|
+
/**
|
43
|
+
* Validates options and returns them as an immutable value.
|
44
|
+
*
|
45
|
+
* @return consistent options as an immutable value
|
46
|
+
*
|
47
|
+
* @exception std::system_error with code errc::common::invalid_argument if the options are not valid
|
48
|
+
*
|
49
|
+
* @since 1.0.0
|
50
|
+
* @internal
|
51
|
+
*/
|
52
|
+
[[nodiscard]] auto build() const -> built
|
53
|
+
{
|
54
|
+
return { combination_ };
|
55
|
+
}
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Sets how the vector query results are combined.
|
59
|
+
*
|
60
|
+
* @param combination @ref vector_query_combination
|
61
|
+
* @return this for chaining purposes
|
62
|
+
*
|
63
|
+
* @since 1.0.0
|
64
|
+
* @volatile
|
65
|
+
*
|
66
|
+
*/
|
67
|
+
auto query_combination(vector_query_combination combination) -> vector_search_options&
|
68
|
+
{
|
69
|
+
combination_ = combination;
|
70
|
+
return *this;
|
71
|
+
}
|
72
|
+
|
73
|
+
private:
|
74
|
+
std::optional<vector_query_combination> combination_{};
|
75
|
+
};
|
76
|
+
} // namespace couchbase
|
package/dist/binding.d.ts
CHANGED
@@ -131,6 +131,8 @@ export declare enum CppPersistTo {
|
|
131
131
|
}
|
132
132
|
export declare enum CppReplicateTo {
|
133
133
|
}
|
134
|
+
export declare enum CppVectorQueryCombination {
|
135
|
+
}
|
134
136
|
export interface CppManagementAnalyticsDataset {
|
135
137
|
name: string;
|
136
138
|
dataverse_name: string;
|
@@ -606,8 +608,6 @@ export interface CppQueryRequest {
|
|
606
608
|
send_to_node?: string;
|
607
609
|
body_str: string;
|
608
610
|
}
|
609
|
-
export interface CppMcbpNoopResponse {
|
610
|
-
}
|
611
611
|
export interface CppReplaceResponse {
|
612
612
|
cas: CppCas;
|
613
613
|
token: CppMutationToken;
|
@@ -860,6 +860,9 @@ export interface CppSearchResponseSearchFacetNumericRangeFacet {
|
|
860
860
|
export interface CppSearchRequest {
|
861
861
|
index_name: string;
|
862
862
|
query: CppJsonString;
|
863
|
+
show_request?: boolean;
|
864
|
+
vector_search?: CppJsonString;
|
865
|
+
vector_query_combination?: CppVectorQueryCombination;
|
863
866
|
limit?: number;
|
864
867
|
skip?: number;
|
865
868
|
explain?: boolean;
|
@@ -1629,10 +1632,10 @@ export interface CppManagementSearchIndexControlPlanFreezeRequest {
|
|
1629
1632
|
client_context_id?: string;
|
1630
1633
|
timeout?: CppMilliseconds;
|
1631
1634
|
}
|
1632
|
-
export interface
|
1635
|
+
export interface CppManagementSearchGetStatsResponse {
|
1633
1636
|
stats: string;
|
1634
1637
|
}
|
1635
|
-
export interface
|
1638
|
+
export interface CppManagementSearchGetStatsRequest {
|
1636
1639
|
client_context_id?: string;
|
1637
1640
|
timeout?: CppMilliseconds;
|
1638
1641
|
}
|
@@ -2010,7 +2013,7 @@ export interface CppConnectionAutogen {
|
|
2010
2013
|
managementUserGet(options: CppManagementUserGetRequest, callback: (err: CppError | null, result: CppManagementUserGetResponse) => void): void;
|
2011
2014
|
managementSearchIndexDrop(options: CppManagementSearchIndexDropRequest, callback: (err: CppError | null, result: CppManagementSearchIndexDropResponse) => void): void;
|
2012
2015
|
managementSearchIndexControlPlanFreeze(options: CppManagementSearchIndexControlPlanFreezeRequest, callback: (err: CppError | null, result: CppManagementSearchIndexControlPlanFreezeResponse) => void): void;
|
2013
|
-
|
2016
|
+
managementSearchGetStats(options: CppManagementSearchGetStatsRequest, callback: (err: CppError | null, result: CppManagementSearchGetStatsResponse) => void): void;
|
2014
2017
|
managementUserDrop(options: CppManagementUserDropRequest, callback: (err: CppError | null, result: CppManagementUserDropResponse) => void): void;
|
2015
2018
|
managementAnalyticsDataverseCreate(options: CppManagementAnalyticsDataverseCreateRequest, callback: (err: CppError | null, result: CppManagementAnalyticsDataverseCreateResponse) => void): void;
|
2016
2019
|
managementSearchIndexControlQuery(options: CppManagementSearchIndexControlQueryRequest, callback: (err: CppError | null, result: CppManagementSearchIndexControlQueryResponse) => void): void;
|
@@ -2280,6 +2283,7 @@ export interface CppBindingAutogen {
|
|
2280
2283
|
xattr_unknown_virtual_attribute: CppErrcKeyValue;
|
2281
2284
|
xattr_cannot_modify_virtual_attribute: CppErrcKeyValue;
|
2282
2285
|
xattr_no_access: CppErrcKeyValue;
|
2286
|
+
document_not_locked: CppErrcKeyValue;
|
2283
2287
|
cannot_revive_living_document: CppErrcKeyValue;
|
2284
2288
|
mutation_token_outdated: CppErrcKeyValue;
|
2285
2289
|
range_scan_completed: CppErrcKeyValue;
|
@@ -2362,6 +2366,7 @@ export interface CppBindingAutogen {
|
|
2362
2366
|
dcp_stream_not_found: CppKeyValueStatusCode;
|
2363
2367
|
opaque_no_match: CppKeyValueStatusCode;
|
2364
2368
|
locked: CppKeyValueStatusCode;
|
2369
|
+
not_locked: CppKeyValueStatusCode;
|
2365
2370
|
auth_stale: CppKeyValueStatusCode;
|
2366
2371
|
auth_error: CppKeyValueStatusCode;
|
2367
2372
|
auth_continue: CppKeyValueStatusCode;
|
@@ -2461,6 +2466,10 @@ export interface CppBindingAutogen {
|
|
2461
2466
|
two: CppReplicateTo;
|
2462
2467
|
three: CppReplicateTo;
|
2463
2468
|
};
|
2469
|
+
vector_query_combination: {
|
2470
|
+
combination_and: CppVectorQueryCombination;
|
2471
|
+
combination_or: CppVectorQueryCombination;
|
2472
|
+
};
|
2464
2473
|
}
|
2465
2474
|
export type CppErrc = CppErrcCommon | CppErrcKeyValue | CppErrcQuery | CppErrcAnalytics | CppErrcSearch | CppErrcView | CppErrcManagement | CppErrcFieldLevelEncryption | CppErrcNetwork;
|
2466
2475
|
export declare enum CppTxnFailureType {
|
@@ -2641,8 +2650,7 @@ export interface CppConnection extends CppConnectionAutogen {
|
|
2641
2650
|
}
|
2642
2651
|
export interface CppTransactionsConfig {
|
2643
2652
|
durability_level?: CppDurabilityLevel;
|
2644
|
-
|
2645
|
-
expiration_time?: CppMilliseconds;
|
2653
|
+
timeout?: CppMilliseconds;
|
2646
2654
|
query_scan_consistency?: CppQueryScanConsistency;
|
2647
2655
|
cleanup_window?: CppMilliseconds;
|
2648
2656
|
cleanup_lost_attempts?: boolean;
|
@@ -2650,8 +2658,7 @@ export interface CppTransactionsConfig {
|
|
2650
2658
|
}
|
2651
2659
|
export interface CppTransactionOptions {
|
2652
2660
|
durability_level?: CppDurabilityLevel;
|
2653
|
-
|
2654
|
-
expiration_time?: CppMilliseconds;
|
2661
|
+
timeout?: CppMilliseconds;
|
2655
2662
|
query_scan_consistency?: CppQueryScanConsistency;
|
2656
2663
|
}
|
2657
2664
|
export interface CppTransactionLinks {
|
package/dist/binding.js
CHANGED
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
4
|
};
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
-
exports.CppTxnExternalException = exports.CppTxnFailureType = exports.CppReplicateTo = exports.CppPersistTo = exports.CppStoreSemantics = exports.CppImplSubdocOpcode = exports.CppKeyValueStatusCode = exports.CppErrcNetwork = exports.CppErrcFieldLevelEncryption = exports.CppErrcManagement = exports.CppErrcView = exports.CppErrcSearch = exports.CppErrcAnalytics = exports.CppErrcQuery = exports.CppErrcKeyValue = exports.CppErrcCommon = exports.CppDurabilityLevel = exports.CppAnalyticsResponseAnalyticsStatus = exports.CppViewSortOrder = exports.CppViewScanConsistency = exports.CppViewOnError = exports.CppServiceType = exports.CppSearchScanConsistency = exports.CppSearchHighlightStyle = exports.CppQueryScanConsistency = exports.CppQueryProfile = exports.CppDiagPingState = exports.CppDiagEndpointState = exports.CppDiagClusterState = exports.CppDesignDocumentNamespace = exports.CppAnalyticsScanConsistency = exports.CppProtocolSubdocOpcode = exports.CppRetryReason = exports.CppManagementRbacAuthDomain = exports.CppManagementEventingFunctionProcessingStatus = exports.CppManagementEventingFunctionDeploymentStatus = exports.CppManagementEventingFunctionStatus = exports.CppManagementEventingFunctionBucketAccess = exports.CppManagementEventingFunctionLogLevel = exports.CppManagementEventingFunctionLanguageCompatibility = exports.CppManagementEventingFunctionDcpBoundary = exports.CppManagementClusterBucketStorageBackend = exports.CppManagementClusterBucketConflictResolution = exports.CppManagementClusterBucketEvictionPolicy = exports.CppManagementClusterBucketCompression = exports.CppManagementClusterBucketType = exports.CppManagementAnalyticsCouchbaseLinkEncryptionLevel = exports.zeroCas = void 0;
|
6
|
+
exports.CppTxnExternalException = exports.CppTxnFailureType = exports.CppVectorQueryCombination = exports.CppReplicateTo = exports.CppPersistTo = exports.CppStoreSemantics = exports.CppImplSubdocOpcode = exports.CppKeyValueStatusCode = exports.CppErrcNetwork = exports.CppErrcFieldLevelEncryption = exports.CppErrcManagement = exports.CppErrcView = exports.CppErrcSearch = exports.CppErrcAnalytics = exports.CppErrcQuery = exports.CppErrcKeyValue = exports.CppErrcCommon = exports.CppDurabilityLevel = exports.CppAnalyticsResponseAnalyticsStatus = exports.CppViewSortOrder = exports.CppViewScanConsistency = exports.CppViewOnError = exports.CppServiceType = exports.CppSearchScanConsistency = exports.CppSearchHighlightStyle = exports.CppQueryScanConsistency = exports.CppQueryProfile = exports.CppDiagPingState = exports.CppDiagEndpointState = exports.CppDiagClusterState = exports.CppDesignDocumentNamespace = exports.CppAnalyticsScanConsistency = exports.CppProtocolSubdocOpcode = exports.CppRetryReason = exports.CppManagementRbacAuthDomain = exports.CppManagementEventingFunctionProcessingStatus = exports.CppManagementEventingFunctionDeploymentStatus = exports.CppManagementEventingFunctionStatus = exports.CppManagementEventingFunctionBucketAccess = exports.CppManagementEventingFunctionLogLevel = exports.CppManagementEventingFunctionLanguageCompatibility = exports.CppManagementEventingFunctionDcpBoundary = exports.CppManagementClusterBucketStorageBackend = exports.CppManagementClusterBucketConflictResolution = exports.CppManagementClusterBucketEvictionPolicy = exports.CppManagementClusterBucketCompression = exports.CppManagementClusterBucketType = exports.CppManagementAnalyticsCouchbaseLinkEncryptionLevel = exports.zeroCas = void 0;
|
7
7
|
/*
|
8
8
|
eslint
|
9
9
|
jsdoc/require-jsdoc: off,
|
@@ -147,6 +147,9 @@ var CppPersistTo;
|
|
147
147
|
var CppReplicateTo;
|
148
148
|
(function (CppReplicateTo) {
|
149
149
|
})(CppReplicateTo || (exports.CppReplicateTo = CppReplicateTo = {}));
|
150
|
+
var CppVectorQueryCombination;
|
151
|
+
(function (CppVectorQueryCombination) {
|
152
|
+
})(CppVectorQueryCombination || (exports.CppVectorQueryCombination = CppVectorQueryCombination = {}));
|
150
153
|
var CppTxnFailureType;
|
151
154
|
(function (CppTxnFailureType) {
|
152
155
|
})(CppTxnFailureType || (exports.CppTxnFailureType = CppTxnFailureType = {}));
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AnalyticsScanConsistency, AnalyticsStatus } from './analyticstypes';
|
2
|
-
import { CppAnalyticsResponseAnalyticsStatus, CppAnalyticsScanConsistency, CppDiagEndpointState, CppDiagPingState, CppDurabilityLevel, CppError, CppManagementClusterBucketCompression, CppManagementClusterBucketConflictResolution, CppManagementClusterBucketEvictionPolicy, CppManagementClusterBucketStorageBackend, CppManagementClusterBucketType, CppMutationState, CppPersistTo, CppPrefixScan, CppQueryProfile, CppQueryScanConsistency, CppRangeScan, CppReplicateTo, CppSamplingScan, CppSearchHighlightStyle, CppSearchScanConsistency, CppServiceType, CppStoreSemantics, CppTxnExternalException, CppTxnOpException, CppViewScanConsistency, CppViewSortOrder } from './binding';
|
2
|
+
import { CppAnalyticsResponseAnalyticsStatus, CppAnalyticsScanConsistency, CppDiagEndpointState, CppDiagPingState, CppDurabilityLevel, CppError, CppManagementClusterBucketCompression, CppManagementClusterBucketConflictResolution, CppManagementClusterBucketEvictionPolicy, CppManagementClusterBucketStorageBackend, CppManagementClusterBucketType, CppMutationState, CppPersistTo, CppPrefixScan, CppQueryProfile, CppQueryScanConsistency, CppRangeScan, CppReplicateTo, CppSamplingScan, CppSearchHighlightStyle, CppSearchScanConsistency, CppServiceType, CppStoreSemantics, CppTxnExternalException, CppTxnOpException, CppVectorQueryCombination, CppViewScanConsistency, CppViewSortOrder } from './binding';
|
3
3
|
import { BucketType, CompressionMode, ConflictResolutionType, EvictionPolicy, StorageBackend } from './bucketmanager';
|
4
4
|
import { EndpointState, PingState } from './diagnosticstypes';
|
5
5
|
import { ErrorContext } from './errorcontexts';
|
@@ -8,6 +8,7 @@ import { MutationState } from './mutationstate';
|
|
8
8
|
import { QueryProfileMode, QueryScanConsistency } from './querytypes';
|
9
9
|
import { PrefixScan, RangeScan, SamplingScan } from './rangeScan';
|
10
10
|
import { HighlightStyle, SearchScanConsistency } from './searchtypes';
|
11
|
+
import { VectorQueryCombination } from './vectorsearch';
|
11
12
|
import { ViewOrdering, ViewScanConsistency } from './viewtypes';
|
12
13
|
/**
|
13
14
|
* @internal
|
@@ -141,3 +142,7 @@ export declare function bucketConflictResolutionTypeToCpp(type: ConflictResoluti
|
|
141
142
|
* @internal
|
142
143
|
*/
|
143
144
|
export declare function bucketConflictResolutionTypeFromCpp(type: CppManagementClusterBucketConflictResolution): ConflictResolutionType | undefined;
|
145
|
+
/**
|
146
|
+
* @internal
|
147
|
+
*/
|
148
|
+
export declare function vectorQueryCombinationToCpp(combination: VectorQueryCombination | undefined): CppVectorQueryCombination;
|
package/dist/bindingutilities.js
CHANGED
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
27
|
};
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
|
-
exports.bucketConflictResolutionTypeFromCpp = exports.bucketConflictResolutionTypeToCpp = exports.bucketStorageBackendFromCpp = exports.bucketStorageBackendToCpp = exports.bucketEvictionPolicyFromCpp = exports.bucketEvictionPolicyToCpp = exports.bucketCompressionModeFromCpp = exports.bucketCompressionModeToCpp = exports.bucketTypeFromCpp = exports.bucketTypeToCpp = exports.scanTypeToCpp = exports.errorFromCpp = exports.contextFromCpp = exports.pingStateFromCpp = exports.txnOpExeptionFromCpp = exports.txnExternalExceptionStringFromCpp = exports.endpointStateFromCpp = exports.serviceTypeFromCpp = exports.serviceTypeToCpp = exports.mutationStateToCpp = exports.searchHighlightStyleToCpp = exports.searchScanConsistencyToCpp = exports.analyticsStatusFromCpp = exports.analyticsScanConsistencyToCpp = exports.queryProfileToCpp = exports.queryScanConsistencyToCpp = exports.viewOrderingToCpp = exports.viewScanConsistencyToCpp = exports.storeSemanticToCpp = exports.replicateToToCpp = exports.persistToToCpp = exports.durabilityFromCpp = exports.durabilityToCpp = void 0;
|
29
|
+
exports.vectorQueryCombinationToCpp = exports.bucketConflictResolutionTypeFromCpp = exports.bucketConflictResolutionTypeToCpp = exports.bucketStorageBackendFromCpp = exports.bucketStorageBackendToCpp = exports.bucketEvictionPolicyFromCpp = exports.bucketEvictionPolicyToCpp = exports.bucketCompressionModeFromCpp = exports.bucketCompressionModeToCpp = exports.bucketTypeFromCpp = exports.bucketTypeToCpp = exports.scanTypeToCpp = exports.errorFromCpp = exports.contextFromCpp = exports.pingStateFromCpp = exports.txnOpExeptionFromCpp = exports.txnExternalExceptionStringFromCpp = exports.endpointStateFromCpp = exports.serviceTypeFromCpp = exports.serviceTypeToCpp = exports.mutationStateToCpp = exports.searchHighlightStyleToCpp = exports.searchScanConsistencyToCpp = exports.analyticsStatusFromCpp = exports.analyticsScanConsistencyToCpp = exports.queryProfileToCpp = exports.queryScanConsistencyToCpp = exports.viewOrderingToCpp = exports.viewScanConsistencyToCpp = exports.storeSemanticToCpp = exports.replicateToToCpp = exports.persistToToCpp = exports.durabilityFromCpp = exports.durabilityToCpp = void 0;
|
30
30
|
const analyticstypes_1 = require("./analyticstypes");
|
31
31
|
const binding_1 = __importDefault(require("./binding"));
|
32
32
|
const bucketmanager_1 = require("./bucketmanager");
|
@@ -38,6 +38,7 @@ const querytypes_1 = require("./querytypes");
|
|
38
38
|
const rangeScan_1 = require("./rangeScan");
|
39
39
|
const searchtypes_1 = require("./searchtypes");
|
40
40
|
const utilities_1 = require("./utilities");
|
41
|
+
const vectorsearch_1 = require("./vectorsearch");
|
41
42
|
const viewtypes_1 = require("./viewtypes");
|
42
43
|
/**
|
43
44
|
* @internal
|
@@ -674,6 +675,8 @@ function errorFromCpp(err) {
|
|
674
675
|
return new errs.DocumentUnretrievableError(baseErr, context);
|
675
676
|
case binding_1.default.errc_key_value.document_locked:
|
676
677
|
return new errs.DocumentLockedError(baseErr, context);
|
678
|
+
case binding_1.default.errc_key_value.document_not_locked:
|
679
|
+
return new errs.DocumentNotLockedError(baseErr, context);
|
677
680
|
case binding_1.default.errc_key_value.value_too_large:
|
678
681
|
return new errs.ValueTooLargeError(baseErr, context);
|
679
682
|
case binding_1.default.errc_key_value.document_exists:
|
@@ -1009,3 +1012,16 @@ function bucketConflictResolutionTypeFromCpp(type) {
|
|
1009
1012
|
throw new errs.InvalidArgumentError();
|
1010
1013
|
}
|
1011
1014
|
exports.bucketConflictResolutionTypeFromCpp = bucketConflictResolutionTypeFromCpp;
|
1015
|
+
/**
|
1016
|
+
* @internal
|
1017
|
+
*/
|
1018
|
+
function vectorQueryCombinationToCpp(combination) {
|
1019
|
+
if (combination === vectorsearch_1.VectorQueryCombination.AND) {
|
1020
|
+
return binding_1.default.vector_query_combination.combination_and;
|
1021
|
+
}
|
1022
|
+
else if (combination === vectorsearch_1.VectorQueryCombination.OR) {
|
1023
|
+
return binding_1.default.vector_query_combination.combination_or;
|
1024
|
+
}
|
1025
|
+
throw new errs.InvalidArgumentError(new Error('Unrecognized VectorQueryCombination.'));
|
1026
|
+
}
|
1027
|
+
exports.vectorQueryCombinationToCpp = vectorQueryCombinationToCpp;
|
package/dist/cluster.d.ts
CHANGED
@@ -10,7 +10,7 @@ import { QueryIndexManager } from './queryindexmanager';
|
|
10
10
|
import { QueryMetaData, QueryOptions, QueryResult } from './querytypes';
|
11
11
|
import { SearchIndexManager } from './searchindexmanager';
|
12
12
|
import { SearchQuery } from './searchquery';
|
13
|
-
import { SearchMetaData, SearchQueryOptions, SearchResult, SearchRow } from './searchtypes';
|
13
|
+
import { SearchMetaData, SearchQueryOptions, SearchRequest, SearchResult, SearchRow } from './searchtypes';
|
14
14
|
import { StreamableRowPromise } from './streamablepromises';
|
15
15
|
import { Transactions, TransactionsConfig } from './transactions';
|
16
16
|
import { Transcoder } from './transcoders';
|
@@ -300,6 +300,17 @@ export declare class Cluster {
|
|
300
300
|
* @param callback A node-style callback to be invoked after execution.
|
301
301
|
*/
|
302
302
|
searchQuery(indexName: string, query: SearchQuery, options?: SearchQueryOptions, callback?: NodeCallback<SearchResult>): StreamableRowPromise<SearchResult, SearchRow, SearchMetaData>;
|
303
|
+
/**
|
304
|
+
* Executes a search query against the cluster.
|
305
|
+
*
|
306
|
+
* Volatile: This API is subject to change at any time.
|
307
|
+
*
|
308
|
+
* @param indexName The name of the index to query.
|
309
|
+
* @param request The SearchRequest describing the search to execute.
|
310
|
+
* @param options Optional parameters for this operation.
|
311
|
+
* @param callback A node-style callback to be invoked after execution.
|
312
|
+
*/
|
313
|
+
search(indexName: string, request: SearchRequest, options?: SearchQueryOptions, callback?: NodeCallback<SearchResult>): StreamableRowPromise<SearchResult, SearchRow, SearchMetaData>;
|
303
314
|
/**
|
304
315
|
* Returns a diagnostics report about the currently active connections with the
|
305
316
|
* cluster. Includes information about remote and local addresses, last activity,
|
package/dist/cluster.js
CHANGED
@@ -317,6 +317,28 @@ class Cluster {
|
|
317
317
|
const options_ = options;
|
318
318
|
return utilities_1.PromiseHelper.wrapAsync(() => exec.query(indexName, query, options_), callback);
|
319
319
|
}
|
320
|
+
/**
|
321
|
+
* Executes a search query against the cluster.
|
322
|
+
*
|
323
|
+
* Volatile: This API is subject to change at any time.
|
324
|
+
*
|
325
|
+
* @param indexName The name of the index to query.
|
326
|
+
* @param request The SearchRequest describing the search to execute.
|
327
|
+
* @param options Optional parameters for this operation.
|
328
|
+
* @param callback A node-style callback to be invoked after execution.
|
329
|
+
*/
|
330
|
+
search(indexName, request, options, callback) {
|
331
|
+
if (options instanceof Function) {
|
332
|
+
callback = arguments[2];
|
333
|
+
options = undefined;
|
334
|
+
}
|
335
|
+
if (!options) {
|
336
|
+
options = {};
|
337
|
+
}
|
338
|
+
const exec = new searchexecutor_1.SearchExecutor(this);
|
339
|
+
const options_ = options;
|
340
|
+
return utilities_1.PromiseHelper.wrapAsync(() => exec.query(indexName, request, options_), callback);
|
341
|
+
}
|
320
342
|
/**
|
321
343
|
* Returns a diagnostics report about the currently active connections with the
|
322
344
|
* cluster. Includes information about remote and local addresses, last activity,
|
package/dist/collection.js
CHANGED
@@ -1028,11 +1028,11 @@ class Collection {
|
|
1028
1028
|
value,
|
1029
1029
|
}));
|
1030
1030
|
}
|
1031
|
-
emitter.emit('replica', new crudoptypes_1.LookupInReplicaResult(
|
1031
|
+
emitter.emit('replica', new crudoptypes_1.LookupInReplicaResult({
|
1032
1032
|
content: content,
|
1033
1033
|
cas: replica.cas,
|
1034
|
-
isReplica: replica.is_replica
|
1035
|
-
}))
|
1034
|
+
isReplica: replica.is_replica,
|
1035
|
+
}));
|
1036
1036
|
});
|
1037
1037
|
emitter.emit('end');
|
1038
1038
|
return;
|
package/dist/couchbase.d.ts
CHANGED
@@ -70,6 +70,7 @@ export * from './streamablepromises';
|
|
70
70
|
export * from './transactions';
|
71
71
|
export * from './transcoders';
|
72
72
|
export * from './usermanager';
|
73
|
+
export * from './vectorsearch';
|
73
74
|
export * from './viewexecutor';
|
74
75
|
export * from './viewindexmanager';
|
75
76
|
export * from './viewtypes';
|
package/dist/couchbase.js
CHANGED
@@ -99,6 +99,7 @@ __exportStar(require("./streamablepromises"), exports);
|
|
99
99
|
__exportStar(require("./transactions"), exports);
|
100
100
|
__exportStar(require("./transcoders"), exports);
|
101
101
|
__exportStar(require("./usermanager"), exports);
|
102
|
+
__exportStar(require("./vectorsearch"), exports);
|
102
103
|
__exportStar(require("./viewexecutor"), exports);
|
103
104
|
__exportStar(require("./viewindexmanager"), exports);
|
104
105
|
__exportStar(require("./viewtypes"), exports);
|
package/dist/errors.d.ts
CHANGED
@@ -285,6 +285,15 @@ export declare class DocumentUnretrievableError extends CouchbaseError {
|
|
285
285
|
export declare class DocumentLockedError extends CouchbaseError {
|
286
286
|
constructor(cause?: Error, context?: ErrorContext);
|
287
287
|
}
|
288
|
+
/**
|
289
|
+
* Indicates that the referenced document is not locked. Generally raised when an unlock
|
290
|
+
* operation is performed.
|
291
|
+
*
|
292
|
+
* @category Error Handling
|
293
|
+
*/
|
294
|
+
export declare class DocumentNotLockedError extends CouchbaseError {
|
295
|
+
constructor(cause?: Error, context?: ErrorContext);
|
296
|
+
}
|
288
297
|
/**
|
289
298
|
* Indicates that a value could not be stored as it was too large.
|
290
299
|
*
|
package/dist/errors.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
4
|
-
exports.TransactionCommitAmbiguousError = exports.TransactionExpiredError = exports.TransactionFailedError = exports.TransactionOperationFailedError = exports.EventingFunctionPausedError = exports.EventingFunctionDeployedError = exports.EventingFunctionNotBootstrappedError = exports.EventingFunctionIdenticalKeyspaceError = exports.EventingFunctionCompilationFailureError = exports.EventingFunctionNotDeployedError = exports.EventingFunctionNotFoundError = exports.BucketNotFlushableError = exports.UserExistsError = exports.BucketExistsError = exports.GroupNotFoundError = exports.UserNotFoundError = exports.ScopeExistsError = exports.CollectionExistsError = exports.DesignDocumentNotFoundError = exports.ViewNotFoundError = exports.LinkExistsError = exports.LinkNotFoundError = exports.DataverseExistsError = exports.DatasetExistsError = exports.DataverseNotFoundError = exports.DatasetNotFoundError = exports.JobQueueFullError = exports.CompilationFailureError = exports.IndexNotReadyError = exports.DmlFailureError = exports.PreparedStatementFailureError = exports.IndexFailureError = exports.PlanningFailureError = exports.PathExistsError = exports.DeltaInvalidError = void 0;
|
3
|
+
exports.DocumentNotJsonError = exports.ValueInvalidError = exports.ValueTooDeepError = exports.PathTooDeepError = exports.PathTooBigError = exports.PathInvalidError = exports.PathMismatchError = exports.PathNotFoundError = exports.MutationLostError = exports.DurableWriteReCommitInProgressError = exports.DurableWriteInProgressError = exports.DurabilityAmbiguousError = exports.DurabilityImpossibleError = exports.DurabilityLevelNotAvailableError = exports.ValueNotJsonError = exports.DocumentExistsError = exports.ValueTooLargeError = exports.DocumentNotLockedError = exports.DocumentLockedError = exports.DocumentUnretrievableError = exports.DocumentNotFoundError = exports.IndexExistsError = exports.QuotaLimitedError = exports.RateLimitedError = exports.IndexNotFoundError = exports.ScopeNotFoundError = exports.FeatureNotAvailableError = exports.UnambiguousTimeoutError = exports.AmbiguousTimeoutError = exports.UnsupportedOperationError = exports.DecodingFailureError = exports.EncodingFailureError = exports.CollectionNotFoundError = exports.BucketNotFoundError = exports.CasMismatchError = exports.ParsingFailureError = exports.TemporaryFailureError = exports.AuthenticationFailureError = exports.InternalServerFailureError = exports.ServiceNotAvailableError = exports.InvalidArgumentError = exports.RequestCanceledError = exports.TimeoutError = exports.InvalidDurabilityReplicateToLevel = exports.InvalidDurabilityPersistToLevel = exports.InvalidDurabilityLevel = exports.NeedOpenBucketError = exports.ClusterClosedError = exports.ConnectionClosedError = exports.CouchbaseError = void 0;
|
4
|
+
exports.TransactionCommitAmbiguousError = exports.TransactionExpiredError = exports.TransactionFailedError = exports.TransactionOperationFailedError = exports.EventingFunctionPausedError = exports.EventingFunctionDeployedError = exports.EventingFunctionNotBootstrappedError = exports.EventingFunctionIdenticalKeyspaceError = exports.EventingFunctionCompilationFailureError = exports.EventingFunctionNotDeployedError = exports.EventingFunctionNotFoundError = exports.BucketNotFlushableError = exports.UserExistsError = exports.BucketExistsError = exports.GroupNotFoundError = exports.UserNotFoundError = exports.ScopeExistsError = exports.CollectionExistsError = exports.DesignDocumentNotFoundError = exports.ViewNotFoundError = exports.LinkExistsError = exports.LinkNotFoundError = exports.DataverseExistsError = exports.DatasetExistsError = exports.DataverseNotFoundError = exports.DatasetNotFoundError = exports.JobQueueFullError = exports.CompilationFailureError = exports.IndexNotReadyError = exports.DmlFailureError = exports.PreparedStatementFailureError = exports.IndexFailureError = exports.PlanningFailureError = exports.PathExistsError = exports.DeltaInvalidError = exports.NumberTooBigError = void 0;
|
5
5
|
require("./errorcontexts");
|
6
6
|
/**
|
7
7
|
* A generic base error that all errors inherit. Exposes the cause and
|
@@ -381,6 +381,18 @@ class DocumentLockedError extends CouchbaseError {
|
|
381
381
|
}
|
382
382
|
}
|
383
383
|
exports.DocumentLockedError = DocumentLockedError;
|
384
|
+
/**
|
385
|
+
* Indicates that the referenced document is not locked. Generally raised when an unlock
|
386
|
+
* operation is performed.
|
387
|
+
*
|
388
|
+
* @category Error Handling
|
389
|
+
*/
|
390
|
+
class DocumentNotLockedError extends CouchbaseError {
|
391
|
+
constructor(cause, context) {
|
392
|
+
super('document not locked', cause, context);
|
393
|
+
}
|
394
|
+
}
|
395
|
+
exports.DocumentNotLockedError = DocumentNotLockedError;
|
384
396
|
/**
|
385
397
|
* Indicates that a value could not be stored as it was too large.
|
386
398
|
*
|
package/dist/searchexecutor.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Cluster } from './cluster';
|
2
2
|
import { SearchQuery } from './searchquery';
|
3
|
-
import { SearchMetaData, SearchQueryOptions, SearchResult, SearchRow } from './searchtypes';
|
3
|
+
import { SearchMetaData, SearchQueryOptions, SearchRequest, SearchResult, SearchRow } from './searchtypes';
|
4
4
|
import { StreamableRowPromise } from './streamablepromises';
|
5
5
|
/**
|
6
6
|
* @internal
|
@@ -14,5 +14,5 @@ export declare class SearchExecutor {
|
|
14
14
|
/**
|
15
15
|
* @internal
|
16
16
|
*/
|
17
|
-
query(indexName: string, query: SearchQuery, options: SearchQueryOptions): StreamableRowPromise<SearchResult, SearchRow, SearchMetaData>;
|
17
|
+
query(indexName: string, query: SearchQuery | SearchRequest, options: SearchQueryOptions): StreamableRowPromise<SearchResult, SearchRow, SearchMetaData>;
|
18
18
|
}
|