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
@@ -1,29 +1,28 @@
|
|
1
|
-
cmake_minimum_required(VERSION 3.
|
2
|
-
# node.js uses cmake 3.17
|
1
|
+
cmake_minimum_required(VERSION 3.19)
|
3
2
|
message(STATUS "CMake version ${CMAKE_VERSION}")
|
4
3
|
|
5
4
|
set(couchbase_cxx_client_BUILD_NUMBER 0)
|
6
|
-
if
|
7
|
-
|
8
|
-
endif
|
9
|
-
|
10
|
-
if
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
endif
|
5
|
+
if(DEFINED ENV{BUILD_NUMBER})
|
6
|
+
set(couchbase_cxx_client_BUILD_NUMBER $ENV{BUILD_NUMBER})
|
7
|
+
endif()
|
8
|
+
|
9
|
+
if(NOT DEFINED COUCHBASE_CXX_CLIENT_MASTER_PROJECT)
|
10
|
+
if(CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_SOURCE_DIR)
|
11
|
+
set(COUCHBASE_CXX_CLIENT_MASTER_PROJECT ON)
|
12
|
+
else()
|
13
|
+
set(COUCHBASE_CXX_CLIENT_MASTER_PROJECT OFF)
|
14
|
+
endif()
|
15
|
+
endif()
|
17
16
|
|
18
17
|
project(
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
couchbase_cxx_client
|
19
|
+
VERSION "1.0.0.${couchbase_cxx_client_BUILD_NUMBER}"
|
20
|
+
LANGUAGES CXX C)
|
22
21
|
message(STATUS "Couchbase C++ client ${couchbase_cxx_client_VERSION}, master: ${COUCHBASE_CXX_CLIENT_MASTER_PROJECT}")
|
23
22
|
message(STATUS "System: ${CMAKE_SYSTEM_NAME}, ${CMAKE_SYSTEM_VERSION}, ${CMAKE_SYSTEM_PROCESSOR}")
|
24
|
-
if
|
25
|
-
|
26
|
-
endif
|
23
|
+
if(WIN32)
|
24
|
+
message(STATUS "Windows SDK: ${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}")
|
25
|
+
endif()
|
27
26
|
|
28
27
|
include(cmake/PreventInSourceBuilds.cmake)
|
29
28
|
include(cmake/StandardProjectSettings.cmake)
|
@@ -52,24 +51,24 @@ include(cmake/StaticAnalyzers.cmake)
|
|
52
51
|
include(cmake/Backtrace.cmake)
|
53
52
|
enable_sanitizers(project_options)
|
54
53
|
|
55
|
-
if
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
endif
|
54
|
+
if(COUCHBASE_CXX_CLIENT_MASTER_PROJECT)
|
55
|
+
set_project_warnings(project_warnings)
|
56
|
+
if(WIN32)
|
57
|
+
add_definitions(-D_WIN32_WINNT=0x0601)
|
58
|
+
endif()
|
59
|
+
endif()
|
61
60
|
|
62
61
|
find_package(Threads REQUIRED)
|
63
62
|
|
64
63
|
include(cmake/ThirdPartyDependencies.cmake)
|
65
64
|
|
66
65
|
option(COUCHBASE_CXX_CLIENT_STATIC_STDLIB "Statically link C++ standard library" FALSE)
|
67
|
-
if
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
endif
|
66
|
+
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
|
67
|
+
if(COUCHBASE_CXX_CLIENT_STATIC_STDLIB)
|
68
|
+
target_compile_options(project_options INTERFACE -static-libgcc -static-libstdc++)
|
69
|
+
target_link_libraries(project_options INTERFACE -static-libgcc -static-libstdc++)
|
70
|
+
endif()
|
71
|
+
endif()
|
73
72
|
|
74
73
|
include(cmake/OpenSSL.cmake)
|
75
74
|
|
@@ -84,371 +83,349 @@ add_subdirectory(core/tracing)
|
|
84
83
|
add_subdirectory(core/metrics)
|
85
84
|
|
86
85
|
set(couchbase_cxx_client_FILES
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
410
|
-
core/transactions/exceptions.cxx
|
411
|
-
core/transactions/result.cxx
|
412
|
-
core/transactions/staged_mutation.cxx
|
413
|
-
core/transactions/transaction_attempt.cxx
|
414
|
-
core/transactions/transaction_context.cxx
|
415
|
-
core/transactions/transaction_get_result.cxx
|
416
|
-
core/transactions/transaction_links.cxx
|
417
|
-
core/transactions/transaction_options.cxx
|
418
|
-
core/transactions/transactions.cxx
|
419
|
-
core/transactions/transactions_cleanup.cxx
|
420
|
-
core/transactions/transactions_config.cxx
|
421
|
-
core/transactions/uid_generator.cxx
|
422
|
-
core/transactions/utils.cxx)
|
423
|
-
|
424
|
-
if (COUCHBASE_CXX_CLIENT_BUILD_SHARED)
|
425
|
-
add_library(couchbase_cxx_client SHARED ${couchbase_cxx_client_FILES})
|
426
|
-
else ()
|
427
|
-
add_library(couchbase_cxx_client STATIC ${couchbase_cxx_client_FILES})
|
428
|
-
endif ()
|
86
|
+
${CMAKE_CURRENT_BINARY_DIR}/generated/mozilla_ca_bundle.cxx
|
87
|
+
core/agent.cxx
|
88
|
+
core/agent_config.cxx
|
89
|
+
core/agent_group.cxx
|
90
|
+
core/agent_group_config.cxx
|
91
|
+
core/analytics_query_options.cxx
|
92
|
+
core/bucket.cxx
|
93
|
+
core/cluster.cxx
|
94
|
+
core/cluster_agent.cxx
|
95
|
+
core/cluster_agent_config.cxx
|
96
|
+
core/cluster_options.cxx
|
97
|
+
core/collections_component.cxx
|
98
|
+
core/config_profiles.cxx
|
99
|
+
core/core_sdk_shim.cxx
|
100
|
+
core/crud_component.cxx
|
101
|
+
core/dispatcher.cxx
|
102
|
+
core/document_id.cxx
|
103
|
+
core/error_context/key_value.cxx
|
104
|
+
core/free_form_http_request.cxx
|
105
|
+
core/impl/analytics.cxx
|
106
|
+
core/impl/analytics_error_category.cxx
|
107
|
+
core/impl/analytics_index_manager.cxx
|
108
|
+
core/impl/best_effort_retry_strategy.cxx
|
109
|
+
core/impl/binary_collection.cxx
|
110
|
+
core/impl/boolean_field_query.cxx
|
111
|
+
core/impl/boolean_query.cxx
|
112
|
+
core/impl/bucket.cxx
|
113
|
+
core/impl/bucket_manager.cxx
|
114
|
+
core/impl/cluster.cxx
|
115
|
+
core/impl/collection.cxx
|
116
|
+
core/impl/collection_manager.cxx
|
117
|
+
core/impl/common_error_category.cxx
|
118
|
+
core/impl/configuration_profiles_registry.cxx
|
119
|
+
core/impl/conjunction_query.cxx
|
120
|
+
core/impl/date_range.cxx
|
121
|
+
core/impl/date_range_facet.cxx
|
122
|
+
core/impl/date_range_facet_result.cxx
|
123
|
+
core/impl/date_range_query.cxx
|
124
|
+
core/impl/diagnostics.cxx
|
125
|
+
core/impl/disjunction_query.cxx
|
126
|
+
core/impl/dns_srv_tracker.cxx
|
127
|
+
core/impl/doc_id_query.cxx
|
128
|
+
core/impl/expiry.cxx
|
129
|
+
core/impl/fail_fast_retry_strategy.cxx
|
130
|
+
core/impl/field_level_encryption_error_category.cxx
|
131
|
+
core/impl/geo_bounding_box_query.cxx
|
132
|
+
core/impl/geo_distance_query.cxx
|
133
|
+
core/impl/geo_polygon_query.cxx
|
134
|
+
core/impl/get_replica.cxx
|
135
|
+
core/impl/internal_date_range_facet_result.cxx
|
136
|
+
core/impl/internal_manager_error_context.cxx
|
137
|
+
core/impl/internal_numeric_range_facet_result.cxx
|
138
|
+
core/impl/internal_search_error_context.cxx
|
139
|
+
core/impl/internal_search_meta_data.cxx
|
140
|
+
core/impl/internal_search_result.cxx
|
141
|
+
core/impl/internal_search_row.cxx
|
142
|
+
core/impl/internal_search_row_locations.cxx
|
143
|
+
core/impl/internal_term_facet_result.cxx
|
144
|
+
core/impl/key_value_error_category.cxx
|
145
|
+
core/impl/key_value_error_context.cxx
|
146
|
+
core/impl/lookup_in_replica.cxx
|
147
|
+
core/impl/management_error_category.cxx
|
148
|
+
core/impl/manager_error_context.cxx
|
149
|
+
core/impl/match_all_query.cxx
|
150
|
+
core/impl/match_none_query.cxx
|
151
|
+
core/impl/match_phrase_query.cxx
|
152
|
+
core/impl/match_query.cxx
|
153
|
+
core/impl/network_error_category.cxx
|
154
|
+
core/impl/numeric_range.cxx
|
155
|
+
core/impl/numeric_range_facet.cxx
|
156
|
+
core/impl/numeric_range_facet_result.cxx
|
157
|
+
core/impl/numeric_range_query.cxx
|
158
|
+
core/impl/observe_poll.cxx
|
159
|
+
core/impl/observe_seqno.cxx
|
160
|
+
core/impl/phrase_query.cxx
|
161
|
+
core/impl/prefix_query.cxx
|
162
|
+
core/impl/query.cxx
|
163
|
+
core/impl/query_error_category.cxx
|
164
|
+
core/impl/query_error_context.cxx
|
165
|
+
core/impl/query_index_manager.cxx
|
166
|
+
core/impl/query_string_query.cxx
|
167
|
+
core/impl/regexp_query.cxx
|
168
|
+
core/impl/retry_action.cxx
|
169
|
+
core/impl/retry_reason.cxx
|
170
|
+
core/impl/scope.cxx
|
171
|
+
core/impl/search.cxx
|
172
|
+
core/impl/search_error_category.cxx
|
173
|
+
core/impl/search_error_context.cxx
|
174
|
+
core/impl/search_index_manager.cxx
|
175
|
+
core/impl/search_meta_data.cxx
|
176
|
+
core/impl/search_result.cxx
|
177
|
+
core/impl/search_request.cxx
|
178
|
+
core/impl/search_row.cxx
|
179
|
+
core/impl/search_row_location.cxx
|
180
|
+
core/impl/search_row_locations.cxx
|
181
|
+
core/impl/search_sort_field.cxx
|
182
|
+
core/impl/search_sort_geo_distance.cxx
|
183
|
+
core/impl/search_sort_id.cxx
|
184
|
+
core/impl/search_sort_score.cxx
|
185
|
+
core/impl/streaming_json_lexer_error_category.cxx
|
186
|
+
core/impl/subdoc/array_add_unique.cxx
|
187
|
+
core/impl/subdoc/array_append.cxx
|
188
|
+
core/impl/subdoc/array_insert.cxx
|
189
|
+
core/impl/subdoc/array_prepend.cxx
|
190
|
+
core/impl/subdoc/count.cxx
|
191
|
+
core/impl/subdoc/counter.cxx
|
192
|
+
core/impl/subdoc/exists.cxx
|
193
|
+
core/impl/subdoc/get.cxx
|
194
|
+
core/impl/subdoc/insert.cxx
|
195
|
+
core/impl/subdoc/join_values.cxx
|
196
|
+
core/impl/subdoc/lookup_in_macro.cxx
|
197
|
+
core/impl/subdoc/lookup_in_specs.cxx
|
198
|
+
core/impl/subdoc/mutate_in_macro.cxx
|
199
|
+
core/impl/subdoc/mutate_in_specs.cxx
|
200
|
+
core/impl/subdoc/remove.cxx
|
201
|
+
core/impl/subdoc/replace.cxx
|
202
|
+
core/impl/subdoc/upsert.cxx
|
203
|
+
core/impl/term_facet.cxx
|
204
|
+
core/impl/term_facet_result.cxx
|
205
|
+
core/impl/term_query.cxx
|
206
|
+
core/impl/term_range_query.cxx
|
207
|
+
core/impl/transaction_error_category.cxx
|
208
|
+
core/impl/transaction_get_result.cxx
|
209
|
+
core/impl/transaction_op_error_category.cxx
|
210
|
+
core/impl/vector_query.cxx
|
211
|
+
core/impl/vector_search.cxx
|
212
|
+
core/impl/view_error_category.cxx
|
213
|
+
core/impl/wildcard_query.cxx
|
214
|
+
core/io/dns_client.cxx
|
215
|
+
core/io/dns_config.cxx
|
216
|
+
core/io/http_parser.cxx
|
217
|
+
core/io/mcbp_message.cxx
|
218
|
+
core/io/mcbp_parser.cxx
|
219
|
+
core/io/mcbp_session.cxx
|
220
|
+
core/key_value_config.cxx
|
221
|
+
core/management/analytics_link_azure_blob_external.cxx
|
222
|
+
core/management/analytics_link_couchbase_remote.cxx
|
223
|
+
core/management/analytics_link_s3_external.cxx
|
224
|
+
core/mcbp/big_endian.cxx
|
225
|
+
core/mcbp/buffer_writer.cxx
|
226
|
+
core/mcbp/codec.cxx
|
227
|
+
core/mcbp/command_code.cxx
|
228
|
+
core/mcbp/operation_consumer.cxx
|
229
|
+
core/mcbp/operation_queue.cxx
|
230
|
+
core/mcbp/packet.cxx
|
231
|
+
core/mcbp/queue_request.cxx
|
232
|
+
core/mcbp/server_duration.cxx
|
233
|
+
core/n1ql_query_options.cxx
|
234
|
+
core/operations/document_analytics.cxx
|
235
|
+
core/operations/document_append.cxx
|
236
|
+
core/operations/document_decrement.cxx
|
237
|
+
core/operations/document_exists.cxx
|
238
|
+
core/operations/document_get.cxx
|
239
|
+
core/operations/document_get_and_lock.cxx
|
240
|
+
core/operations/document_get_and_touch.cxx
|
241
|
+
core/operations/document_get_projected.cxx
|
242
|
+
core/operations/document_increment.cxx
|
243
|
+
core/operations/document_insert.cxx
|
244
|
+
core/operations/document_lookup_in.cxx
|
245
|
+
core/operations/document_mutate_in.cxx
|
246
|
+
core/operations/document_prepend.cxx
|
247
|
+
core/operations/document_query.cxx
|
248
|
+
core/operations/document_remove.cxx
|
249
|
+
core/operations/document_replace.cxx
|
250
|
+
core/operations/document_search.cxx
|
251
|
+
core/operations/document_touch.cxx
|
252
|
+
core/operations/document_unlock.cxx
|
253
|
+
core/operations/document_upsert.cxx
|
254
|
+
core/operations/document_view.cxx
|
255
|
+
core/operations/http_noop.cxx
|
256
|
+
core/operations/management/analytics_dataset_create.cxx
|
257
|
+
core/operations/management/analytics_dataset_drop.cxx
|
258
|
+
core/operations/management/analytics_dataset_get_all.cxx
|
259
|
+
core/operations/management/analytics_dataverse_create.cxx
|
260
|
+
core/operations/management/analytics_dataverse_drop.cxx
|
261
|
+
core/operations/management/analytics_get_pending_mutations.cxx
|
262
|
+
core/operations/management/analytics_index_create.cxx
|
263
|
+
core/operations/management/analytics_index_drop.cxx
|
264
|
+
core/operations/management/analytics_index_get_all.cxx
|
265
|
+
core/operations/management/analytics_link_connect.cxx
|
266
|
+
core/operations/management/analytics_link_create.cxx
|
267
|
+
core/operations/management/analytics_link_disconnect.cxx
|
268
|
+
core/operations/management/analytics_link_drop.cxx
|
269
|
+
core/operations/management/analytics_link_get_all.cxx
|
270
|
+
core/operations/management/analytics_link_replace.cxx
|
271
|
+
core/operations/management/bucket_create.cxx
|
272
|
+
core/operations/management/bucket_describe.cxx
|
273
|
+
core/operations/management/bucket_drop.cxx
|
274
|
+
core/operations/management/bucket_flush.cxx
|
275
|
+
core/operations/management/bucket_get.cxx
|
276
|
+
core/operations/management/bucket_get_all.cxx
|
277
|
+
core/operations/management/bucket_update.cxx
|
278
|
+
core/operations/management/change_password.cxx
|
279
|
+
core/operations/management/cluster_describe.cxx
|
280
|
+
core/operations/management/cluster_developer_preview_enable.cxx
|
281
|
+
core/operations/management/collection_create.cxx
|
282
|
+
core/operations/management/collection_drop.cxx
|
283
|
+
core/operations/management/collection_update.cxx
|
284
|
+
core/operations/management/collections_manifest_get.cxx
|
285
|
+
core/operations/management/error_utils.cxx
|
286
|
+
core/operations/management/eventing_deploy_function.cxx
|
287
|
+
core/operations/management/eventing_drop_function.cxx
|
288
|
+
core/operations/management/eventing_get_all_functions.cxx
|
289
|
+
core/operations/management/eventing_get_function.cxx
|
290
|
+
core/operations/management/eventing_get_status.cxx
|
291
|
+
core/operations/management/eventing_pause_function.cxx
|
292
|
+
core/operations/management/eventing_resume_function.cxx
|
293
|
+
core/operations/management/eventing_undeploy_function.cxx
|
294
|
+
core/operations/management/eventing_upsert_function.cxx
|
295
|
+
core/operations/management/freeform.cxx
|
296
|
+
core/operations/management/group_drop.cxx
|
297
|
+
core/operations/management/group_get.cxx
|
298
|
+
core/operations/management/group_get_all.cxx
|
299
|
+
core/operations/management/group_upsert.cxx
|
300
|
+
core/operations/management/query_index_build.cxx
|
301
|
+
core/operations/management/query_index_create.cxx
|
302
|
+
core/operations/management/query_index_drop.cxx
|
303
|
+
core/operations/management/query_index_get_all.cxx
|
304
|
+
core/operations/management/query_index_get_all_deferred.cxx
|
305
|
+
core/operations/management/role_get_all.cxx
|
306
|
+
core/operations/management/scope_create.cxx
|
307
|
+
core/operations/management/scope_drop.cxx
|
308
|
+
core/operations/management/scope_get_all.cxx
|
309
|
+
core/operations/management/search_get_stats.cxx
|
310
|
+
core/operations/management/search_index_analyze_document.cxx
|
311
|
+
core/operations/management/search_index_control_ingest.cxx
|
312
|
+
core/operations/management/search_index_control_plan_freeze.cxx
|
313
|
+
core/operations/management/search_index_control_query.cxx
|
314
|
+
core/operations/management/search_index_drop.cxx
|
315
|
+
core/operations/management/search_index_get.cxx
|
316
|
+
core/operations/management/search_index_get_all.cxx
|
317
|
+
core/operations/management/search_index_get_documents_count.cxx
|
318
|
+
core/operations/management/search_index_get_stats.cxx
|
319
|
+
core/operations/management/search_index_upsert.cxx
|
320
|
+
core/operations/management/user_drop.cxx
|
321
|
+
core/operations/management/user_get.cxx
|
322
|
+
core/operations/management/user_get_all.cxx
|
323
|
+
core/operations/management/user_upsert.cxx
|
324
|
+
core/operations/management/view_index_drop.cxx
|
325
|
+
core/operations/management/view_index_get.cxx
|
326
|
+
core/operations/management/view_index_get_all.cxx
|
327
|
+
core/operations/management/view_index_upsert.cxx
|
328
|
+
core/origin.cxx
|
329
|
+
core/protocol/client_request.cxx
|
330
|
+
core/protocol/client_response.cxx
|
331
|
+
core/protocol/cmd_append.cxx
|
332
|
+
core/protocol/cmd_cluster_map_change_notification.cxx
|
333
|
+
core/protocol/cmd_decrement.cxx
|
334
|
+
core/protocol/cmd_get.cxx
|
335
|
+
core/protocol/cmd_get_and_lock.cxx
|
336
|
+
core/protocol/cmd_get_and_touch.cxx
|
337
|
+
core/protocol/cmd_get_cluster_config.cxx
|
338
|
+
core/protocol/cmd_get_collection_id.cxx
|
339
|
+
core/protocol/cmd_get_collections_manifest.cxx
|
340
|
+
core/protocol/cmd_get_error_map.cxx
|
341
|
+
core/protocol/cmd_get_meta.cxx
|
342
|
+
core/protocol/cmd_get_replica.cxx
|
343
|
+
core/protocol/cmd_hello.cxx
|
344
|
+
core/protocol/cmd_increment.cxx
|
345
|
+
core/protocol/cmd_insert.cxx
|
346
|
+
core/protocol/cmd_lookup_in.cxx
|
347
|
+
core/protocol/cmd_lookup_in_replica.cxx
|
348
|
+
core/protocol/cmd_mutate_in.cxx
|
349
|
+
core/protocol/cmd_noop.cxx
|
350
|
+
core/protocol/cmd_observe_seqno.cxx
|
351
|
+
core/protocol/cmd_prepend.cxx
|
352
|
+
core/protocol/cmd_remove.cxx
|
353
|
+
core/protocol/cmd_replace.cxx
|
354
|
+
core/protocol/cmd_sasl_auth.cxx
|
355
|
+
core/protocol/cmd_sasl_list_mechs.cxx
|
356
|
+
core/protocol/cmd_sasl_step.cxx
|
357
|
+
core/protocol/cmd_select_bucket.cxx
|
358
|
+
core/protocol/cmd_touch.cxx
|
359
|
+
core/protocol/cmd_unlock.cxx
|
360
|
+
core/protocol/cmd_upsert.cxx
|
361
|
+
core/protocol/frame_info_utils.cxx
|
362
|
+
core/protocol/status.cxx
|
363
|
+
core/range_scan_options.cxx
|
364
|
+
core/range_scan_orchestrator.cxx
|
365
|
+
core/retry_orchestrator.cxx
|
366
|
+
core/scan_result.cxx
|
367
|
+
core/search_query_options.cxx
|
368
|
+
core/seed_config.cxx
|
369
|
+
core/topology/configuration.cxx
|
370
|
+
core/transactions/active_transaction_record.cxx
|
371
|
+
core/transactions/async_attempt_context.cxx
|
372
|
+
core/transactions/atr_cleanup_entry.cxx
|
373
|
+
core/transactions/atr_ids.cxx
|
374
|
+
core/transactions/attempt_context.cxx
|
375
|
+
core/transactions/attempt_context_impl.cxx
|
376
|
+
core/transactions/attempt_context_testing_hooks.cxx
|
377
|
+
core/transactions/binary.cxx
|
378
|
+
core/transactions/cleanup_testing_hooks.cxx
|
379
|
+
core/transactions/exceptions.cxx
|
380
|
+
core/transactions/internal/doc_record.cxx
|
381
|
+
core/transactions/result.cxx
|
382
|
+
core/transactions/staged_mutation.cxx
|
383
|
+
core/transactions/transaction_attempt.cxx
|
384
|
+
core/transactions/transaction_context.cxx
|
385
|
+
core/transactions/transaction_get_result.cxx
|
386
|
+
core/transactions/transaction_keyspace.cxx
|
387
|
+
core/transactions/transaction_links.cxx
|
388
|
+
core/transactions/transaction_options.cxx
|
389
|
+
core/transactions/transactions.cxx
|
390
|
+
core/transactions/transactions_cleanup.cxx
|
391
|
+
core/transactions/transactions_config.cxx
|
392
|
+
core/transactions/uid_generator.cxx
|
393
|
+
core/transactions/utils.cxx
|
394
|
+
core/utils/binary.cxx
|
395
|
+
core/utils/connection_string.cxx
|
396
|
+
core/utils/duration_parser.cxx
|
397
|
+
core/utils/json.cxx
|
398
|
+
core/utils/json_streaming_lexer.cxx
|
399
|
+
core/utils/mutation_token.cxx
|
400
|
+
core/utils/split_string.cxx
|
401
|
+
core/utils/url_codec.cxx
|
402
|
+
core/view_query_options.cxx)
|
403
|
+
|
404
|
+
if(COUCHBASE_CXX_CLIENT_BUILD_SHARED)
|
405
|
+
add_library(couchbase_cxx_client SHARED ${couchbase_cxx_client_FILES})
|
406
|
+
else()
|
407
|
+
add_library(couchbase_cxx_client STATIC ${couchbase_cxx_client_FILES})
|
408
|
+
endif()
|
429
409
|
set_target_properties(couchbase_cxx_client PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
430
410
|
|
431
411
|
target_include_directories(couchbase_cxx_client PRIVATE ${PROJECT_BINARY_DIR}/generated)
|
432
412
|
target_include_directories(couchbase_cxx_client PUBLIC ${PROJECT_SOURCE_DIR} ${PROJECT_SOURCE_DIR}/private)
|
433
|
-
target_include_directories(
|
434
|
-
|
435
|
-
PUBLIC
|
436
|
-
${PROJECT_SOURCE_DIR}/third_party/cxx_function
|
437
|
-
${PROJECT_SOURCE_DIR}/third_party/expected/include)
|
413
|
+
target_include_directories(couchbase_cxx_client SYSTEM PUBLIC ${PROJECT_SOURCE_DIR}/third_party/cxx_function
|
414
|
+
${PROJECT_SOURCE_DIR}/third_party/expected/include)
|
438
415
|
target_link_libraries(couchbase_cxx_client PRIVATE project_options project_warnings)
|
439
416
|
|
440
417
|
include(cmake/DetectStandardFilesystem.cmake)
|
441
418
|
couchbase_cxx_check_filesystem(
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
if
|
448
|
-
|
449
|
-
else
|
450
|
-
|
451
|
-
endif
|
419
|
+
couchbase_cxx_client
|
420
|
+
"filesystem"
|
421
|
+
"std::filesystem"
|
422
|
+
"stdc++fs;c++fs"
|
423
|
+
STD_FILESYSTEM)
|
424
|
+
if(STD_FILESYSTEM)
|
425
|
+
message(STATUS "Using std::filesystem")
|
426
|
+
else()
|
427
|
+
message(FATAL_ERROR "Couchbase C++ Client requires C++17, including an implementation of std::filesystem.")
|
428
|
+
endif()
|
452
429
|
|
453
430
|
target_link_libraries(
|
454
431
|
couchbase_cxx_client
|
@@ -473,48 +450,48 @@ target_link_libraries(
|
|
473
450
|
jsonsl
|
474
451
|
hdr_histogram_static)
|
475
452
|
|
476
|
-
if
|
477
|
-
|
478
|
-
endif
|
479
|
-
|
480
|
-
if
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
endif
|
487
|
-
|
488
|
-
if
|
489
|
-
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
498
|
-
|
499
|
-
|
453
|
+
if(WIN32)
|
454
|
+
target_link_libraries(couchbase_cxx_client PRIVATE iphlpapi)
|
455
|
+
endif()
|
456
|
+
|
457
|
+
if(NOT COUCHBASE_CXX_CLIENT_POST_LINKED_OPENSSL)
|
458
|
+
if(TARGET PkgConfig::PKG_CONFIG_OPENSSL)
|
459
|
+
target_link_libraries(couchbase_cxx_client PUBLIC PkgConfig::PKG_CONFIG_OPENSSL)
|
460
|
+
else()
|
461
|
+
target_link_libraries(couchbase_cxx_client PUBLIC OpenSSL::SSL OpenSSL::Crypto)
|
462
|
+
endif()
|
463
|
+
endif()
|
464
|
+
|
465
|
+
if(COUCHBASE_CXX_CLIENT_STATIC_BORINGSSL)
|
466
|
+
if(COUCHBASE_CXX_CLIENT_USE_BORINGSSL_PREFIX)
|
467
|
+
target_compile_definitions(couchbase_cxx_client PUBLIC BORINGSSL_PREFIX=${COUCHBASE_CXX_CLIENT_BORINGSSL_PREFIX})
|
468
|
+
endif()
|
469
|
+
if(WIN32 AND NOT CMAKE_MSVC_RUNTIME_LIBRARY)
|
470
|
+
# BoringSSL uses the /MD compile flag, so we need to do the same
|
471
|
+
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>DLL")
|
472
|
+
message(STATUS "CMAKE_MSVC_RUNTIME_LIBRARY=${CMAKE_MSVC_RUNTIME_LIBRARY}")
|
473
|
+
endif()
|
474
|
+
if(MINGW)
|
475
|
+
target_link_libraries(couchbase_cxx_client PUBLIC ws2_32)
|
476
|
+
endif()
|
500
477
|
endif()
|
501
478
|
|
502
479
|
option(COUCHBASE_CXX_CLIENT_BUILD_TESTS "Build test programs" ${COUCHBASE_CXX_CLIENT_MASTER_PROJECT})
|
503
|
-
if
|
504
|
-
|
505
|
-
endif
|
480
|
+
if(COUCHBASE_CXX_CLIENT_BUILD_TESTS)
|
481
|
+
include(cmake/Testing.cmake)
|
482
|
+
endif()
|
506
483
|
|
507
484
|
option(COUCHBASE_CXX_CLIENT_BUILD_DOCS "Build API documentation" ${COUCHBASE_CXX_CLIENT_MASTER_PROJECT})
|
508
|
-
if
|
509
|
-
|
510
|
-
endif
|
485
|
+
if(COUCHBASE_CXX_CLIENT_BUILD_DOCS)
|
486
|
+
include(cmake/Documentation.cmake)
|
487
|
+
endif()
|
511
488
|
|
512
489
|
option(COUCHBASE_CXX_CLIENT_BUILD_EXAMPLES "Build example programs" ${COUCHBASE_CXX_CLIENT_MASTER_PROJECT})
|
513
|
-
if
|
514
|
-
|
515
|
-
endif
|
490
|
+
if(COUCHBASE_CXX_CLIENT_BUILD_EXAMPLES)
|
491
|
+
add_subdirectory(examples)
|
492
|
+
endif()
|
516
493
|
|
517
494
|
option(COUCHBASE_CXX_CLIENT_BUILD_TOOLS "Build tools" ${COUCHBASE_CXX_CLIENT_MASTER_PROJECT})
|
518
|
-
if
|
519
|
-
|
520
|
-
endif
|
495
|
+
if(COUCHBASE_CXX_CLIENT_BUILD_TOOLS)
|
496
|
+
add_subdirectory(tools)
|
497
|
+
endif()
|