couchbase 4.0.0 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- package/deps/couchbase-cxx-client/.gitmodules +1 -1
- package/deps/couchbase-cxx-client/CMakeLists.txt +2 -0
- package/deps/couchbase-cxx-client/couchbase/analytics_scan_consistency.hxx +26 -0
- package/deps/couchbase-cxx-client/couchbase/capella_ca.hxx +43 -0
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol → couchbase-cxx-client/couchbase}/cas.hxx +2 -2
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol → couchbase-cxx-client/couchbase}/cas_fmt.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +30 -0
- package/deps/couchbase-cxx-client/couchbase/cluster_options.hxx +3 -1
- package/deps/couchbase-cxx-client/couchbase/design_document_namespace.hxx +26 -0
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/design_document_fmt.hxx → couchbase-cxx-client/couchbase/design_document_namespace_fmt.hxx} +5 -5
- package/deps/couchbase-cxx-client/couchbase/diagnostics.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/error_context/analytics.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/error_context/http.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/error_context/key_value.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/error_context/query.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/error_context/search.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/error_context/view.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/io/http_context.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/io/http_session.hxx +14 -11
- package/deps/couchbase-cxx-client/couchbase/io/http_session_manager.hxx +53 -37
- package/deps/couchbase-cxx-client/couchbase/io/ip_protocol.hxx +28 -0
- package/deps/couchbase-cxx-client/couchbase/io/mcbp_command.hxx +22 -0
- package/deps/couchbase-cxx-client/couchbase/io/mcbp_session.hxx +27 -10
- package/deps/couchbase-cxx-client/couchbase/io/mcbp_traits.hxx +30 -0
- package/deps/couchbase-cxx-client/couchbase/io/streams.hxx +22 -0
- package/deps/couchbase-cxx-client/couchbase/management/CMakeLists.txt +13 -0
- package/deps/couchbase-cxx-client/couchbase/management/analytics_dataset.hxx +30 -0
- package/deps/couchbase-cxx-client/couchbase/management/analytics_index.hxx +30 -0
- package/deps/couchbase-cxx-client/couchbase/management/analytics_link.hxx +22 -0
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/analytics_link_azure_blob_external.cxx +5 -5
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/analytics_link_azure_blob_external.hxx +3 -3
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/analytics_link_azure_blob_external_json.hxx +4 -4
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/analytics_link_couchbase_remote.cxx +12 -12
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/analytics_link_couchbase_remote.hxx +8 -8
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/analytics_link_couchbase_remote_json.hxx +7 -7
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/analytics_link_s3_external.cxx +5 -5
- package/deps/couchbase-cxx-client/couchbase/{operations/management → management}/analytics_link_s3_external.hxx +3 -3
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/analytics_link_s3_external_json.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/management/bucket_settings.hxx +134 -0
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/bucket_settings_json.hxx +29 -24
- package/deps/couchbase-cxx-client/couchbase/{operations/management → management}/design_document.hxx +5 -8
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/eventing_function.hxx +6 -10
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/eventing_function_json.hxx +29 -32
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/eventing_status.hxx +2 -2
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/eventing_status_json.hxx +15 -15
- package/deps/couchbase-cxx-client/couchbase/management/query_index.hxx +39 -0
- package/deps/couchbase-cxx-client/couchbase/{operations/management → management}/rbac.hxx +3 -2
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/rbac_fmt.hxx +6 -6
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/rbac_json.hxx +15 -15
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations → couchbase-cxx-client/couchbase}/management/search_index.hxx +5 -3
- package/deps/couchbase-cxx-client/couchbase/{operations/management → management}/search_index_json.hxx +4 -4
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol → couchbase-cxx-client/couchbase}/mutation_token.hxx +3 -0
- package/deps/couchbase-cxx-client/couchbase/{protocol/mutation_token_fmt.hxx → mutation_token_fmt.hxx} +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/document_analytics.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_analytics.hxx +2 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_append.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_append.hxx +11 -4
- package/deps/couchbase-cxx-client/couchbase/operations/document_decrement.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_decrement.hxx +11 -4
- package/deps/couchbase-cxx-client/couchbase/operations/document_exists.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_get.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/document_get_and_lock.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/document_get_and_touch.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/document_get_projected.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/document_increment.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_increment.hxx +9 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_insert.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_insert.hxx +9 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_lookup_in.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/document_mutate_in.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_mutate_in.hxx +12 -5
- package/deps/couchbase-cxx-client/couchbase/operations/document_prepend.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_prepend.hxx +9 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_query.cxx +6 -6
- package/deps/couchbase-cxx-client/couchbase/operations/document_query.hxx +5 -10
- package/deps/couchbase-cxx-client/couchbase/operations/document_remove.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_remove.hxx +10 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_replace.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_replace.hxx +10 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_search.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_search.hxx +5 -5
- package/deps/couchbase-cxx-client/couchbase/operations/document_touch.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_unlock.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_upsert.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_upsert.hxx +9 -2
- package/deps/couchbase-cxx-client/couchbase/operations/document_view.cxx +6 -6
- package/deps/couchbase-cxx-client/couchbase/operations/document_view.hxx +6 -10
- package/deps/couchbase-cxx-client/couchbase/operations/management/CMakeLists.txt +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_create.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_create.hxx +2 -6
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_drop.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_drop.hxx +4 -8
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_get_all.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_get_all.hxx +4 -14
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataverse_create.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataverse_create.hxx +2 -6
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataverse_drop.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataverse_drop.hxx +2 -6
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_get_pending_mutations.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_get_pending_mutations.hxx +2 -6
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_create.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_create.hxx +2 -6
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_drop.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_drop.hxx +4 -8
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_get_all.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_get_all.hxx +4 -14
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_create.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_get_all.cxx +6 -6
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_get_all.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_replace.hxx +2 -2
- package/deps/{couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link.hxx → couchbase-cxx-client/couchbase/operations/management/analytics_link_utils.hxx} +3 -6
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_problem.hxx +30 -0
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_create.cxx +22 -22
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_create.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_describe.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_describe.hxx +11 -9
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_get.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_get.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_get_all.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_get_all.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_update.cxx +13 -10
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_update.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/cluster_describe.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/cluster_describe.hxx +19 -19
- package/deps/couchbase-cxx-client/couchbase/operations/management/error_utils.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/error_utils.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_deploy_function.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_drop_function.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_all_functions.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_all_functions.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_function.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_function.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_status.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_status.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_pause_function.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_problem.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_resume_function.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_undeploy_function.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_upsert_function.cxx +25 -25
- package/deps/couchbase-cxx-client/couchbase/operations/management/eventing_upsert_function.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/group_get.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/group_get.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/operations/management/group_get_all.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/group_get_all.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/group_upsert.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/query_index_build_deferred.cxx +20 -7
- package/deps/couchbase-cxx-client/couchbase/operations/management/query_index_build_deferred.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/operations/management/query_index_create.cxx +18 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/query_index_drop.cxx +26 -4
- package/deps/couchbase-cxx-client/couchbase/operations/management/query_index_get_all.cxx +49 -19
- package/deps/couchbase-cxx-client/couchbase/operations/management/query_index_get_all.hxx +4 -17
- package/deps/couchbase-cxx-client/couchbase/operations/management/role_get_all.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/role_get_all.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/search_index_get.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/search_index_get.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/search_index_get_all.cxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/search_index_get_all.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/operations/management/search_index_upsert.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/search_index_upsert.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/user_drop.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/user_drop.hxx +4 -4
- package/deps/couchbase-cxx-client/couchbase/operations/management/user_get.cxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/user_get.hxx +5 -5
- package/deps/couchbase-cxx-client/couchbase/operations/management/user_get_all.cxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/user_get_all.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/user_upsert.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/user_upsert.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/view_index_drop.cxx +1 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/view_index_drop.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/operations/management/view_index_get.cxx +3 -4
- package/deps/couchbase-cxx-client/couchbase/operations/management/view_index_get.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/view_index_get_all.cxx +7 -7
- package/deps/couchbase-cxx-client/couchbase/operations/management/view_index_get_all.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/operations/management/view_index_upsert.cxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/view_index_upsert.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/protocol/client_request.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/client_response.hxx +3 -4
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_append.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_decrement.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_exists.hxx +3 -3
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_get_meta.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_increment.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_insert.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_mutate_in.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_prepend.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_remove.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_replace.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_upsert.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/protocol/server_request.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/query_profile_mode.hxx +27 -0
- package/deps/couchbase-cxx-client/couchbase/query_scan_consistency.hxx +23 -0
- package/deps/couchbase-cxx-client/couchbase/search_highlight_style.hxx +23 -0
- package/deps/couchbase-cxx-client/couchbase/search_scan_consistency.hxx +23 -0
- package/deps/couchbase-cxx-client/couchbase/timeout_defaults.hxx +2 -1
- package/deps/couchbase-cxx-client/couchbase/topology/collections_manifest.hxx +2 -0
- package/deps/couchbase-cxx-client/couchbase/utils/connection_string.cxx +22 -1
- package/deps/couchbase-cxx-client/couchbase/view_scan_consistency.hxx +27 -0
- package/deps/couchbase-cxx-client/couchbase/view_sort_order.hxx +23 -0
- package/deps/couchbase-cxx-client/test/test_integration_arithmetic.cxx +24 -0
- package/deps/couchbase-cxx-client/test/test_integration_binary_operations.cxx +1 -1
- package/deps/couchbase-cxx-client/test/test_integration_connect.cxx +26 -0
- package/deps/couchbase-cxx-client/test/test_integration_crud.cxx +5 -5
- package/deps/couchbase-cxx-client/test/test_integration_management.cxx +377 -132
- package/deps/couchbase-cxx-client/test/test_integration_subdoc.cxx +6 -6
- package/deps/couchbase-cxx-client/test/utils/integration_test_guard.cxx +2 -2
- package/deps/couchbase-cxx-client/test/utils/integration_test_guard.hxx +8 -7
- package/deps/couchbase-cxx-client/test/utils/server_version.hxx +11 -1
- package/deps/couchbase-cxx-client/third_party/json/.github/workflows/clang-format.yml +2 -2
- package/deps/couchbase-cxx-client/third_party/json/.gitmodules +2 -1
- package/deps/couchbase-cxx-client/third_party/json/LICENSE +1 -1
- package/deps/couchbase-cxx-client/third_party/json/README.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Advanced-Use-Cases.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Batteries-Included.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Binding-Traits.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Changelog.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Common-Use-Cases.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Design-Decisions.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Events-Interface.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Getting-Started.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Instance-Sharing.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Interoperability.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Overview.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Parser-Interface.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/README.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Scratchpad.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Type-Traits.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/doc/Value-Class.md +1 -1
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/.github/workflows/clang-format.yml +2 -2
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/.github/workflows/codeql-analysis.yml +2 -2
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/README.md +9 -9
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/Actions-and-States.md +2 -1
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/Changelog.md +30 -1
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/Contrib-and-Examples.md +5 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/README.md +1 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/Rule-Reference.md +7 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/ascii.hpp +1 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/buffer_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/change_action_and_state.hpp +24 -6
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/change_state.hpp +25 -6
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/add_state.hpp +69 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/http.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/integer.hpp +47 -15
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/iri.hpp +106 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/proto3.hpp +142 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp +45 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/state_control.hpp +8 -4
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uri.hpp +2 -6
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/demangle.hpp +111 -76
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/internal/dependent_true.hpp +16 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/internal/state.hpp +29 -13
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/version.hpp +3 -3
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/example/pegtl/CMakeLists.txt +1 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/example/pegtl/iri.cpp +101 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/example/pegtl/proto3.cpp +1 -116
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/CMakeLists.txt +2 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/contrib_integer.cpp +29 -29
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/contrib_iri.cpp +57 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/contrib_separated_seq.cpp +24 -0
- package/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/contrib_uri.cpp +19 -18
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/basic_value.hpp +30 -10
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binary.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binary_view.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/constant.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/element.hpp +13 -124
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/element2.hpp +35 -0
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/factory.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/for_nothing_value.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/for_unknown_key.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/inherit.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/array.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/elementr.hpp +134 -0
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/elementw.hpp +251 -0
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/inherit.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/object.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/type_key.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/member.hpp +17 -2
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/member_kind.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/versions.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding.hpp +4 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/consume_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/consume_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/from_binary.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/from_binary.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/internal/grammar.hpp +2 -2
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/internal/major.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/parts_parser.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/consume.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/consume_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/consume_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/array_traits.hpp +2 -2
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/deque_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/diff.hpp +2 -2
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/get.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/internal/array_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/internal/indirect_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/internal/object_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/internal/type_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/list_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/map_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/multimap_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/multiset_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/pair_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/patch.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/position.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/reference.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/schema.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/set_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/shared_ptr_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/tuple_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/unique_ptr_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/unordered_map_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/unordered_set_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/variant_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/vector_bool_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/vector_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/apply.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/binary_to_base64.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/binary_to_base64url.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/binary_to_exception.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/binary_to_hex.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/compare.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/debug.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/discard.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_value.hpp +3 -3
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/hash.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/invalid_string_to_binary.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/invalid_string_to_exception.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/invalid_string_to_hex.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/key_camel_case_to_snake_case.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/key_snake_case_to_camel_case.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/limit_nesting_depth.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/limit_value_count.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/non_finite_to_exception.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/non_finite_to_null.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/non_finite_to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/prefer_signed.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/prefer_unsigned.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/produce.hpp +99 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/ref.hpp +4 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/statistics.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/tee.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/to_pretty_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/to_value.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/transformer.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/validate_event_order.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/validate_keys.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/virtual_base.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/virtual_ref.hpp +4 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/virtual_wrap.hpp +166 -0
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/events.hpp +6 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/external/double.hpp +2 -2
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/external/itoa.hpp +12 -10
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/external/ryu.hpp +4 -4
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/forward.hpp +3 -3
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/from_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/action.hpp +3 -3
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/base64.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/base64url.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/dependent_false.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/endian.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/endian_gcc.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/endian_win.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/errors.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/escape.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/filesystem.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/format.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/grammar.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/hexdump.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/identity.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/number_state.hpp +2 -2
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/number_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/pair.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/parse_util.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/sha256.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/single.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/string_t.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/type_traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/unescape_action.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/uri_fragment.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/consume_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/consume_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/from_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/to_pretty_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/from_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/action.hpp +3 -3
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/bunescape_action.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/errors.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/grammar.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/integer.hpp +6 -6
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/is_identifier.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/parts_parser.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/message_extension.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/consume_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/consume_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/from_binary.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/from_binary.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/internal/format.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/internal/grammar.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/parts_parser.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/operators.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/parts_parser.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/pointer.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/produce.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/self_contained.hpp +6 -7
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/span.hpp +17 -17
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/traits.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/type.hpp +7 -7
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/consume_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/consume_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/from_binary.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/from_binary.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/from_file.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/from_input.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/from_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/internal/grammar.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/internal/marker.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/parts_parser.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/to_stream.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/to_string.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/utf8.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json/value.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/include/tao/json.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_jaxn.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_msgpack.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_pretty_jaxn.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_pretty_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_ubjson.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_cbor.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_cplusplus.cpp +2 -2
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_jaxn.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_msgpack.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_pretty_jaxn.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_ubjson.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_cbor.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_msgpack.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_pretty_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_ubjson.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_cbor.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_jaxn.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_pretty_jaxn.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_pretty_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_ubjson.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/printf_doubles.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_cbor.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_jaxn.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_msgpack.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_pretty_jaxn.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_pretty_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/validate_event_order.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/example/json/validate_integer.cpp +2 -2
- package/deps/couchbase-cxx-client/third_party/json/src/perf/json/bench_mark.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/perf/json/benchmark.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/perf/json/parse_file.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/perf/json/pretty_print_file.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/perf/json/print_double.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/perf/json/print_file.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/perf/json/sizes.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/perf/json/syntax_only.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/CMakeLists.txt +1 -0
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/big_list_of_naughty_strings.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_array.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_factory.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_function.cpp +278 -0
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_object.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_versions.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/cbor.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/cbor_parts_parser.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_diff.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_get.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_add.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_copy.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_move.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_remove.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_replace.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_test.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_position.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_reference.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_schema.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_traits.cpp +36 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/double.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/enable_implicit_constructor.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/escape.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/events_binary_to.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/events_compare.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/events_debug.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/events_hash.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/events_to_stream.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/events_to_string.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/include_json.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/integer.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/jaxn_ostream.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/jaxn_parse.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/jaxn_parts_parser.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/json_ostream.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/json_parse.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/json_parts_parser.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/json_pointer.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/key_camel_case_to_snake_case.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/key_snake_case_to_camel_case.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/literal.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/main.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/make_events.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/msgpack.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/object_construction.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/opaque_pointer.cpp +5 -5
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/operators.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/optional.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/public_base.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/self_contained.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/sha256.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/temporary_parsing.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/test.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/test_events.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/test_types.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/test_unhex.hpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/type.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/ubjson.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/uri_fragment.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/validate_event_interfaces.cpp +3 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/validate_utf8.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/value_access.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/value_basics.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/value_create.cpp +5 -5
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/value_ptr.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/value_subscript.cpp +1 -1
- package/deps/couchbase-cxx-client/third_party/json/src/test/json/with_arguments.cpp +1 -1
- package/deps/couchbase-transactions-cxx/CMakeLists.txt +7 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/.gitmodules +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/CMakeLists.txt +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/analytics_scan_consistency.hxx +26 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/capella_ca.hxx +43 -0
- package/deps/{couchbase-cxx-client/couchbase/protocol → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/cas.hxx +2 -2
- package/deps/{couchbase-cxx-client/couchbase/protocol → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/cas_fmt.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/cluster.hxx +31 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/cluster_options.hxx +3 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/design_document_namespace.hxx +26 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/diagnostics.hxx +1 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/error_context/analytics.hxx +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/error_context/http.hxx +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/error_context/key_value.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/error_context/query.hxx +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/error_context/search.hxx +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/error_context/view.hxx +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/io/http_context.hxx +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/io/http_session.hxx +14 -11
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/io/http_session_manager.hxx +53 -37
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/io/ip_protocol.hxx +28 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/io/mcbp_command.hxx +22 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/io/mcbp_session.hxx +27 -10
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/io/mcbp_traits.hxx +30 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/io/streams.hxx +22 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/management/CMakeLists.txt +13 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/management/analytics_dataset.hxx +30 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/management/analytics_index.hxx +30 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/management/analytics_link.hxx +22 -0
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/analytics_link_azure_blob_external.cxx +5 -5
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/analytics_link_azure_blob_external.hxx +3 -3
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/analytics_link_azure_blob_external_json.hxx +4 -4
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/analytics_link_couchbase_remote.cxx +12 -12
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/analytics_link_couchbase_remote.hxx +8 -8
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/analytics_link_couchbase_remote_json.hxx +7 -7
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/analytics_link_s3_external.cxx +5 -5
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/{operations/management → management}/analytics_link_s3_external.hxx +3 -3
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/analytics_link_s3_external_json.hxx +4 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/management/bucket_settings.hxx +134 -0
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/bucket_settings_json.hxx +29 -24
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/{operations/management → management}/design_document.hxx +5 -8
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/design_document_fmt.hxx +5 -5
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/eventing_function.hxx +6 -10
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/eventing_function_json.hxx +29 -32
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/eventing_status.hxx +2 -2
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/eventing_status_json.hxx +15 -15
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/management/query_index.hxx +39 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/{operations/management → management}/rbac.hxx +3 -2
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/rbac_fmt.hxx +6 -6
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/rbac_json.hxx +15 -15
- package/deps/{couchbase-cxx-client/couchbase/operations → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/management/search_index.hxx +5 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/{operations/management → management}/search_index_json.hxx +4 -4
- package/deps/{couchbase-cxx-client/couchbase/protocol → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase}/mutation_token.hxx +3 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/{protocol/mutation_token_fmt.hxx → mutation_token_fmt.hxx} +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_analytics.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_analytics.hxx +2 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_append.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_append.hxx +11 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_decrement.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_decrement.hxx +11 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_exists.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_get.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_get_and_lock.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_get_and_touch.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_get_projected.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_increment.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_increment.hxx +9 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_insert.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_insert.hxx +9 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_lookup_in.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_mutate_in.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_mutate_in.hxx +12 -5
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_prepend.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_prepend.hxx +9 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_query.cxx +6 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_query.hxx +5 -10
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_remove.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_remove.hxx +10 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_replace.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_replace.hxx +10 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_search.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_search.hxx +5 -5
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_touch.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_unlock.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_upsert.cxx +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_upsert.hxx +9 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_view.cxx +6 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_view.hxx +6 -10
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/CMakeLists.txt +0 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_create.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_create.hxx +2 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_drop.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_drop.hxx +4 -8
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_get_all.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_get_all.hxx +4 -14
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataverse_create.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataverse_create.hxx +2 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataverse_drop.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataverse_drop.hxx +2 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_get_pending_mutations.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_get_pending_mutations.hxx +2 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_create.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_create.hxx +2 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_drop.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_drop.hxx +4 -8
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_get_all.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_index_get_all.hxx +4 -14
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_create.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_get_all.cxx +6 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_get_all.hxx +4 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_replace.hxx +2 -2
- package/deps/{couchbase-cxx-client/couchbase/operations/management/analytics_link.hxx → couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_link_utils.hxx} +3 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/analytics_problem.hxx +30 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_create.cxx +22 -22
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_create.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_describe.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_describe.hxx +11 -9
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_get.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_get.hxx +4 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_get_all.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_get_all.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_update.cxx +13 -10
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_update.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/cluster_describe.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/cluster_describe.hxx +19 -19
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/error_utils.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/error_utils.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_deploy_function.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_drop_function.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_all_functions.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_all_functions.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_function.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_function.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_status.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_get_status.hxx +4 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_pause_function.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_problem.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_resume_function.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_undeploy_function.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_upsert_function.cxx +25 -25
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/eventing_upsert_function.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/group_get.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/group_get.hxx +4 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/group_get_all.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/group_get_all.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/group_upsert.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/query_index_build_deferred.cxx +20 -7
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/query_index_build_deferred.hxx +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/query_index_create.cxx +18 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/query_index_drop.cxx +26 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/query_index_get_all.cxx +39 -19
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/query_index_get_all.hxx +4 -17
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/role_get_all.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/role_get_all.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/search_index_get.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/search_index_get.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/search_index_get_all.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/search_index_get_all.hxx +4 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/search_index_upsert.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/search_index_upsert.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/user_drop.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/user_drop.hxx +4 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/user_get.cxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/user_get.hxx +5 -5
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/user_get_all.cxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/user_get_all.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/user_upsert.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/user_upsert.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/view_index_drop.cxx +1 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/view_index_drop.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/view_index_get.cxx +3 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/view_index_get.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/view_index_get_all.cxx +7 -7
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/view_index_get_all.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/view_index_upsert.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/view_index_upsert.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/client_request.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/client_response.hxx +3 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_append.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_decrement.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_exists.hxx +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_get_meta.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_increment.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_insert.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_mutate_in.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_prepend.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_remove.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_replace.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/cmd_upsert.hxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/protocol/server_request.hxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/query_profile_mode.hxx +27 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/query_scan_consistency.hxx +23 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/search_highlight_style.hxx +23 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/search_scan_consistency.hxx +23 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/timeout_defaults.hxx +2 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/topology/collections_manifest.hxx +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/utils/connection_string.cxx +22 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/view_scan_consistency.hxx +27 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/view_sort_order.hxx +23 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/test_integration_arithmetic.cxx +24 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/test_integration_binary_operations.cxx +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/test_integration_connect.cxx +26 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/test_integration_crud.cxx +5 -5
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/test_integration_management.cxx +377 -132
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/test_integration_subdoc.cxx +6 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/utils/integration_test_guard.cxx +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/utils/integration_test_guard.hxx +8 -7
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/test/utils/server_version.hxx +11 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/.github/workflows/clang-format.yml +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/.gitmodules +2 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/LICENSE +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/README.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Advanced-Use-Cases.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Batteries-Included.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Binding-Traits.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Changelog.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Common-Use-Cases.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Design-Decisions.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Events-Interface.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Getting-Started.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Instance-Sharing.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Interoperability.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Overview.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Parser-Interface.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/README.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Scratchpad.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Type-Traits.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/doc/Value-Class.md +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/.github/workflows/clang-format.yml +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/.github/workflows/codeql-analysis.yml +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/README.md +9 -9
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/Actions-and-States.md +2 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/Changelog.md +30 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/Contrib-and-Examples.md +5 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/README.md +1 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/doc/Rule-Reference.md +7 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/ascii.hpp +1 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/buffer_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/change_action_and_state.hpp +24 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/change_state.hpp +25 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/add_state.hpp +69 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/http.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/integer.hpp +47 -15
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/iri.hpp +106 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/proto3.hpp +142 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/separated_seq.hpp +45 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/state_control.hpp +8 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/contrib/uri.hpp +2 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/demangle.hpp +111 -76
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/internal/dependent_true.hpp +16 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/internal/state.hpp +29 -13
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/include/tao/pegtl/version.hpp +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/example/pegtl/CMakeLists.txt +1 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/example/pegtl/iri.cpp +101 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/example/pegtl/proto3.cpp +1 -116
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/CMakeLists.txt +2 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/contrib_integer.cpp +29 -29
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/contrib_iri.cpp +57 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/contrib_separated_seq.cpp +24 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/external/PEGTL/src/test/pegtl/contrib_uri.cpp +19 -18
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/basic_value.hpp +30 -10
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binary.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binary_view.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/constant.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/element.hpp +13 -124
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/element2.hpp +35 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/factory.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/for_nothing_value.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/for_unknown_key.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/inherit.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/array.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/elementr.hpp +134 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/elementw.hpp +251 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/inherit.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/object.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/internal/type_key.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/member.hpp +17 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/member_kind.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding/versions.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/binding.hpp +4 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/consume_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/consume_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/from_binary.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/events/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/from_binary.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/internal/grammar.hpp +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/internal/major.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/parts_parser.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/cbor.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/consume.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/consume_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/consume_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/array_traits.hpp +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/deque_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/diff.hpp +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/get.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/internal/array_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/internal/indirect_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/internal/object_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/internal/type_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/list_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/map_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/multimap_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/multiset_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/pair_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/patch.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/position.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/reference.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/schema.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/set_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/shared_ptr_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/tuple_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/unique_ptr_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/unordered_map_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/unordered_set_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/variant_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/vector_bool_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/contrib/vector_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/apply.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/binary_to_base64.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/binary_to_base64url.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/binary_to_exception.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/binary_to_hex.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/compare.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/debug.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/discard.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/from_value.hpp +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/hash.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/invalid_string_to_binary.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/invalid_string_to_exception.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/invalid_string_to_hex.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/key_camel_case_to_snake_case.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/key_snake_case_to_camel_case.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/limit_nesting_depth.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/limit_value_count.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/non_finite_to_exception.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/non_finite_to_null.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/non_finite_to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/prefer_signed.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/prefer_unsigned.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/produce.hpp +99 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/ref.hpp +4 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/statistics.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/tee.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/to_pretty_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/to_value.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/transformer.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/validate_event_order.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/validate_keys.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/virtual_base.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/virtual_ref.hpp +4 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events/virtual_wrap.hpp +166 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/events.hpp +6 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/external/double.hpp +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/external/itoa.hpp +12 -10
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/external/ryu.hpp +4 -4
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/forward.hpp +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/from_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/action.hpp +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/base64.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/base64url.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/dependent_false.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/endian.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/endian_gcc.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/endian_win.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/errors.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/escape.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/filesystem.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/format.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/grammar.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/hexdump.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/identity.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/number_state.hpp +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/number_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/pair.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/parse_util.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/sha256.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/single.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/string_t.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/type_traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/unescape_action.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/internal/uri_fragment.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/consume_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/consume_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/from_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/to_pretty_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/events/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/from_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/action.hpp +3 -3
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/bunescape_action.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/errors.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/grammar.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/integer.hpp +6 -6
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/internal/unescape_action.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/is_identifier.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/parts_parser.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/jaxn.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/message_extension.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/consume_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/consume_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/from_binary.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/events/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/from_binary.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/internal/format.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/internal/grammar.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/parts_parser.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/msgpack.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/operators.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/parts_parser.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/pointer.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/produce.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/self_contained.hpp +6 -7
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/span.hpp +17 -17
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/traits.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/type.hpp +7 -7
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/consume_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/consume_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/from_binary.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/events/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/from_binary.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/from_file.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/from_input.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/from_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/internal/grammar.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/internal/marker.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/parts_parser.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/to_stream.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson/to_string.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/ubjson.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/utf8.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json/value.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/include/tao/json.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_jaxn.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_msgpack.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_pretty_jaxn.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_pretty_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/cbor_to_ubjson.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_cbor.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_cplusplus.cpp +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_jaxn.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_msgpack.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_pretty_jaxn.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/jaxn_to_ubjson.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_cbor.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_msgpack.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_pretty_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/json_to_ubjson.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_cbor.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_jaxn.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_pretty_jaxn.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_pretty_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/msgpack_to_ubjson.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/printf_doubles.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_cbor.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_jaxn.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_msgpack.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_pretty_jaxn.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/ubjson_to_pretty_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/validate_event_order.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/example/json/validate_integer.cpp +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/perf/json/bench_mark.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/perf/json/benchmark.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/perf/json/parse_file.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/perf/json/pretty_print_file.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/perf/json/print_double.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/perf/json/print_file.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/perf/json/sizes.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/perf/json/syntax_only.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/CMakeLists.txt +1 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/big_list_of_naughty_strings.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_array.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_factory.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_function.cpp +278 -0
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_object.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/binding_versions.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/cbor.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/cbor_parts_parser.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_diff.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_get.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_add.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_copy.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_move.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_remove.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_replace.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_patch_test.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_position.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_reference.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_schema.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/contrib_traits.cpp +36 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/double.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/enable_implicit_constructor.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/escape.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/events_binary_to.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/events_compare.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/events_debug.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/events_hash.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/events_to_stream.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/events_to_string.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/include_json.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/integer.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/jaxn_ostream.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/jaxn_parse.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/jaxn_parts_parser.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/json_ostream.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/json_parse.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/json_parts_parser.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/json_pointer.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/key_camel_case_to_snake_case.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/key_snake_case_to_camel_case.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/literal.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/main.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/make_events.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/msgpack.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/object_construction.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/opaque_pointer.cpp +5 -5
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/operators.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/optional.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/public_base.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/self_contained.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/sha256.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/temporary_parsing.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/test.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/test_events.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/test_types.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/test_unhex.hpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/type.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/ubjson.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/uri_fragment.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/validate_event_interfaces.cpp +3 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/validate_utf8.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/value_access.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/value_basics.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/value_create.cpp +5 -5
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/value_ptr.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/value_subscript.cpp +1 -1
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/third_party/json/src/test/json/with_arguments.cpp +1 -1
- package/deps/couchbase-transactions-cxx/include/couchbase/transactions/internal/utils.hxx +11 -14
- package/deps/couchbase-transactions-cxx/include/couchbase/transactions/per_transaction_config.hxx +3 -3
- package/deps/couchbase-transactions-cxx/include/couchbase/transactions/transaction_config.hxx +3 -3
- package/deps/couchbase-transactions-cxx/include/couchbase/transactions/transaction_query_options.hxx +2 -2
- package/deps/couchbase-transactions-cxx/src/transactions/attempt_context_impl.cxx +2 -4
- package/deps/couchbase-transactions-cxx/src/transactions/transaction_config.cxx +1 -1
- package/deps/couchbase-transactions-cxx/tests/transactions/transaction_context_t.cpp +1 -1
- package/deps/couchbase-transactions-cxx/tests/transactions/transactions_env.h +0 -1
- package/deps/couchbase-transactions-cxx/tests/transactions/utils_t.cpp +26 -0
- package/dist/analyticsexecutor.js +13 -11
- package/dist/binding.d.ts +2073 -674
- package/dist/binding.js +119 -45
- package/dist/bindingutilities.d.ts +7 -7
- package/dist/bindingutilities.js +99 -95
- package/dist/bucket.d.ts +2 -2
- package/dist/bucketmanager.js +1 -1
- package/dist/cluster.d.ts +2 -2
- package/dist/cluster.js +9 -3
- package/dist/collection.d.ts +10 -3
- package/dist/collection.js +239 -94
- package/dist/connspec.js +5 -1
- package/dist/couchbase.js +5 -1
- package/dist/crudoptypes.d.ts +1 -1
- package/dist/diagnosticsexecutor.js +4 -2
- package/dist/errors.js +1 -0
- package/dist/httpexecutor.d.ts +2 -2
- package/dist/httpexecutor.js +10 -4
- package/dist/queryexecutor.d.ts +2 -2
- package/dist/queryexecutor.js +13 -11
- package/dist/queryindexmanager.d.ts +68 -4
- package/dist/queryindexmanager.js +94 -116
- package/dist/scope.d.ts +2 -2
- package/dist/sdspecs.d.ts +5 -5
- package/dist/sdspecs.js +28 -21
- package/dist/searchexecutor.js +15 -13
- package/dist/searchindexmanager.d.ts +40 -1
- package/dist/searchindexmanager.js +4 -2
- package/dist/transactions.js +19 -14
- package/dist/utilities.js +5 -1
- package/dist/viewexecutor.js +7 -6
- package/package.json +1 -1
- package/src/cas.hpp +2 -2
- package/src/connection.cpp +158 -329
- package/src/connection.hpp +113 -16
- package/src/connection_autogen.cpp +1226 -0
- package/src/constants.cpp +533 -183
- package/src/constants.hpp +1 -0
- package/src/jstocbpp.hpp +6 -2289
- package/src/jstocbpp_autogen.hpp +8746 -0
- package/src/jstocbpp_basic.hpp +95 -0
- package/src/jstocbpp_cpptypes.hpp +372 -0
- package/src/jstocbpp_defs.hpp +62 -0
- package/src/jstocbpp_errors.hpp +271 -0
- package/src/jstocbpp_transactions.hpp +453 -0
- package/tools/gen-bindings-js.js +561 -0
- package/tools/gen-bindings-json.py +360 -0
- package/deps/couchbase-cxx-client/couchbase/operations/document_observe.hxx +0 -61
- package/deps/couchbase-cxx-client/couchbase/operations/management/bucket_settings.hxx +0 -128
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/document_observe.hxx +0 -61
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/bucket_settings.hxx +0 -128
- package/dist/connection.d.ts +0 -43
- package/dist/connection.js +0 -106
package/src/jstocbpp.hpp
CHANGED
@@ -1,2292 +1,9 @@
|
|
1
1
|
#pragma once
|
2
|
-
#include "cas.hpp"
|
3
|
-
#include "mutationtoken.hpp"
|
4
|
-
#include "transcoder.hpp"
|
5
|
-
#include <couchbase/cluster.hxx>
|
6
|
-
#include <couchbase/operations/management/error_utils.hxx>
|
7
|
-
#include <couchbase/operations/management/freeform.hxx>
|
8
|
-
#include <couchbase/transactions.hxx>
|
9
|
-
#include <couchbase/transactions/internal/exceptions_internal.hxx>
|
10
|
-
#include <map>
|
11
|
-
#include <napi.h>
|
12
|
-
#include <optional>
|
13
|
-
#include <set>
|
14
|
-
#include <variant>
|
15
|
-
#include <vector>
|
16
2
|
|
17
|
-
|
3
|
+
#include "jstocbpp_defs.hpp"
|
18
4
|
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
template <typename T>
|
26
|
-
static inline T js_to_cbpp(Napi::Value jsVal)
|
27
|
-
{
|
28
|
-
return js_to_cbpp_t<T>::from_js(jsVal);
|
29
|
-
}
|
30
|
-
|
31
|
-
template <typename T>
|
32
|
-
static inline void js_to_cbpp(T &cppObj, Napi::Value jsVal)
|
33
|
-
{
|
34
|
-
cppObj = js_to_cbpp_t<T>::from_js(jsVal);
|
35
|
-
}
|
36
|
-
|
37
|
-
template <typename T>
|
38
|
-
static inline Napi::Value cbpp_to_js(Napi::Env env, const T &cppObj)
|
39
|
-
{
|
40
|
-
return js_to_cbpp_t<T>::to_js(env, cppObj);
|
41
|
-
}
|
42
|
-
|
43
|
-
template <typename T>
|
44
|
-
static inline Napi::Value cbpp_to_js(Napi::Env env, const T &cppObj,
|
45
|
-
const Transcoder &transcoder)
|
46
|
-
{
|
47
|
-
return js_to_cbpp_t<T>::to_js(env, cppObj, transcoder);
|
48
|
-
}
|
49
|
-
|
50
|
-
// integral types
|
51
|
-
template <typename T>
|
52
|
-
struct js_to_cbpp_t<T, typename std::enable_if_t<std::is_integral_v<T>>> {
|
53
|
-
static inline Napi::Value to_js(Napi::Env env, T cppObj)
|
54
|
-
{
|
55
|
-
if constexpr (std::is_same_v<T, bool>) {
|
56
|
-
return Napi::Boolean::New(env, cppObj);
|
57
|
-
} else {
|
58
|
-
return Napi::Number::New(env, cppObj);
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
static inline T from_js(Napi::Value jsVal)
|
63
|
-
{
|
64
|
-
if constexpr (std::is_same_v<T, bool>) {
|
65
|
-
return jsVal.ToBoolean().Value();
|
66
|
-
} else {
|
67
|
-
return static_cast<T>(jsVal.ToNumber().Int64Value());
|
68
|
-
}
|
69
|
-
}
|
70
|
-
};
|
71
|
-
|
72
|
-
// floating point types
|
73
|
-
template <typename T>
|
74
|
-
struct js_to_cbpp_t<T, typename std::enable_if_t<std::is_floating_point_v<T>>> {
|
75
|
-
static inline Napi::Value to_js(Napi::Env env, T cppObj)
|
76
|
-
{
|
77
|
-
return Napi::Number::New(env, cppObj);
|
78
|
-
}
|
79
|
-
|
80
|
-
static inline T from_js(Napi::Value jsVal)
|
81
|
-
{
|
82
|
-
return static_cast<T>(jsVal.ToNumber().DoubleValue());
|
83
|
-
}
|
84
|
-
};
|
85
|
-
|
86
|
-
// enum types
|
87
|
-
template <typename T>
|
88
|
-
struct js_to_cbpp_t<T, typename std::enable_if_t<std::is_enum_v<T>>> {
|
89
|
-
static inline Napi::Value to_js(Napi::Env env, T cppObj)
|
90
|
-
{
|
91
|
-
return Napi::Number::New(env, static_cast<int64_t>(cppObj));
|
92
|
-
}
|
93
|
-
|
94
|
-
static inline T from_js(Napi::Value jsVal)
|
95
|
-
{
|
96
|
-
return static_cast<T>(jsVal.ToNumber().Int64Value());
|
97
|
-
}
|
98
|
-
};
|
99
|
-
|
100
|
-
// std::string type
|
101
|
-
template <>
|
102
|
-
struct js_to_cbpp_t<std::string> {
|
103
|
-
static inline Napi::Value to_js(Napi::Env env, const std::string &cppObj)
|
104
|
-
{
|
105
|
-
return Napi::String::New(env, cppObj);
|
106
|
-
}
|
107
|
-
|
108
|
-
static inline std::string from_js(Napi::Value jsVal)
|
109
|
-
{
|
110
|
-
if (jsVal.IsEmpty() || jsVal.IsNull() || jsVal.IsUndefined()) {
|
111
|
-
return "";
|
112
|
-
}
|
113
|
-
|
114
|
-
return jsVal.ToString().Utf8Value();
|
115
|
-
}
|
116
|
-
};
|
117
|
-
|
118
|
-
// std::chrono::nanoseconds type
|
119
|
-
template <>
|
120
|
-
struct js_to_cbpp_t<std::chrono::nanoseconds> {
|
121
|
-
static inline Napi::Value to_js(Napi::Env env,
|
122
|
-
const std::chrono::nanoseconds &cppObj)
|
123
|
-
{
|
124
|
-
return Napi::Number::New(env, cppObj / std::chrono::milliseconds(1));
|
125
|
-
}
|
126
|
-
|
127
|
-
static inline std::chrono::nanoseconds from_js(Napi::Value jsVal)
|
128
|
-
{
|
129
|
-
if (jsVal.IsEmpty() || jsVal.IsUndefined() || jsVal.IsNull()) {
|
130
|
-
return std::chrono::nanoseconds::zero();
|
131
|
-
}
|
132
|
-
|
133
|
-
return jsVal.ToNumber().Int64Value() * std::chrono::milliseconds(1);
|
134
|
-
}
|
135
|
-
};
|
136
|
-
|
137
|
-
// std::chrono::microseconds type
|
138
|
-
template <>
|
139
|
-
struct js_to_cbpp_t<std::chrono::microseconds> {
|
140
|
-
static inline Napi::Value to_js(Napi::Env env,
|
141
|
-
const std::chrono::microseconds &cppObj)
|
142
|
-
{
|
143
|
-
return Napi::Number::New(env, cppObj / std::chrono::milliseconds(1));
|
144
|
-
}
|
145
|
-
|
146
|
-
static inline std::chrono::microseconds from_js(Napi::Value jsVal)
|
147
|
-
{
|
148
|
-
if (jsVal.IsEmpty() || jsVal.IsUndefined() || jsVal.IsNull()) {
|
149
|
-
return std::chrono::microseconds::zero();
|
150
|
-
}
|
151
|
-
|
152
|
-
return jsVal.ToNumber().Int64Value() * std::chrono::milliseconds(1);
|
153
|
-
}
|
154
|
-
};
|
155
|
-
|
156
|
-
// std::chrono::milliseconds type
|
157
|
-
template <>
|
158
|
-
struct js_to_cbpp_t<std::chrono::milliseconds> {
|
159
|
-
static inline Napi::Value to_js(Napi::Env env,
|
160
|
-
const std::chrono::milliseconds &cppObj)
|
161
|
-
{
|
162
|
-
return Napi::Number::New(env, cppObj / std::chrono::milliseconds(1));
|
163
|
-
}
|
164
|
-
|
165
|
-
static inline std::chrono::milliseconds from_js(Napi::Value jsVal)
|
166
|
-
{
|
167
|
-
if (jsVal.IsEmpty() || jsVal.IsUndefined() || jsVal.IsNull()) {
|
168
|
-
return std::chrono::milliseconds::zero();
|
169
|
-
}
|
170
|
-
|
171
|
-
return jsVal.ToNumber().Int64Value() * std::chrono::milliseconds(1);
|
172
|
-
}
|
173
|
-
};
|
174
|
-
|
175
|
-
// std::monostate type
|
176
|
-
template <>
|
177
|
-
struct js_to_cbpp_t<std::monostate> {
|
178
|
-
static inline Napi::Value to_js(Napi::Env env, const std::monostate &cppObj)
|
179
|
-
{
|
180
|
-
return env.Undefined();
|
181
|
-
}
|
182
|
-
};
|
183
|
-
|
184
|
-
// std::optional type
|
185
|
-
template <typename T>
|
186
|
-
struct js_to_cbpp_t<std::optional<T>> {
|
187
|
-
static inline Napi::Value to_js(Napi::Env env,
|
188
|
-
const std::optional<T> &cppObj)
|
189
|
-
{
|
190
|
-
if (!cppObj.has_value()) {
|
191
|
-
return env.Undefined();
|
192
|
-
}
|
193
|
-
return cbpp_to_js<T>(env, cppObj.value());
|
194
|
-
}
|
195
|
-
|
196
|
-
static inline std::optional<T> from_js(Napi::Value jsVal)
|
197
|
-
{
|
198
|
-
if (jsVal.IsEmpty() || jsVal.IsUndefined()) {
|
199
|
-
return std::optional<T>();
|
200
|
-
}
|
201
|
-
return js_to_cbpp<T>(jsVal);
|
202
|
-
}
|
203
|
-
};
|
204
|
-
|
205
|
-
// std::vector type
|
206
|
-
template <typename T>
|
207
|
-
struct js_to_cbpp_t<std::vector<T>> {
|
208
|
-
static inline Napi::Value to_js(Napi::Env env, const std::vector<T> &cppObj)
|
209
|
-
{
|
210
|
-
auto jsArr = Napi::Array::New(env);
|
211
|
-
for (auto i = 0; i < cppObj.size(); ++i) {
|
212
|
-
jsArr.Set(i, cbpp_to_js<T>(env, cppObj[i]));
|
213
|
-
}
|
214
|
-
return jsArr;
|
215
|
-
}
|
216
|
-
|
217
|
-
static inline std::vector<T> from_js(Napi::Value jsVal)
|
218
|
-
{
|
219
|
-
if (jsVal.IsEmpty() || jsVal.IsNull() || jsVal.IsUndefined()) {
|
220
|
-
return {};
|
221
|
-
}
|
222
|
-
|
223
|
-
std::vector<T> cppObj;
|
224
|
-
auto jsArr = jsVal.As<Napi::Array>();
|
225
|
-
for (auto i = 0; i < jsArr.Length(); ++i) {
|
226
|
-
cppObj.emplace_back(js_to_cbpp<T>(jsArr.Get(i)));
|
227
|
-
}
|
228
|
-
return cppObj;
|
229
|
-
}
|
230
|
-
};
|
231
|
-
|
232
|
-
// std::set type
|
233
|
-
template <typename T>
|
234
|
-
struct js_to_cbpp_t<std::set<T>> {
|
235
|
-
static inline Napi::Value to_js(Napi::Env env, const std::set<T> &cppObj)
|
236
|
-
{
|
237
|
-
auto jsArr = Napi::Array::New(env);
|
238
|
-
auto cppObjVec = std::vector<T>(cppObj.begin(), cppObj.end());
|
239
|
-
for (auto i = 0; i < cppObjVec.size(); ++i) {
|
240
|
-
jsArr.Set(i, cbpp_to_js<T>(env, cppObjVec[i]));
|
241
|
-
}
|
242
|
-
return jsArr;
|
243
|
-
}
|
244
|
-
|
245
|
-
static inline std::set<T> from_js(Napi::Value jsVal)
|
246
|
-
{
|
247
|
-
if (jsVal.IsEmpty() || jsVal.IsNull() || jsVal.IsUndefined()) {
|
248
|
-
return {};
|
249
|
-
}
|
250
|
-
|
251
|
-
std::set<T> cppObj;
|
252
|
-
auto jsArr = jsVal.As<Napi::Array>();
|
253
|
-
for (auto i = 0; i < jsArr.Length(); ++i) {
|
254
|
-
cppObj.insert(js_to_cbpp<T>(jsArr.Get(i)));
|
255
|
-
}
|
256
|
-
return cppObj;
|
257
|
-
}
|
258
|
-
};
|
259
|
-
|
260
|
-
// std::map<string, ...> type
|
261
|
-
template <typename T>
|
262
|
-
struct js_to_cbpp_t<std::map<std::string, T>> {
|
263
|
-
static inline Napi::Value to_js(Napi::Env env,
|
264
|
-
const std::map<std::string, T> &cppObj)
|
265
|
-
{
|
266
|
-
auto jsObj = Napi::Object::New(env);
|
267
|
-
for (const auto &i : cppObj) {
|
268
|
-
jsObj.Set(i.first, cbpp_to_js<T>(env, i.second));
|
269
|
-
}
|
270
|
-
return jsObj;
|
271
|
-
}
|
272
|
-
|
273
|
-
static inline std::map<std::string, T> from_js(Napi::Value jsVal)
|
274
|
-
{
|
275
|
-
|
276
|
-
if (jsVal.IsEmpty() || jsVal.IsNull() || jsVal.IsUndefined()) {
|
277
|
-
return {};
|
278
|
-
}
|
279
|
-
|
280
|
-
std::map<std::string, T> cppObj;
|
281
|
-
auto jsObj = jsVal.As<Napi::Object>();
|
282
|
-
auto jsPropNames = jsObj.GetPropertyNames();
|
283
|
-
for (auto i = 0; i < jsPropNames.Length(); ++i) {
|
284
|
-
auto jsKey = jsPropNames.Get(i);
|
285
|
-
auto key = jsKey.As<Napi::String>().Utf8Value();
|
286
|
-
auto value = js_to_cbpp<T>(jsObj.Get(jsKey));
|
287
|
-
cppObj.emplace(key, value);
|
288
|
-
}
|
289
|
-
return cppObj;
|
290
|
-
}
|
291
|
-
};
|
292
|
-
|
293
|
-
// std::map<enum, ...> type
|
294
|
-
template <typename K, typename T>
|
295
|
-
struct js_to_cbpp_t<std::map<K, T>,
|
296
|
-
typename std::enable_if_t<std::is_enum_v<K>>> {
|
297
|
-
static inline Napi::Value to_js(Napi::Env env, const std::map<K, T> &cppObj)
|
298
|
-
{
|
299
|
-
using enum_type_t = std::underlying_type_t<K>;
|
300
|
-
auto jsObj = Napi::Object::New(env);
|
301
|
-
for (const auto &i : cppObj) {
|
302
|
-
jsObj.Set(std::to_string(static_cast<enum_type_t>(i.first)),
|
303
|
-
cbpp_to_js<T>(env, i.second));
|
304
|
-
}
|
305
|
-
return jsObj;
|
306
|
-
}
|
307
|
-
};
|
308
|
-
|
309
|
-
// std::variant type
|
310
|
-
template <typename... Types>
|
311
|
-
struct js_to_cbpp_t<std::variant<Types...>> {
|
312
|
-
template <size_t I = 0>
|
313
|
-
static inline Napi::Value to_js(Napi::Env env,
|
314
|
-
const std::variant<Types...> &cppObj)
|
315
|
-
{
|
316
|
-
using V = std::variant<Types...>;
|
317
|
-
|
318
|
-
if constexpr (I < std::variant_size_v<V>) {
|
319
|
-
using VT = std::variant_alternative_t<I, V>;
|
320
|
-
if (std::holds_alternative<VT>(cppObj)) {
|
321
|
-
return cbpp_to_js(env, std::get<VT>(cppObj));
|
322
|
-
}
|
323
|
-
|
324
|
-
return to_js<I + 1>(env, cppObj);
|
325
|
-
}
|
326
|
-
|
327
|
-
throw Napi::Error::New(env, "invalid variant type value");
|
328
|
-
}
|
329
|
-
};
|
330
|
-
|
331
|
-
// nlohmann::json (used by transactions currently)
|
332
|
-
template <>
|
333
|
-
struct js_to_cbpp_t<nlohmann::json> {
|
334
|
-
static inline Napi::Value to_js(Napi::Env env, const nlohmann::json &cppObj)
|
335
|
-
{
|
336
|
-
return Napi::String::New(env, cppObj.dump());
|
337
|
-
}
|
338
|
-
|
339
|
-
static inline nlohmann::json from_js(Napi::Value jsVal)
|
340
|
-
{
|
341
|
-
auto cppStr = jsVal.As<Napi::String>().Utf8Value();
|
342
|
-
return nlohmann::json::parse(cppStr);
|
343
|
-
}
|
344
|
-
};
|
345
|
-
|
346
|
-
template <>
|
347
|
-
struct js_to_cbpp_t<couchbase::json_string> {
|
348
|
-
static inline Napi::Value to_js(Napi::Env env,
|
349
|
-
const couchbase::json_string &cppObj)
|
350
|
-
{
|
351
|
-
Napi::String jsonString = Napi::String::New(env, cppObj.str());
|
352
|
-
Napi::Object json = env.Global().Get("JSON").As<Napi::Object>();
|
353
|
-
Napi::Function parse = json.Get("parse").As<Napi::Function>();
|
354
|
-
return parse.Call(json, {jsonString});
|
355
|
-
}
|
356
|
-
|
357
|
-
static inline couchbase::json_string from_js(Napi::Value jsVal)
|
358
|
-
{
|
359
|
-
Napi::Object json = jsVal.Env().Global().Get("JSON").As<Napi::Object>();
|
360
|
-
Napi::Function stringify = json.Get("stringify").As<Napi::Function>();
|
361
|
-
Napi::String jsonString =
|
362
|
-
stringify.Call(json, {jsVal}).As<Napi::String>();
|
363
|
-
return jsonString.Utf8Value();
|
364
|
-
}
|
365
|
-
};
|
366
|
-
|
367
|
-
template <>
|
368
|
-
struct js_to_cbpp_t<couchbase::cluster_credentials> {
|
369
|
-
static inline couchbase::cluster_credentials from_js(Napi::Value jsVal)
|
370
|
-
{
|
371
|
-
auto jsObj = jsVal.ToObject();
|
372
|
-
couchbase::cluster_credentials cppObj;
|
373
|
-
js_to_cbpp(cppObj.username, jsObj.Get("username"));
|
374
|
-
js_to_cbpp(cppObj.password, jsObj.Get("password"));
|
375
|
-
js_to_cbpp(cppObj.certificate_path, jsObj.Get("certificate_path"));
|
376
|
-
js_to_cbpp(cppObj.key_path, jsObj.Get("key_path"));
|
377
|
-
js_to_cbpp(cppObj.allowed_sasl_mechanisms,
|
378
|
-
jsObj.Get("allowed_sasl_mechanisms"));
|
379
|
-
return cppObj;
|
380
|
-
}
|
381
|
-
};
|
382
|
-
|
383
|
-
template <>
|
384
|
-
struct js_to_cbpp_t<couchbase::document_id> {
|
385
|
-
static inline Napi::Value to_js(Napi::Env env,
|
386
|
-
const couchbase::document_id &cppObj)
|
387
|
-
{
|
388
|
-
auto resObj = Napi::Object::New(env);
|
389
|
-
resObj.Set("bucket", cbpp_to_js(env, cppObj.bucket()));
|
390
|
-
resObj.Set("scope", cbpp_to_js(env, cppObj.scope()));
|
391
|
-
resObj.Set("collection", cbpp_to_js(env, cppObj.collection()));
|
392
|
-
resObj.Set("key", cbpp_to_js(env, cppObj.key()));
|
393
|
-
return resObj;
|
394
|
-
}
|
395
|
-
|
396
|
-
static inline couchbase::document_id from_js(Napi::Value jsVal)
|
397
|
-
{
|
398
|
-
auto jsObj = jsVal.ToObject();
|
399
|
-
return couchbase::document_id(
|
400
|
-
js_to_cbpp<std::string>(jsObj.Get("bucket")),
|
401
|
-
js_to_cbpp<std::string>(jsObj.Get("scope")),
|
402
|
-
js_to_cbpp<std::string>(jsObj.Get("collection")),
|
403
|
-
js_to_cbpp<std::string>(jsObj.Get("key")));
|
404
|
-
}
|
405
|
-
};
|
406
|
-
|
407
|
-
template <>
|
408
|
-
struct js_to_cbpp_t<couchbase::protocol::cas> {
|
409
|
-
static inline Napi::Value to_js(Napi::Env env,
|
410
|
-
couchbase::protocol::cas cppObj)
|
411
|
-
{
|
412
|
-
return Cas::create(env, cppObj);
|
413
|
-
}
|
414
|
-
|
415
|
-
static inline couchbase::protocol::cas from_js(Napi::Value jsVal)
|
416
|
-
{
|
417
|
-
return Cas::parse(jsVal);
|
418
|
-
}
|
419
|
-
};
|
420
|
-
|
421
|
-
template <>
|
422
|
-
struct js_to_cbpp_t<couchbase::mutation_token> {
|
423
|
-
static inline Napi::Value to_js(Napi::Env env,
|
424
|
-
const couchbase::mutation_token &cppObj)
|
425
|
-
{
|
426
|
-
return MutationToken::create(env, cppObj);
|
427
|
-
}
|
428
|
-
|
429
|
-
static inline couchbase::mutation_token from_js(Napi::Value jsVal)
|
430
|
-
{
|
431
|
-
return MutationToken::parse(jsVal);
|
432
|
-
}
|
433
|
-
};
|
434
|
-
|
435
|
-
template <>
|
436
|
-
struct js_to_cbpp_t<couchbase::operations::get_request> {
|
437
|
-
static inline couchbase::operations::get_request from_js(Napi::Value jsVal)
|
438
|
-
{
|
439
|
-
auto jsObj = jsVal.ToObject();
|
440
|
-
couchbase::operations::get_request cppObj;
|
441
|
-
js_to_cbpp(cppObj.id, jsObj.Get("id"));
|
442
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
443
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
444
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
445
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
446
|
-
return cppObj;
|
447
|
-
}
|
448
|
-
};
|
449
|
-
|
450
|
-
template <>
|
451
|
-
struct js_to_cbpp_t<couchbase::operations::get_response> {
|
452
|
-
static inline Napi::Value
|
453
|
-
to_js(Napi::Env env, const couchbase::operations::get_response &cppObj,
|
454
|
-
const Transcoder &transcoder)
|
455
|
-
{
|
456
|
-
auto resObj = Napi::Object::New(env);
|
457
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
458
|
-
resObj.Set("content",
|
459
|
-
transcoder.decode(env, cppObj.value, cppObj.flags));
|
460
|
-
return resObj;
|
461
|
-
}
|
462
|
-
};
|
463
|
-
|
464
|
-
template <>
|
465
|
-
struct js_to_cbpp_t<couchbase::operations::exists_request> {
|
466
|
-
static inline couchbase::operations::exists_request
|
467
|
-
from_js(Napi::Value jsVal)
|
468
|
-
{
|
469
|
-
auto jsObj = jsVal.ToObject();
|
470
|
-
couchbase::operations::exists_request cppObj;
|
471
|
-
js_to_cbpp(cppObj.id, jsObj.Get("id"));
|
472
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
473
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
474
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
475
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
476
|
-
return cppObj;
|
477
|
-
}
|
478
|
-
};
|
479
|
-
|
480
|
-
template <>
|
481
|
-
struct js_to_cbpp_t<couchbase::operations::exists_response> {
|
482
|
-
static inline Napi::Value
|
483
|
-
to_js(Napi::Env env, const couchbase::operations::exists_response &cppObj)
|
484
|
-
{
|
485
|
-
auto resObj = Napi::Object::New(env);
|
486
|
-
resObj.Set("deleted", cbpp_to_js(env, cppObj.deleted));
|
487
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
488
|
-
resObj.Set("flags", cbpp_to_js(env, cppObj.flags));
|
489
|
-
resObj.Set("expiry", cbpp_to_js(env, cppObj.expiry));
|
490
|
-
resObj.Set("sequence_number", cbpp_to_js(env, cppObj.sequence_number));
|
491
|
-
resObj.Set("datatype", cbpp_to_js(env, cppObj.datatype));
|
492
|
-
resObj.Set("exists", cbpp_to_js(env, cppObj.exists()));
|
493
|
-
|
494
|
-
return resObj;
|
495
|
-
}
|
496
|
-
};
|
497
|
-
|
498
|
-
template <>
|
499
|
-
struct js_to_cbpp_t<couchbase::operations::get_and_lock_request> {
|
500
|
-
static inline couchbase::operations::get_and_lock_request
|
501
|
-
from_js(Napi::Value jsVal)
|
502
|
-
{
|
503
|
-
auto jsObj = jsVal.ToObject();
|
504
|
-
couchbase::operations::get_and_lock_request cppObj;
|
505
|
-
js_to_cbpp(cppObj.id, jsObj.Get("id"));
|
506
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
507
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
508
|
-
js_to_cbpp(cppObj.lock_time, jsObj.Get("lock_time"));
|
509
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
510
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
511
|
-
return cppObj;
|
512
|
-
}
|
513
|
-
};
|
514
|
-
|
515
|
-
template <>
|
516
|
-
struct js_to_cbpp_t<couchbase::operations::get_and_lock_response> {
|
517
|
-
static inline Napi::Value
|
518
|
-
to_js(Napi::Env env,
|
519
|
-
const couchbase::operations::get_and_lock_response &cppObj,
|
520
|
-
const Transcoder &transcoder)
|
521
|
-
{
|
522
|
-
auto resObj = Napi::Object::New(env);
|
523
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
524
|
-
resObj.Set("content",
|
525
|
-
transcoder.decode(env, cppObj.value, cppObj.flags));
|
526
|
-
return resObj;
|
527
|
-
}
|
528
|
-
};
|
529
|
-
|
530
|
-
template <>
|
531
|
-
struct js_to_cbpp_t<couchbase::operations::get_and_touch_request> {
|
532
|
-
static inline couchbase::operations::get_and_touch_request
|
533
|
-
from_js(Napi::Value jsVal)
|
534
|
-
{
|
535
|
-
auto jsObj = jsVal.ToObject();
|
536
|
-
couchbase::operations::get_and_touch_request cppObj;
|
537
|
-
js_to_cbpp(cppObj.id, jsObj.Get("id"));
|
538
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
539
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
540
|
-
js_to_cbpp(cppObj.expiry, jsObj.Get("expiry"));
|
541
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
542
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
543
|
-
return cppObj;
|
544
|
-
}
|
545
|
-
};
|
546
|
-
|
547
|
-
template <>
|
548
|
-
struct js_to_cbpp_t<couchbase::operations::get_and_touch_response> {
|
549
|
-
static inline Napi::Value
|
550
|
-
to_js(Napi::Env env,
|
551
|
-
const couchbase::operations::get_and_touch_response &cppObj,
|
552
|
-
const Transcoder &transcoder)
|
553
|
-
{
|
554
|
-
auto resObj = Napi::Object::New(env);
|
555
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
556
|
-
resObj.Set("content",
|
557
|
-
transcoder.decode(env, cppObj.value, cppObj.flags));
|
558
|
-
return resObj;
|
559
|
-
}
|
560
|
-
};
|
561
|
-
|
562
|
-
template <>
|
563
|
-
struct js_to_cbpp_t<couchbase::operations::insert_request> {
|
564
|
-
static inline couchbase::operations::insert_request
|
565
|
-
from_js(Napi::Value jsVal, const Transcoder &transcoder)
|
566
|
-
{
|
567
|
-
auto jsObj = jsVal.ToObject();
|
568
|
-
couchbase::operations::insert_request cppObj;
|
569
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
570
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
571
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
572
|
-
js_to_cbpp(cppObj.expiry, jsObj.Get("expiry"));
|
573
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
574
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
575
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
576
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
577
|
-
std::tie(cppObj.value, cppObj.flags) =
|
578
|
-
transcoder.encode(jsObj.Get("content"));
|
579
|
-
return cppObj;
|
580
|
-
}
|
581
|
-
};
|
582
|
-
|
583
|
-
template <>
|
584
|
-
struct js_to_cbpp_t<couchbase::operations::insert_response> {
|
585
|
-
static inline Napi::Value
|
586
|
-
to_js(Napi::Env env, const couchbase::operations::insert_response &cppObj)
|
587
|
-
{
|
588
|
-
auto resObj = Napi::Object::New(env);
|
589
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
590
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
591
|
-
return resObj;
|
592
|
-
}
|
593
|
-
};
|
594
|
-
|
595
|
-
template <>
|
596
|
-
struct js_to_cbpp_t<couchbase::operations::upsert_request> {
|
597
|
-
static inline couchbase::operations::upsert_request
|
598
|
-
from_js(Napi::Value jsVal, const Transcoder &transcoder)
|
599
|
-
{
|
600
|
-
auto jsObj = jsVal.ToObject();
|
601
|
-
couchbase::operations::upsert_request cppObj;
|
602
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
603
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
604
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
605
|
-
js_to_cbpp(cppObj.expiry, jsObj.Get("expiry"));
|
606
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
607
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
608
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
609
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
610
|
-
js_to_cbpp(cppObj.preserve_expiry, jsObj.Get("preserve_expiry"));
|
611
|
-
std::tie(cppObj.value, cppObj.flags) =
|
612
|
-
transcoder.encode(jsObj.Get("content"));
|
613
|
-
return cppObj;
|
614
|
-
}
|
615
|
-
};
|
616
|
-
|
617
|
-
template <>
|
618
|
-
struct js_to_cbpp_t<couchbase::operations::upsert_response> {
|
619
|
-
static inline Napi::Value
|
620
|
-
to_js(Napi::Env env, const couchbase::operations::upsert_response &cppObj)
|
621
|
-
{
|
622
|
-
auto resObj = Napi::Object::New(env);
|
623
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
624
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
625
|
-
return resObj;
|
626
|
-
}
|
627
|
-
};
|
628
|
-
|
629
|
-
template <>
|
630
|
-
struct js_to_cbpp_t<couchbase::operations::replace_request> {
|
631
|
-
static inline couchbase::operations::replace_request
|
632
|
-
from_js(Napi::Value jsVal, const Transcoder &transcoder)
|
633
|
-
{
|
634
|
-
auto jsObj = jsVal.ToObject();
|
635
|
-
couchbase::operations::replace_request cppObj;
|
636
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
637
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
638
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
639
|
-
js_to_cbpp(cppObj.expiry, jsObj.Get("expiry"));
|
640
|
-
js_to_cbpp(cppObj.cas, jsObj.Get("cas"));
|
641
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
642
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
643
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
644
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
645
|
-
js_to_cbpp(cppObj.preserve_expiry, jsObj.Get("preserve_expiry"));
|
646
|
-
std::tie(cppObj.value, cppObj.flags) =
|
647
|
-
transcoder.encode(jsObj.Get("content"));
|
648
|
-
return cppObj;
|
649
|
-
}
|
650
|
-
};
|
651
|
-
|
652
|
-
template <>
|
653
|
-
struct js_to_cbpp_t<couchbase::operations::replace_response> {
|
654
|
-
static inline Napi::Value
|
655
|
-
to_js(Napi::Env env, const couchbase::operations::replace_response &cppObj)
|
656
|
-
{
|
657
|
-
auto resObj = Napi::Object::New(env);
|
658
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
659
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
660
|
-
return resObj;
|
661
|
-
}
|
662
|
-
};
|
663
|
-
|
664
|
-
template <>
|
665
|
-
struct js_to_cbpp_t<couchbase::operations::remove_request> {
|
666
|
-
static inline couchbase::operations::remove_request
|
667
|
-
from_js(Napi::Value jsVal)
|
668
|
-
{
|
669
|
-
auto jsObj = jsVal.ToObject();
|
670
|
-
couchbase::operations::remove_request cppObj;
|
671
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
672
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
673
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
674
|
-
js_to_cbpp(cppObj.cas, jsObj.Get("cas"));
|
675
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
676
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
677
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
678
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
679
|
-
return cppObj;
|
680
|
-
}
|
681
|
-
};
|
682
|
-
|
683
|
-
template <>
|
684
|
-
struct js_to_cbpp_t<couchbase::operations::remove_response> {
|
685
|
-
static inline Napi::Value
|
686
|
-
to_js(Napi::Env env, const couchbase::operations::remove_response &cppObj)
|
687
|
-
{
|
688
|
-
auto resObj = Napi::Object::New(env);
|
689
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
690
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
691
|
-
return resObj;
|
692
|
-
}
|
693
|
-
};
|
694
|
-
|
695
|
-
template <>
|
696
|
-
struct js_to_cbpp_t<couchbase::operations::touch_request> {
|
697
|
-
static inline couchbase::operations::touch_request
|
698
|
-
from_js(Napi::Value jsVal)
|
699
|
-
{
|
700
|
-
auto jsObj = jsVal.ToObject();
|
701
|
-
couchbase::operations::touch_request cppObj;
|
702
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
703
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
704
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
705
|
-
js_to_cbpp(cppObj.expiry, jsObj.Get("expiry"));
|
706
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
707
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
708
|
-
return cppObj;
|
709
|
-
}
|
710
|
-
};
|
711
|
-
|
712
|
-
template <>
|
713
|
-
struct js_to_cbpp_t<couchbase::operations::touch_response> {
|
714
|
-
static inline Napi::Value
|
715
|
-
to_js(Napi::Env env, const couchbase::operations::touch_response &cppObj)
|
716
|
-
{
|
717
|
-
auto resObj = Napi::Object::New(env);
|
718
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
719
|
-
return resObj;
|
720
|
-
}
|
721
|
-
};
|
722
|
-
|
723
|
-
template <>
|
724
|
-
struct js_to_cbpp_t<couchbase::operations::unlock_request> {
|
725
|
-
static inline couchbase::operations::unlock_request
|
726
|
-
from_js(Napi::Value jsVal)
|
727
|
-
{
|
728
|
-
auto jsObj = jsVal.ToObject();
|
729
|
-
couchbase::operations::unlock_request cppObj;
|
730
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
731
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
732
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
733
|
-
js_to_cbpp(cppObj.cas, jsObj.Get("cas"));
|
734
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
735
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
736
|
-
return cppObj;
|
737
|
-
}
|
738
|
-
};
|
739
|
-
|
740
|
-
template <>
|
741
|
-
struct js_to_cbpp_t<couchbase::operations::unlock_response> {
|
742
|
-
static inline Napi::Value
|
743
|
-
to_js(Napi::Env env, const couchbase::operations::unlock_response &cppObj)
|
744
|
-
{
|
745
|
-
auto resObj = Napi::Object::New(env);
|
746
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
747
|
-
return resObj;
|
748
|
-
}
|
749
|
-
};
|
750
|
-
|
751
|
-
template <>
|
752
|
-
struct js_to_cbpp_t<couchbase::operations::append_request> {
|
753
|
-
static inline couchbase::operations::append_request
|
754
|
-
from_js(Napi::Value jsVal)
|
755
|
-
{
|
756
|
-
auto jsObj = jsVal.ToObject();
|
757
|
-
couchbase::operations::append_request cppObj;
|
758
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
759
|
-
js_to_cbpp(cppObj.value, jsObj.Get("value"));
|
760
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
761
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
762
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
763
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
764
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
765
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
766
|
-
return cppObj;
|
767
|
-
}
|
768
|
-
};
|
769
|
-
|
770
|
-
template <>
|
771
|
-
struct js_to_cbpp_t<couchbase::operations::append_response> {
|
772
|
-
static inline Napi::Value
|
773
|
-
to_js(Napi::Env env, const couchbase::operations::append_response &cppObj)
|
774
|
-
{
|
775
|
-
auto resObj = Napi::Object::New(env);
|
776
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
777
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
778
|
-
return resObj;
|
779
|
-
}
|
780
|
-
};
|
781
|
-
|
782
|
-
template <>
|
783
|
-
struct js_to_cbpp_t<couchbase::operations::prepend_request> {
|
784
|
-
static inline couchbase::operations::prepend_request
|
785
|
-
from_js(Napi::Value jsVal)
|
786
|
-
{
|
787
|
-
auto jsObj = jsVal.ToObject();
|
788
|
-
couchbase::operations::prepend_request cppObj;
|
789
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
790
|
-
js_to_cbpp(cppObj.value, jsObj.Get("value"));
|
791
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
792
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
793
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
794
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
795
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
796
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
797
|
-
return cppObj;
|
798
|
-
}
|
799
|
-
};
|
800
|
-
|
801
|
-
template <>
|
802
|
-
struct js_to_cbpp_t<couchbase::operations::prepend_response> {
|
803
|
-
static inline Napi::Value
|
804
|
-
to_js(Napi::Env env, const couchbase::operations::prepend_response &cppObj)
|
805
|
-
{
|
806
|
-
auto resObj = Napi::Object::New(env);
|
807
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
808
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
809
|
-
return resObj;
|
810
|
-
}
|
811
|
-
};
|
812
|
-
|
813
|
-
template <>
|
814
|
-
struct js_to_cbpp_t<couchbase::operations::increment_request> {
|
815
|
-
static inline couchbase::operations::increment_request
|
816
|
-
from_js(Napi::Value jsVal)
|
817
|
-
{
|
818
|
-
auto jsObj = jsVal.ToObject();
|
819
|
-
couchbase::operations::increment_request cppObj;
|
820
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
821
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
822
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
823
|
-
js_to_cbpp(cppObj.expiry, jsObj.Get("expiry"));
|
824
|
-
js_to_cbpp(cppObj.delta, jsObj.Get("delta"));
|
825
|
-
js_to_cbpp(cppObj.initial_value, jsObj.Get("initial_value"));
|
826
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
827
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
828
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
829
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
830
|
-
js_to_cbpp(cppObj.preserve_expiry, jsObj.Get("preserve_expiry"));
|
831
|
-
return cppObj;
|
832
|
-
}
|
833
|
-
};
|
834
|
-
|
835
|
-
template <>
|
836
|
-
struct js_to_cbpp_t<couchbase::operations::increment_response> {
|
837
|
-
static inline Napi::Value
|
838
|
-
to_js(Napi::Env env,
|
839
|
-
const couchbase::operations::increment_response &cppObj)
|
840
|
-
{
|
841
|
-
auto resObj = Napi::Object::New(env);
|
842
|
-
resObj.Set("content", cbpp_to_js(env, cppObj.content));
|
843
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
844
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
845
|
-
return resObj;
|
846
|
-
}
|
847
|
-
};
|
848
|
-
|
849
|
-
template <>
|
850
|
-
struct js_to_cbpp_t<couchbase::operations::decrement_request> {
|
851
|
-
static inline couchbase::operations::decrement_request
|
852
|
-
from_js(Napi::Value jsVal)
|
853
|
-
{
|
854
|
-
auto jsObj = jsVal.ToObject();
|
855
|
-
couchbase::operations::decrement_request cppObj;
|
856
|
-
cppObj.id = js_to_cbpp<couchbase::document_id>(jsObj.Get("id"));
|
857
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
858
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
859
|
-
js_to_cbpp(cppObj.expiry, jsObj.Get("expiry"));
|
860
|
-
js_to_cbpp(cppObj.delta, jsObj.Get("delta"));
|
861
|
-
js_to_cbpp(cppObj.initial_value, jsObj.Get("initial_value"));
|
862
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
863
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
864
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
865
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
866
|
-
js_to_cbpp(cppObj.preserve_expiry, jsObj.Get("preserve_expiry"));
|
867
|
-
return cppObj;
|
868
|
-
}
|
869
|
-
};
|
870
|
-
|
871
|
-
template <>
|
872
|
-
struct js_to_cbpp_t<couchbase::operations::decrement_response> {
|
873
|
-
static inline Napi::Value
|
874
|
-
to_js(Napi::Env env,
|
875
|
-
const couchbase::operations::decrement_response &cppObj)
|
876
|
-
{
|
877
|
-
auto resObj = Napi::Object::New(env);
|
878
|
-
resObj.Set("content", cbpp_to_js(env, cppObj.content));
|
879
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
880
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
881
|
-
return resObj;
|
882
|
-
}
|
883
|
-
};
|
884
|
-
|
885
|
-
template <>
|
886
|
-
struct js_to_cbpp_t<
|
887
|
-
couchbase::protocol::lookup_in_request_body::lookup_in_specs::entry> {
|
888
|
-
static inline couchbase::protocol::lookup_in_request_body::lookup_in_specs::
|
889
|
-
entry
|
890
|
-
from_js(Napi::Value jsVal)
|
891
|
-
{
|
892
|
-
auto jsObj = jsVal.ToObject();
|
893
|
-
couchbase::protocol::lookup_in_request_body::lookup_in_specs::entry
|
894
|
-
cppObj;
|
895
|
-
js_to_cbpp(cppObj.opcode, jsObj.Get("opcode"));
|
896
|
-
js_to_cbpp(cppObj.flags, jsObj.Get("flags"));
|
897
|
-
js_to_cbpp(cppObj.path, jsObj.Get("path"));
|
898
|
-
return cppObj;
|
899
|
-
}
|
900
|
-
};
|
901
|
-
|
902
|
-
template <>
|
903
|
-
struct js_to_cbpp_t<
|
904
|
-
couchbase::protocol::lookup_in_request_body::lookup_in_specs> {
|
905
|
-
static inline couchbase::protocol::lookup_in_request_body::lookup_in_specs
|
906
|
-
from_js(Napi::Value jsVal)
|
907
|
-
{
|
908
|
-
// we just forward the array to our std::vector handler
|
909
|
-
couchbase::protocol::lookup_in_request_body::lookup_in_specs cppObj;
|
910
|
-
js_to_cbpp(cppObj.entries, jsVal);
|
911
|
-
return cppObj;
|
912
|
-
}
|
913
|
-
};
|
914
|
-
|
915
|
-
template <>
|
916
|
-
struct js_to_cbpp_t<couchbase::operations::lookup_in_request> {
|
917
|
-
static inline couchbase::operations::lookup_in_request
|
918
|
-
from_js(Napi::Value jsVal)
|
919
|
-
{
|
920
|
-
auto jsObj = jsVal.ToObject();
|
921
|
-
couchbase::operations::lookup_in_request cppObj;
|
922
|
-
js_to_cbpp(cppObj.id, jsObj.Get("id"));
|
923
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
924
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
925
|
-
js_to_cbpp(cppObj.access_deleted, jsObj.Get("access_deleted"));
|
926
|
-
js_to_cbpp(cppObj.specs, jsObj.Get("specs"));
|
927
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
928
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
929
|
-
return cppObj;
|
930
|
-
}
|
931
|
-
};
|
932
|
-
|
933
|
-
template <>
|
934
|
-
struct js_to_cbpp_t<couchbase::operations::lookup_in_response::field> {
|
935
|
-
static inline Napi::Value
|
936
|
-
to_js(Napi::Env env,
|
937
|
-
const couchbase::operations::lookup_in_response::field &cppObj)
|
938
|
-
{
|
939
|
-
auto resObj = Napi::Object::New(env);
|
940
|
-
resObj.Set("error", cbpp_to_js(env, cppObj.ec));
|
941
|
-
resObj.Set("opcode", cbpp_to_js(env, cppObj.opcode));
|
942
|
-
resObj.Set("exists", cbpp_to_js(env, cppObj.exists));
|
943
|
-
resObj.Set("status", cbpp_to_js(env, cppObj.status));
|
944
|
-
resObj.Set("path", cbpp_to_js(env, cppObj.path));
|
945
|
-
resObj.Set("value", cbpp_to_js(env, cppObj.value));
|
946
|
-
resObj.Set("original_index", cbpp_to_js(env, cppObj.original_index));
|
947
|
-
return resObj;
|
948
|
-
}
|
949
|
-
};
|
950
|
-
|
951
|
-
template <>
|
952
|
-
struct js_to_cbpp_t<couchbase::operations::lookup_in_response> {
|
953
|
-
static inline Napi::Value
|
954
|
-
to_js(Napi::Env env,
|
955
|
-
const couchbase::operations::lookup_in_response &cppObj)
|
956
|
-
{
|
957
|
-
auto resObj = Napi::Object::New(env);
|
958
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
959
|
-
resObj.Set("fields", cbpp_to_js(env, cppObj.fields));
|
960
|
-
resObj.Set("deleted", cbpp_to_js(env, cppObj.deleted));
|
961
|
-
return resObj;
|
962
|
-
}
|
963
|
-
};
|
964
|
-
|
965
|
-
template <>
|
966
|
-
struct js_to_cbpp_t<
|
967
|
-
couchbase::protocol::mutate_in_request_body::mutate_in_specs::entry> {
|
968
|
-
static inline couchbase::protocol::mutate_in_request_body::mutate_in_specs::
|
969
|
-
entry
|
970
|
-
from_js(Napi::Value jsVal)
|
971
|
-
{
|
972
|
-
auto jsObj = jsVal.ToObject();
|
973
|
-
couchbase::protocol::mutate_in_request_body::mutate_in_specs::entry
|
974
|
-
cppObj;
|
975
|
-
js_to_cbpp(cppObj.opcode, jsObj.Get("opcode"));
|
976
|
-
js_to_cbpp(cppObj.flags, jsObj.Get("flags"));
|
977
|
-
js_to_cbpp(cppObj.path, jsObj.Get("path"));
|
978
|
-
js_to_cbpp(cppObj.param, jsObj.Get("param"));
|
979
|
-
return cppObj;
|
980
|
-
}
|
981
|
-
};
|
982
|
-
|
983
|
-
template <>
|
984
|
-
struct js_to_cbpp_t<
|
985
|
-
couchbase::protocol::mutate_in_request_body::mutate_in_specs> {
|
986
|
-
static inline couchbase::protocol::mutate_in_request_body::mutate_in_specs
|
987
|
-
from_js(Napi::Value jsVal)
|
988
|
-
{
|
989
|
-
// we just forward the array to our std::vector handler
|
990
|
-
couchbase::protocol::mutate_in_request_body::mutate_in_specs cppObj;
|
991
|
-
js_to_cbpp(cppObj.entries, jsVal);
|
992
|
-
return cppObj;
|
993
|
-
}
|
994
|
-
};
|
995
|
-
|
996
|
-
template <>
|
997
|
-
struct js_to_cbpp_t<couchbase::operations::mutate_in_request> {
|
998
|
-
static inline couchbase::operations::mutate_in_request
|
999
|
-
from_js(Napi::Value jsVal)
|
1000
|
-
{
|
1001
|
-
auto jsObj = jsVal.ToObject();
|
1002
|
-
couchbase::operations::mutate_in_request cppObj;
|
1003
|
-
js_to_cbpp(cppObj.id, jsObj.Get("id"));
|
1004
|
-
// js_to_cbpp(cppObj.partition, jsObj.Get("partition"));
|
1005
|
-
// js_to_cbpp(cppObj.opaque, jsObj.Get("opaque"));
|
1006
|
-
js_to_cbpp(cppObj.cas, jsObj.Get("cas"));
|
1007
|
-
js_to_cbpp(cppObj.access_deleted, jsObj.Get("access_deleted"));
|
1008
|
-
js_to_cbpp(cppObj.create_as_deleted, jsObj.Get("create_as_deleted"));
|
1009
|
-
js_to_cbpp(cppObj.expiry, jsObj.Get("expiry"));
|
1010
|
-
js_to_cbpp(cppObj.store_semantics, jsObj.Get("store_semantics"));
|
1011
|
-
js_to_cbpp(cppObj.specs, jsObj.Get("specs"));
|
1012
|
-
js_to_cbpp(cppObj.durability_level, jsObj.Get("durability_level"));
|
1013
|
-
js_to_cbpp(cppObj.durability_timeout, jsObj.Get("durability_timeout"));
|
1014
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
1015
|
-
// js_to_cbpp(cppObj.retries, jsObj.Get("retries"));
|
1016
|
-
js_to_cbpp(cppObj.preserve_expiry, jsObj.Get("preserve_expiry"));
|
1017
|
-
return cppObj;
|
1018
|
-
}
|
1019
|
-
};
|
1020
|
-
|
1021
|
-
template <>
|
1022
|
-
struct js_to_cbpp_t<couchbase::operations::mutate_in_response::field> {
|
1023
|
-
static inline Napi::Value
|
1024
|
-
to_js(Napi::Env env,
|
1025
|
-
const couchbase::operations::mutate_in_response::field &cppObj)
|
1026
|
-
{
|
1027
|
-
auto resObj = Napi::Object::New(env);
|
1028
|
-
resObj.Set("error", cbpp_to_js(env, cppObj.ec));
|
1029
|
-
resObj.Set("opcode", cbpp_to_js(env, cppObj.opcode));
|
1030
|
-
resObj.Set("status", cbpp_to_js(env, cppObj.status));
|
1031
|
-
resObj.Set("path", cbpp_to_js(env, cppObj.path));
|
1032
|
-
resObj.Set("value", cbpp_to_js(env, cppObj.value));
|
1033
|
-
resObj.Set("original_index", cbpp_to_js(env, cppObj.original_index));
|
1034
|
-
return resObj;
|
1035
|
-
}
|
1036
|
-
};
|
1037
|
-
|
1038
|
-
template <>
|
1039
|
-
struct js_to_cbpp_t<couchbase::operations::mutate_in_response> {
|
1040
|
-
static inline Napi::Value
|
1041
|
-
to_js(Napi::Env env,
|
1042
|
-
const couchbase::operations::mutate_in_response &cppObj)
|
1043
|
-
{
|
1044
|
-
auto resObj = Napi::Object::New(env);
|
1045
|
-
resObj.Set("cas", cbpp_to_js(env, cppObj.cas));
|
1046
|
-
resObj.Set("token", cbpp_to_js(env, cppObj.token));
|
1047
|
-
resObj.Set("fields", cbpp_to_js(env, cppObj.fields));
|
1048
|
-
resObj.Set("first_error_index",
|
1049
|
-
cbpp_to_js(env, cppObj.first_error_index));
|
1050
|
-
resObj.Set("deleted", cbpp_to_js(env, cppObj.deleted));
|
1051
|
-
return resObj;
|
1052
|
-
}
|
1053
|
-
};
|
1054
|
-
|
1055
|
-
template <>
|
1056
|
-
struct js_to_cbpp_t<couchbase::operations::document_view_request> {
|
1057
|
-
static inline couchbase::operations::document_view_request
|
1058
|
-
from_js(Napi::Value jsVal)
|
1059
|
-
{
|
1060
|
-
auto jsObj = jsVal.ToObject();
|
1061
|
-
couchbase::operations::document_view_request cppObj;
|
1062
|
-
js_to_cbpp(cppObj.client_context_id, jsObj.Get("client_context_id"));
|
1063
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
1064
|
-
js_to_cbpp(cppObj.bucket_name, jsObj.Get("bucket_name"));
|
1065
|
-
js_to_cbpp(cppObj.document_name, jsObj.Get("document_name"));
|
1066
|
-
js_to_cbpp(cppObj.view_name, jsObj.Get("view_name"));
|
1067
|
-
js_to_cbpp(cppObj.name_space, jsObj.Get("name_space"));
|
1068
|
-
js_to_cbpp(cppObj.limit, jsObj.Get("limit"));
|
1069
|
-
js_to_cbpp(cppObj.skip, jsObj.Get("skip"));
|
1070
|
-
js_to_cbpp(cppObj.consistency, jsObj.Get("consistency"));
|
1071
|
-
js_to_cbpp(cppObj.keys, jsObj.Get("keys"));
|
1072
|
-
js_to_cbpp(cppObj.key, jsObj.Get("key"));
|
1073
|
-
js_to_cbpp(cppObj.start_key, jsObj.Get("start_key"));
|
1074
|
-
js_to_cbpp(cppObj.end_key, jsObj.Get("end_key"));
|
1075
|
-
js_to_cbpp(cppObj.start_key_doc_id, jsObj.Get("start_key_doc_id"));
|
1076
|
-
js_to_cbpp(cppObj.end_key_doc_id, jsObj.Get("end_key_doc_id"));
|
1077
|
-
js_to_cbpp(cppObj.inclusive_end, jsObj.Get("inclusive_end"));
|
1078
|
-
js_to_cbpp(cppObj.reduce, jsObj.Get("reduce"));
|
1079
|
-
js_to_cbpp(cppObj.group, jsObj.Get("group"));
|
1080
|
-
js_to_cbpp(cppObj.group_level, jsObj.Get("group_level"));
|
1081
|
-
js_to_cbpp(cppObj.debug, jsObj.Get("debug"));
|
1082
|
-
js_to_cbpp(cppObj.order, jsObj.Get("order"));
|
1083
|
-
js_to_cbpp(cppObj.query_string, jsObj.Get("query_string"));
|
1084
|
-
return cppObj;
|
1085
|
-
}
|
1086
|
-
};
|
1087
|
-
|
1088
|
-
template <>
|
1089
|
-
struct js_to_cbpp_t<couchbase::operations::document_view_response::meta_data> {
|
1090
|
-
static inline Napi::Value to_js(
|
1091
|
-
Napi::Env env,
|
1092
|
-
const couchbase::operations::document_view_response::meta_data &cppObj)
|
1093
|
-
{
|
1094
|
-
auto resObj = Napi::Object::New(env);
|
1095
|
-
resObj.Set("total_rows", cbpp_to_js(env, cppObj.total_rows));
|
1096
|
-
resObj.Set("debug_info", cbpp_to_js(env, cppObj.debug_info));
|
1097
|
-
return resObj;
|
1098
|
-
}
|
1099
|
-
};
|
1100
|
-
|
1101
|
-
template <>
|
1102
|
-
struct js_to_cbpp_t<couchbase::operations::document_view_response::row> {
|
1103
|
-
static inline Napi::Value
|
1104
|
-
to_js(Napi::Env env,
|
1105
|
-
const couchbase::operations::document_view_response::row &cppObj)
|
1106
|
-
{
|
1107
|
-
auto resObj = Napi::Object::New(env);
|
1108
|
-
resObj.Set("id", cbpp_to_js(env, cppObj.id));
|
1109
|
-
resObj.Set("key", cbpp_to_js(env, cppObj.key));
|
1110
|
-
resObj.Set("value", cbpp_to_js(env, cppObj.value));
|
1111
|
-
return resObj;
|
1112
|
-
}
|
1113
|
-
};
|
1114
|
-
|
1115
|
-
template <>
|
1116
|
-
struct js_to_cbpp_t<couchbase::operations::document_view_response> {
|
1117
|
-
static inline Napi::Value
|
1118
|
-
to_js(Napi::Env env,
|
1119
|
-
const couchbase::operations::document_view_response &cppObj)
|
1120
|
-
{
|
1121
|
-
auto resObj = Napi::Object::New(env);
|
1122
|
-
resObj.Set("meta", cbpp_to_js(env, cppObj.meta));
|
1123
|
-
resObj.Set("rows", cbpp_to_js(env, cppObj.rows));
|
1124
|
-
return resObj;
|
1125
|
-
}
|
1126
|
-
};
|
1127
|
-
|
1128
|
-
template <>
|
1129
|
-
struct js_to_cbpp_t<couchbase::operations::query_request> {
|
1130
|
-
static inline couchbase::operations::query_request
|
1131
|
-
from_js(Napi::Value jsVal)
|
1132
|
-
{
|
1133
|
-
auto jsObj = jsVal.ToObject();
|
1134
|
-
couchbase::operations::query_request cppObj;
|
1135
|
-
js_to_cbpp(cppObj.statement, jsObj.Get("statement"));
|
1136
|
-
js_to_cbpp(cppObj.client_context_id, jsObj.Get("client_context_id"));
|
1137
|
-
js_to_cbpp(cppObj.adhoc, jsObj.Get("adhoc"));
|
1138
|
-
js_to_cbpp(cppObj.metrics, jsObj.Get("metrics"));
|
1139
|
-
js_to_cbpp(cppObj.readonly, jsObj.Get("readonly"));
|
1140
|
-
js_to_cbpp(cppObj.flex_index, jsObj.Get("flex_index"));
|
1141
|
-
js_to_cbpp(cppObj.preserve_expiry, jsObj.Get("preserve_expiry"));
|
1142
|
-
js_to_cbpp(cppObj.max_parallelism, jsObj.Get("max_parallelism"));
|
1143
|
-
js_to_cbpp(cppObj.scan_cap, jsObj.Get("scan_cap"));
|
1144
|
-
js_to_cbpp(cppObj.scan_wait, jsObj.Get("scan_wait"));
|
1145
|
-
js_to_cbpp(cppObj.pipeline_batch, jsObj.Get("pipeline_batch"));
|
1146
|
-
js_to_cbpp(cppObj.pipeline_cap, jsObj.Get("pipeline_cap"));
|
1147
|
-
js_to_cbpp(cppObj.scan_consistency, jsObj.Get("scan_consistency"));
|
1148
|
-
js_to_cbpp(cppObj.mutation_state, jsObj.Get("mutation_state"));
|
1149
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
1150
|
-
js_to_cbpp(cppObj.bucket_name, jsObj.Get("bucket_name"));
|
1151
|
-
js_to_cbpp(cppObj.scope_name, jsObj.Get("scope_name"));
|
1152
|
-
js_to_cbpp(cppObj.scope_qualifier, jsObj.Get("scope_qualifier"));
|
1153
|
-
js_to_cbpp(cppObj.profile, jsObj.Get("profile"));
|
1154
|
-
js_to_cbpp(cppObj.raw, jsObj.Get("raw"));
|
1155
|
-
js_to_cbpp(cppObj.positional_parameters,
|
1156
|
-
jsObj.Get("positional_parameters"));
|
1157
|
-
js_to_cbpp(cppObj.named_parameters, jsObj.Get("named_parameters"));
|
1158
|
-
return cppObj;
|
1159
|
-
}
|
1160
|
-
};
|
1161
|
-
|
1162
|
-
template <>
|
1163
|
-
struct js_to_cbpp_t<couchbase::operations::query_response::query_metrics> {
|
1164
|
-
static inline Napi::Value
|
1165
|
-
to_js(Napi::Env env,
|
1166
|
-
const couchbase::operations::query_response::query_metrics &cppObj)
|
1167
|
-
{
|
1168
|
-
auto resObj = Napi::Object::New(env);
|
1169
|
-
resObj.Set("elapsed_time", cbpp_to_js(env, cppObj.elapsed_time));
|
1170
|
-
resObj.Set("execution_time", cbpp_to_js(env, cppObj.execution_time));
|
1171
|
-
resObj.Set("result_count", cbpp_to_js(env, cppObj.result_count));
|
1172
|
-
resObj.Set("result_size", cbpp_to_js(env, cppObj.result_size));
|
1173
|
-
resObj.Set("sort_count", cbpp_to_js(env, cppObj.sort_count));
|
1174
|
-
resObj.Set("mutation_count", cbpp_to_js(env, cppObj.mutation_count));
|
1175
|
-
resObj.Set("error_count", cbpp_to_js(env, cppObj.error_count));
|
1176
|
-
resObj.Set("warning_count", cbpp_to_js(env, cppObj.warning_count));
|
1177
|
-
return resObj;
|
1178
|
-
}
|
1179
|
-
};
|
1180
|
-
|
1181
|
-
template <>
|
1182
|
-
struct js_to_cbpp_t<couchbase::operations::query_response::query_problem> {
|
1183
|
-
static inline Napi::Value
|
1184
|
-
to_js(Napi::Env env,
|
1185
|
-
const couchbase::operations::query_response::query_problem &cppObj)
|
1186
|
-
{
|
1187
|
-
auto resObj = Napi::Object::New(env);
|
1188
|
-
resObj.Set("code", cbpp_to_js(env, cppObj.code));
|
1189
|
-
resObj.Set("message", cbpp_to_js(env, cppObj.message));
|
1190
|
-
return resObj;
|
1191
|
-
}
|
1192
|
-
};
|
1193
|
-
|
1194
|
-
template <>
|
1195
|
-
struct js_to_cbpp_t<couchbase::operations::query_response::query_meta_data> {
|
1196
|
-
static inline Napi::Value
|
1197
|
-
to_js(Napi::Env env,
|
1198
|
-
const couchbase::operations::query_response::query_meta_data &cppObj)
|
1199
|
-
{
|
1200
|
-
auto resObj = Napi::Object::New(env);
|
1201
|
-
resObj.Set("request_id", cbpp_to_js(env, cppObj.request_id));
|
1202
|
-
resObj.Set("client_context_id",
|
1203
|
-
cbpp_to_js(env, cppObj.client_context_id));
|
1204
|
-
resObj.Set("status", cbpp_to_js(env, cppObj.status));
|
1205
|
-
resObj.Set("metrics", cbpp_to_js(env, cppObj.metrics));
|
1206
|
-
resObj.Set("signature", cbpp_to_js(env, cppObj.signature));
|
1207
|
-
resObj.Set("profile", cbpp_to_js(env, cppObj.profile));
|
1208
|
-
resObj.Set("warnings", cbpp_to_js(env, cppObj.warnings));
|
1209
|
-
return resObj;
|
1210
|
-
}
|
1211
|
-
};
|
1212
|
-
|
1213
|
-
template <>
|
1214
|
-
struct js_to_cbpp_t<couchbase::operations::query_response> {
|
1215
|
-
static inline Napi::Value
|
1216
|
-
to_js(Napi::Env env, const couchbase::operations::query_response &cppObj)
|
1217
|
-
{
|
1218
|
-
auto resObj = Napi::Object::New(env);
|
1219
|
-
resObj.Set("meta", cbpp_to_js(env, cppObj.meta));
|
1220
|
-
resObj.Set("prepared", cbpp_to_js(env, cppObj.prepared));
|
1221
|
-
resObj.Set("rows", cbpp_to_js(env, cppObj.rows));
|
1222
|
-
return resObj;
|
1223
|
-
}
|
1224
|
-
};
|
1225
|
-
|
1226
|
-
template <>
|
1227
|
-
struct js_to_cbpp_t<couchbase::operations::analytics_request> {
|
1228
|
-
static inline couchbase::operations::analytics_request
|
1229
|
-
from_js(Napi::Value jsVal)
|
1230
|
-
{
|
1231
|
-
auto jsObj = jsVal.ToObject();
|
1232
|
-
couchbase::operations::analytics_request cppObj;
|
1233
|
-
js_to_cbpp(cppObj.statement, jsObj.Get("statement"));
|
1234
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
1235
|
-
js_to_cbpp(cppObj.client_context_id, jsObj.Get("client_context_id"));
|
1236
|
-
js_to_cbpp(cppObj.readonly, jsObj.Get("readonly"));
|
1237
|
-
js_to_cbpp(cppObj.priority, jsObj.Get("priority"));
|
1238
|
-
js_to_cbpp(cppObj.bucket_name, jsObj.Get("bucket_name"));
|
1239
|
-
js_to_cbpp(cppObj.scope_name, jsObj.Get("scope_name"));
|
1240
|
-
js_to_cbpp(cppObj.scope_qualifier, jsObj.Get("scope_qualifier"));
|
1241
|
-
js_to_cbpp(cppObj.scan_consistency, jsObj.Get("scan_consistency"));
|
1242
|
-
js_to_cbpp(cppObj.raw, jsObj.Get("raw"));
|
1243
|
-
js_to_cbpp(cppObj.positional_parameters,
|
1244
|
-
jsObj.Get("positional_parameters"));
|
1245
|
-
js_to_cbpp(cppObj.named_parameters, jsObj.Get("named_parameters"));
|
1246
|
-
return cppObj;
|
1247
|
-
}
|
1248
|
-
};
|
1249
|
-
|
1250
|
-
template <>
|
1251
|
-
struct js_to_cbpp_t<
|
1252
|
-
couchbase::operations::analytics_response::analytics_metrics> {
|
1253
|
-
static inline Napi::Value
|
1254
|
-
to_js(Napi::Env env,
|
1255
|
-
const couchbase::operations::analytics_response::analytics_metrics
|
1256
|
-
&cppObj)
|
1257
|
-
{
|
1258
|
-
auto resObj = Napi::Object::New(env);
|
1259
|
-
resObj.Set("elapsed_time", cbpp_to_js(env, cppObj.elapsed_time));
|
1260
|
-
resObj.Set("execution_time", cbpp_to_js(env, cppObj.execution_time));
|
1261
|
-
resObj.Set("result_count", cbpp_to_js(env, cppObj.result_count));
|
1262
|
-
resObj.Set("result_size", cbpp_to_js(env, cppObj.result_size));
|
1263
|
-
resObj.Set("error_count", cbpp_to_js(env, cppObj.error_count));
|
1264
|
-
resObj.Set("processed_objects",
|
1265
|
-
cbpp_to_js(env, cppObj.processed_objects));
|
1266
|
-
resObj.Set("warning_count", cbpp_to_js(env, cppObj.warning_count));
|
1267
|
-
return resObj;
|
1268
|
-
}
|
1269
|
-
};
|
1270
|
-
|
1271
|
-
template <>
|
1272
|
-
struct js_to_cbpp_t<
|
1273
|
-
couchbase::operations::analytics_response::analytics_problem> {
|
1274
|
-
static inline Napi::Value
|
1275
|
-
to_js(Napi::Env env,
|
1276
|
-
const couchbase::operations::analytics_response::analytics_problem
|
1277
|
-
&cppObj)
|
1278
|
-
{
|
1279
|
-
auto resObj = Napi::Object::New(env);
|
1280
|
-
resObj.Set("code", cbpp_to_js(env, cppObj.code));
|
1281
|
-
resObj.Set("message", cbpp_to_js(env, cppObj.message));
|
1282
|
-
return resObj;
|
1283
|
-
}
|
1284
|
-
};
|
1285
|
-
|
1286
|
-
template <>
|
1287
|
-
struct js_to_cbpp_t<
|
1288
|
-
couchbase::operations::analytics_response::analytics_meta_data> {
|
1289
|
-
static inline Napi::Value
|
1290
|
-
to_js(Napi::Env env,
|
1291
|
-
const couchbase::operations::analytics_response::analytics_meta_data
|
1292
|
-
&cppObj)
|
1293
|
-
{
|
1294
|
-
auto resObj = Napi::Object::New(env);
|
1295
|
-
resObj.Set("request_id", cbpp_to_js(env, cppObj.request_id));
|
1296
|
-
resObj.Set("client_context_id",
|
1297
|
-
cbpp_to_js(env, cppObj.client_context_id));
|
1298
|
-
resObj.Set("status", cbpp_to_js(env, cppObj.status));
|
1299
|
-
resObj.Set("metrics", cbpp_to_js(env, cppObj.metrics));
|
1300
|
-
resObj.Set("signature", cbpp_to_js(env, cppObj.signature));
|
1301
|
-
resObj.Set("warnings", cbpp_to_js(env, cppObj.warnings));
|
1302
|
-
return resObj;
|
1303
|
-
}
|
1304
|
-
};
|
1305
|
-
|
1306
|
-
template <>
|
1307
|
-
struct js_to_cbpp_t<couchbase::operations::analytics_response> {
|
1308
|
-
static inline Napi::Value
|
1309
|
-
to_js(Napi::Env env,
|
1310
|
-
const couchbase::operations::analytics_response &cppObj)
|
1311
|
-
{
|
1312
|
-
auto resObj = Napi::Object::New(env);
|
1313
|
-
resObj.Set("meta", cbpp_to_js(env, cppObj.meta));
|
1314
|
-
resObj.Set("rows", cbpp_to_js(env, cppObj.rows));
|
1315
|
-
return resObj;
|
1316
|
-
}
|
1317
|
-
};
|
1318
|
-
|
1319
|
-
template <>
|
1320
|
-
struct js_to_cbpp_t<couchbase::operations::search_request> {
|
1321
|
-
static inline couchbase::operations::search_request
|
1322
|
-
from_js(Napi::Value jsVal)
|
1323
|
-
{
|
1324
|
-
auto jsObj = jsVal.ToObject();
|
1325
|
-
couchbase::operations::search_request cppObj;
|
1326
|
-
js_to_cbpp(cppObj.client_context_id, jsObj.Get("client_context_id"));
|
1327
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
1328
|
-
js_to_cbpp(cppObj.index_name, jsObj.Get("index_name"));
|
1329
|
-
js_to_cbpp(cppObj.query, jsObj.Get("query"));
|
1330
|
-
js_to_cbpp(cppObj.limit, jsObj.Get("limit"));
|
1331
|
-
js_to_cbpp(cppObj.skip, jsObj.Get("skip"));
|
1332
|
-
js_to_cbpp(cppObj.explain, jsObj.Get("explain"));
|
1333
|
-
js_to_cbpp(cppObj.disable_scoring, jsObj.Get("disable_scoring"));
|
1334
|
-
js_to_cbpp(cppObj.include_locations, jsObj.Get("include_locations"));
|
1335
|
-
js_to_cbpp(cppObj.highlight_style, jsObj.Get("highlight_style"));
|
1336
|
-
js_to_cbpp(cppObj.highlight_fields, jsObj.Get("highlight_fields"));
|
1337
|
-
js_to_cbpp(cppObj.fields, jsObj.Get("fields"));
|
1338
|
-
js_to_cbpp(cppObj.scope_name, jsObj.Get("scope_name"));
|
1339
|
-
js_to_cbpp(cppObj.collections, jsObj.Get("collections"));
|
1340
|
-
js_to_cbpp(cppObj.scan_consistency, jsObj.Get("scan_consistency"));
|
1341
|
-
js_to_cbpp(cppObj.mutation_state, jsObj.Get("mutation_state"));
|
1342
|
-
js_to_cbpp(cppObj.sort_specs, jsObj.Get("sort_specs"));
|
1343
|
-
js_to_cbpp(cppObj.facets, jsObj.Get("facets"));
|
1344
|
-
js_to_cbpp(cppObj.raw, jsObj.Get("raw"));
|
1345
|
-
return cppObj;
|
1346
|
-
}
|
1347
|
-
};
|
1348
|
-
|
1349
|
-
template <>
|
1350
|
-
struct js_to_cbpp_t<couchbase::operations::search_response::search_metrics> {
|
1351
|
-
static inline Napi::Value
|
1352
|
-
to_js(Napi::Env env,
|
1353
|
-
const couchbase::operations::search_response::search_metrics &cppObj)
|
1354
|
-
{
|
1355
|
-
auto resObj = Napi::Object::New(env);
|
1356
|
-
resObj.Set("took", cbpp_to_js(env, cppObj.took));
|
1357
|
-
resObj.Set("max_score", cbpp_to_js(env, cppObj.max_score));
|
1358
|
-
resObj.Set("success_partition_count",
|
1359
|
-
cbpp_to_js(env, cppObj.success_partition_count));
|
1360
|
-
resObj.Set("error_partition_count",
|
1361
|
-
cbpp_to_js(env, cppObj.error_partition_count));
|
1362
|
-
return resObj;
|
1363
|
-
}
|
1364
|
-
};
|
1365
|
-
|
1366
|
-
template <>
|
1367
|
-
struct js_to_cbpp_t<couchbase::operations::search_response::search_meta_data> {
|
1368
|
-
static inline Napi::Value to_js(
|
1369
|
-
Napi::Env env,
|
1370
|
-
const couchbase::operations::search_response::search_meta_data &cppObj)
|
1371
|
-
{
|
1372
|
-
auto resObj = Napi::Object::New(env);
|
1373
|
-
resObj.Set("client_context_id",
|
1374
|
-
cbpp_to_js(env, cppObj.client_context_id));
|
1375
|
-
resObj.Set("metrics", cbpp_to_js(env, cppObj.metrics));
|
1376
|
-
return resObj;
|
1377
|
-
}
|
1378
|
-
};
|
1379
|
-
|
1380
|
-
template <>
|
1381
|
-
struct js_to_cbpp_t<couchbase::operations::search_response::search_location> {
|
1382
|
-
static inline Napi::Value
|
1383
|
-
to_js(Napi::Env env,
|
1384
|
-
const couchbase::operations::search_response::search_location &cppObj)
|
1385
|
-
{
|
1386
|
-
auto resObj = Napi::Object::New(env);
|
1387
|
-
resObj.Set("field", cbpp_to_js(env, cppObj.field));
|
1388
|
-
resObj.Set("term", cbpp_to_js(env, cppObj.term));
|
1389
|
-
resObj.Set("position", cbpp_to_js(env, cppObj.position));
|
1390
|
-
resObj.Set("start_offset", cbpp_to_js(env, cppObj.start_offset));
|
1391
|
-
resObj.Set("end_offset", cbpp_to_js(env, cppObj.end_offset));
|
1392
|
-
resObj.Set("array_positions", cbpp_to_js(env, cppObj.array_positions));
|
1393
|
-
return resObj;
|
1394
|
-
}
|
1395
|
-
};
|
1396
|
-
|
1397
|
-
template <>
|
1398
|
-
struct js_to_cbpp_t<couchbase::operations::search_response::search_row> {
|
1399
|
-
static inline Napi::Value
|
1400
|
-
to_js(Napi::Env env,
|
1401
|
-
const couchbase::operations::search_response::search_row &cppObj)
|
1402
|
-
{
|
1403
|
-
auto resObj = Napi::Object::New(env);
|
1404
|
-
resObj.Set("index", cbpp_to_js(env, cppObj.index));
|
1405
|
-
resObj.Set("id", cbpp_to_js(env, cppObj.id));
|
1406
|
-
resObj.Set("score", cbpp_to_js(env, cppObj.score));
|
1407
|
-
resObj.Set("locations", cbpp_to_js(env, cppObj.locations));
|
1408
|
-
resObj.Set("fragments", cbpp_to_js(env, cppObj.fragments));
|
1409
|
-
resObj.Set("fields", cbpp_to_js(env, cppObj.fields));
|
1410
|
-
resObj.Set("explanation", cbpp_to_js(env, cppObj.explanation));
|
1411
|
-
return resObj;
|
1412
|
-
}
|
1413
|
-
};
|
1414
|
-
|
1415
|
-
template <>
|
1416
|
-
struct js_to_cbpp_t<
|
1417
|
-
couchbase::operations::search_response::search_facet::term_facet> {
|
1418
|
-
static inline Napi::Value
|
1419
|
-
to_js(Napi::Env env,
|
1420
|
-
const couchbase::operations::search_response::search_facet::term_facet
|
1421
|
-
&cppObj)
|
1422
|
-
{
|
1423
|
-
auto resObj = Napi::Object::New(env);
|
1424
|
-
resObj.Set("term", cbpp_to_js(env, cppObj.term));
|
1425
|
-
resObj.Set("count", cbpp_to_js(env, cppObj.count));
|
1426
|
-
return resObj;
|
1427
|
-
}
|
1428
|
-
};
|
1429
|
-
|
1430
|
-
template <>
|
1431
|
-
struct js_to_cbpp_t<
|
1432
|
-
couchbase::operations::search_response::search_facet::date_range_facet> {
|
1433
|
-
static inline Napi::Value
|
1434
|
-
to_js(Napi::Env env, const couchbase::operations::search_response::
|
1435
|
-
search_facet::date_range_facet &cppObj)
|
1436
|
-
{
|
1437
|
-
auto resObj = Napi::Object::New(env);
|
1438
|
-
resObj.Set("name", cbpp_to_js(env, cppObj.name));
|
1439
|
-
resObj.Set("count", cbpp_to_js(env, cppObj.count));
|
1440
|
-
resObj.Set("start", cbpp_to_js(env, cppObj.start));
|
1441
|
-
resObj.Set("end", cbpp_to_js(env, cppObj.end));
|
1442
|
-
return resObj;
|
1443
|
-
}
|
1444
|
-
};
|
1445
|
-
|
1446
|
-
template <>
|
1447
|
-
struct js_to_cbpp_t<
|
1448
|
-
couchbase::operations::search_response::search_facet::numeric_range_facet> {
|
1449
|
-
static inline Napi::Value
|
1450
|
-
to_js(Napi::Env env, const couchbase::operations::search_response::
|
1451
|
-
search_facet::numeric_range_facet &cppObj)
|
1452
|
-
{
|
1453
|
-
auto resObj = Napi::Object::New(env);
|
1454
|
-
resObj.Set("name", cbpp_to_js(env, cppObj.name));
|
1455
|
-
resObj.Set("count", cbpp_to_js(env, cppObj.count));
|
1456
|
-
resObj.Set("min", cbpp_to_js(env, cppObj.min));
|
1457
|
-
resObj.Set("max", cbpp_to_js(env, cppObj.max));
|
1458
|
-
return resObj;
|
1459
|
-
}
|
1460
|
-
};
|
1461
|
-
|
1462
|
-
template <>
|
1463
|
-
struct js_to_cbpp_t<couchbase::operations::search_response::search_facet> {
|
1464
|
-
static inline Napi::Value
|
1465
|
-
to_js(Napi::Env env,
|
1466
|
-
const couchbase::operations::search_response::search_facet &cppObj)
|
1467
|
-
{
|
1468
|
-
auto resObj = Napi::Object::New(env);
|
1469
|
-
resObj.Set("name", cbpp_to_js(env, cppObj.name));
|
1470
|
-
resObj.Set("field", cbpp_to_js(env, cppObj.field));
|
1471
|
-
resObj.Set("total", cbpp_to_js(env, cppObj.total));
|
1472
|
-
resObj.Set("missing", cbpp_to_js(env, cppObj.missing));
|
1473
|
-
resObj.Set("other", cbpp_to_js(env, cppObj.other));
|
1474
|
-
resObj.Set("terms", cbpp_to_js(env, cppObj.terms));
|
1475
|
-
resObj.Set("date_ranges", cbpp_to_js(env, cppObj.date_ranges));
|
1476
|
-
resObj.Set("numeric_ranges", cbpp_to_js(env, cppObj.numeric_ranges));
|
1477
|
-
return resObj;
|
1478
|
-
}
|
1479
|
-
};
|
1480
|
-
|
1481
|
-
template <>
|
1482
|
-
struct js_to_cbpp_t<couchbase::operations::search_response> {
|
1483
|
-
static inline Napi::Value
|
1484
|
-
to_js(Napi::Env env, const couchbase::operations::search_response &cppObj)
|
1485
|
-
{
|
1486
|
-
auto resObj = Napi::Object::New(env);
|
1487
|
-
resObj.Set("status", cbpp_to_js(env, cppObj.status));
|
1488
|
-
resObj.Set("meta", cbpp_to_js(env, cppObj.meta));
|
1489
|
-
resObj.Set("rows", cbpp_to_js(env, cppObj.rows));
|
1490
|
-
resObj.Set("facets", cbpp_to_js(env, cppObj.facets));
|
1491
|
-
return resObj;
|
1492
|
-
}
|
1493
|
-
};
|
1494
|
-
|
1495
|
-
template <>
|
1496
|
-
struct js_to_cbpp_t<couchbase::operations::management::freeform_request> {
|
1497
|
-
static inline couchbase::operations::management::freeform_request
|
1498
|
-
from_js(Napi::Value jsVal)
|
1499
|
-
{
|
1500
|
-
auto jsObj = jsVal.ToObject();
|
1501
|
-
couchbase::operations::management::freeform_request cppObj;
|
1502
|
-
js_to_cbpp(cppObj.type, jsObj.Get("type"));
|
1503
|
-
js_to_cbpp(cppObj.method, jsObj.Get("method"));
|
1504
|
-
js_to_cbpp(cppObj.path, jsObj.Get("path"));
|
1505
|
-
js_to_cbpp(cppObj.headers, jsObj.Get("headers"));
|
1506
|
-
js_to_cbpp(cppObj.body, jsObj.Get("body"));
|
1507
|
-
js_to_cbpp(cppObj.timeout, jsObj.Get("timeout"));
|
1508
|
-
js_to_cbpp(cppObj.client_context_id, jsObj.Get("client_context_id"));
|
1509
|
-
return cppObj;
|
1510
|
-
}
|
1511
|
-
};
|
1512
|
-
|
1513
|
-
template <>
|
1514
|
-
struct js_to_cbpp_t<couchbase::operations::management::freeform_response> {
|
1515
|
-
static inline Napi::Value
|
1516
|
-
to_js(Napi::Env env,
|
1517
|
-
const couchbase::operations::management::freeform_response &cppObj)
|
1518
|
-
{
|
1519
|
-
auto resObj = Napi::Object::New(env);
|
1520
|
-
resObj.Set("status", cbpp_to_js(env, cppObj.status));
|
1521
|
-
resObj.Set("headers", cbpp_to_js(env, cppObj.headers));
|
1522
|
-
resObj.Set("body", cbpp_to_js(env, cppObj.body));
|
1523
|
-
return resObj;
|
1524
|
-
}
|
1525
|
-
};
|
1526
|
-
|
1527
|
-
template <>
|
1528
|
-
struct js_to_cbpp_t<cbtxns::transaction_config> {
|
1529
|
-
static inline cbtxns::transaction_config from_js(Napi::Value jsVal)
|
1530
|
-
{
|
1531
|
-
auto jsObj = jsVal.ToObject();
|
1532
|
-
cbtxns::transaction_config cppObj;
|
1533
|
-
|
1534
|
-
auto durability_level =
|
1535
|
-
js_to_cbpp<std::optional<couchbase::protocol::durability_level>>(
|
1536
|
-
jsObj.Get("durability_level"));
|
1537
|
-
if (durability_level.has_value()) {
|
1538
|
-
// BUG(JSCBC-1012): This translation should not be neccessary.
|
1539
|
-
switch (durability_level.value()) {
|
1540
|
-
case couchbase::protocol::durability_level::none:
|
1541
|
-
cppObj.durability_level(
|
1542
|
-
couchbase::transactions::durability_level::NONE);
|
1543
|
-
break;
|
1544
|
-
case couchbase::protocol::durability_level::majority:
|
1545
|
-
cppObj.durability_level(
|
1546
|
-
couchbase::transactions::durability_level::MAJORITY);
|
1547
|
-
break;
|
1548
|
-
case couchbase::protocol::durability_level::
|
1549
|
-
majority_and_persist_to_active:
|
1550
|
-
cppObj.durability_level(
|
1551
|
-
couchbase::transactions::durability_level::
|
1552
|
-
MAJORITY_AND_PERSIST_TO_ACTIVE);
|
1553
|
-
break;
|
1554
|
-
case couchbase::protocol::durability_level::persist_to_majority:
|
1555
|
-
cppObj.durability_level(
|
1556
|
-
couchbase::transactions::durability_level::
|
1557
|
-
PERSIST_TO_MAJORITY);
|
1558
|
-
break;
|
1559
|
-
default:
|
1560
|
-
throw Napi::Error::New(
|
1561
|
-
jsVal.Env(), "unexpected transaction durability level");
|
1562
|
-
}
|
1563
|
-
}
|
1564
|
-
|
1565
|
-
auto kv_timeout = js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
1566
|
-
jsObj.Get("kv_timeout"));
|
1567
|
-
if (kv_timeout.has_value()) {
|
1568
|
-
cppObj.kv_timeout(kv_timeout.value());
|
1569
|
-
}
|
1570
|
-
|
1571
|
-
auto expiration_time =
|
1572
|
-
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
1573
|
-
jsObj.Get("expiration_time"));
|
1574
|
-
if (expiration_time.has_value()) {
|
1575
|
-
cppObj.expiration_time(expiration_time.value());
|
1576
|
-
}
|
1577
|
-
|
1578
|
-
auto query_scan_consistency = js_to_cbpp<std::optional<
|
1579
|
-
couchbase::operations::query_request::scan_consistency_type>>(
|
1580
|
-
jsObj.Get("query_scan_consistency"));
|
1581
|
-
if (query_scan_consistency.has_value()) {
|
1582
|
-
cppObj.scan_consistency(query_scan_consistency.value());
|
1583
|
-
}
|
1584
|
-
|
1585
|
-
auto cleanup_window =
|
1586
|
-
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
1587
|
-
jsObj.Get("cleanup_window"));
|
1588
|
-
if (cleanup_window.has_value()) {
|
1589
|
-
cppObj.cleanup_window(cleanup_window.value());
|
1590
|
-
}
|
1591
|
-
|
1592
|
-
auto cleanup_lost_attempts =
|
1593
|
-
js_to_cbpp<std::optional<bool>>(jsObj.Get("cleanup_lost_attempts"));
|
1594
|
-
if (cleanup_lost_attempts.has_value()) {
|
1595
|
-
cppObj.cleanup_lost_attempts(cleanup_lost_attempts.value());
|
1596
|
-
}
|
1597
|
-
|
1598
|
-
auto cleanup_client_attempts = js_to_cbpp<std::optional<bool>>(
|
1599
|
-
jsObj.Get("cleanup_client_attempts"));
|
1600
|
-
if (cleanup_client_attempts.has_value()) {
|
1601
|
-
cppObj.cleanup_client_attempts(cleanup_client_attempts.value());
|
1602
|
-
}
|
1603
|
-
|
1604
|
-
return cppObj;
|
1605
|
-
}
|
1606
|
-
};
|
1607
|
-
|
1608
|
-
template <>
|
1609
|
-
struct js_to_cbpp_t<cbtxns::per_transaction_config> {
|
1610
|
-
static inline cbtxns::per_transaction_config from_js(Napi::Value jsVal)
|
1611
|
-
{
|
1612
|
-
auto jsObj = jsVal.ToObject();
|
1613
|
-
cbtxns::per_transaction_config cppObj;
|
1614
|
-
|
1615
|
-
auto durability_level =
|
1616
|
-
js_to_cbpp<std::optional<couchbase::protocol::durability_level>>(
|
1617
|
-
jsObj.Get("durability_level"));
|
1618
|
-
if (durability_level.has_value()) {
|
1619
|
-
// BUG(JSCBC-1012): This translation should not be neccessary.
|
1620
|
-
switch (durability_level.value()) {
|
1621
|
-
case couchbase::protocol::durability_level::none:
|
1622
|
-
cppObj.durability_level(
|
1623
|
-
couchbase::transactions::durability_level::NONE);
|
1624
|
-
break;
|
1625
|
-
case couchbase::protocol::durability_level::majority:
|
1626
|
-
cppObj.durability_level(
|
1627
|
-
couchbase::transactions::durability_level::MAJORITY);
|
1628
|
-
break;
|
1629
|
-
case couchbase::protocol::durability_level::
|
1630
|
-
majority_and_persist_to_active:
|
1631
|
-
cppObj.durability_level(
|
1632
|
-
couchbase::transactions::durability_level::
|
1633
|
-
MAJORITY_AND_PERSIST_TO_ACTIVE);
|
1634
|
-
break;
|
1635
|
-
case couchbase::protocol::durability_level::persist_to_majority:
|
1636
|
-
cppObj.durability_level(
|
1637
|
-
couchbase::transactions::durability_level::
|
1638
|
-
PERSIST_TO_MAJORITY);
|
1639
|
-
break;
|
1640
|
-
default:
|
1641
|
-
throw Napi::Error::New(
|
1642
|
-
jsVal.Env(), "unexpected transaction durability level");
|
1643
|
-
}
|
1644
|
-
}
|
1645
|
-
|
1646
|
-
auto kv_timeout = js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
1647
|
-
jsObj.Get("kv_timeout"));
|
1648
|
-
if (kv_timeout.has_value()) {
|
1649
|
-
cppObj.kv_timeout(kv_timeout.value());
|
1650
|
-
}
|
1651
|
-
|
1652
|
-
auto expiration_time =
|
1653
|
-
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
1654
|
-
jsObj.Get("expiration_time"));
|
1655
|
-
if (expiration_time.has_value()) {
|
1656
|
-
cppObj.expiration_time(expiration_time.value());
|
1657
|
-
}
|
1658
|
-
|
1659
|
-
auto query_scan_consistency = js_to_cbpp<std::optional<
|
1660
|
-
couchbase::operations::query_request::scan_consistency_type>>(
|
1661
|
-
jsObj.Get("query_scan_consistency"));
|
1662
|
-
if (query_scan_consistency.has_value()) {
|
1663
|
-
cppObj.scan_consistency(query_scan_consistency.value());
|
1664
|
-
}
|
1665
|
-
|
1666
|
-
return cppObj;
|
1667
|
-
}
|
1668
|
-
};
|
1669
|
-
|
1670
|
-
template <>
|
1671
|
-
struct js_to_cbpp_t<cbtxns::transaction_links> {
|
1672
|
-
static inline cbtxns::transaction_links from_js(Napi::Value jsVal)
|
1673
|
-
{
|
1674
|
-
auto jsObj = jsVal.ToObject();
|
1675
|
-
return cbtxns::transaction_links(
|
1676
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("atr_id")),
|
1677
|
-
js_to_cbpp<std::optional<std::string>>(
|
1678
|
-
jsObj.Get("atr_bucket_name")),
|
1679
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("atr_scope_name")),
|
1680
|
-
js_to_cbpp<std::optional<std::string>>(
|
1681
|
-
jsObj.Get("atr_collection_name")),
|
1682
|
-
js_to_cbpp<std::optional<std::string>>(
|
1683
|
-
jsObj.Get("staged_transaction_id")),
|
1684
|
-
js_to_cbpp<std::optional<std::string>>(
|
1685
|
-
jsObj.Get("staged_attempt_id")),
|
1686
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("staged_content")),
|
1687
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("cas_pre_txn")),
|
1688
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("revid_pre_txn")),
|
1689
|
-
js_to_cbpp<std::optional<uint32_t>>(jsObj.Get("exptime_pre_txn")),
|
1690
|
-
js_to_cbpp<std::optional<std::string>>(
|
1691
|
-
jsObj.Get("crc32_of_staging")),
|
1692
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("op")),
|
1693
|
-
js_to_cbpp<std::optional<nlohmann::json>>(
|
1694
|
-
jsObj.Get("forward_compat")),
|
1695
|
-
js_to_cbpp<bool>(jsObj.Get("is_deleted")));
|
1696
|
-
}
|
1697
|
-
|
1698
|
-
static inline Napi::Value to_js(Napi::Env env,
|
1699
|
-
const cbtxns::transaction_links &res)
|
1700
|
-
{
|
1701
|
-
auto resObj = Napi::Object::New(env);
|
1702
|
-
resObj.Set("atr_id", cbpp_to_js(env, res.atr_id()));
|
1703
|
-
resObj.Set("atr_bucket_name", cbpp_to_js(env, res.atr_bucket_name()));
|
1704
|
-
resObj.Set("atr_scope_name", cbpp_to_js(env, res.atr_scope_name()));
|
1705
|
-
resObj.Set("atr_collection_name",
|
1706
|
-
cbpp_to_js(env, res.atr_collection_name()));
|
1707
|
-
resObj.Set("staged_transaction_id",
|
1708
|
-
cbpp_to_js(env, res.staged_transaction_id()));
|
1709
|
-
resObj.Set("staged_attempt_id",
|
1710
|
-
cbpp_to_js(env, res.staged_attempt_id()));
|
1711
|
-
resObj.Set("staged_content", cbpp_to_js(env, res.staged_content()));
|
1712
|
-
resObj.Set("cas_pre_txn", cbpp_to_js(env, res.cas_pre_txn()));
|
1713
|
-
resObj.Set("revid_pre_txn", cbpp_to_js(env, res.revid_pre_txn()));
|
1714
|
-
resObj.Set("exptime_pre_txn", cbpp_to_js(env, res.exptime_pre_txn()));
|
1715
|
-
resObj.Set("crc32_of_staging", cbpp_to_js(env, res.crc32_of_staging()));
|
1716
|
-
resObj.Set("op", cbpp_to_js(env, res.op()));
|
1717
|
-
resObj.Set("forward_compat", cbpp_to_js(env, res.forward_compat()));
|
1718
|
-
resObj.Set("is_deleted", cbpp_to_js(env, res.is_deleted()));
|
1719
|
-
return resObj;
|
1720
|
-
}
|
1721
|
-
};
|
1722
|
-
|
1723
|
-
template <>
|
1724
|
-
struct js_to_cbpp_t<cbtxns::document_metadata> {
|
1725
|
-
static inline cbtxns::document_metadata from_js(Napi::Value jsVal)
|
1726
|
-
{
|
1727
|
-
auto jsObj = jsVal.ToObject();
|
1728
|
-
return cbtxns::document_metadata(
|
1729
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("cas")),
|
1730
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("revid")),
|
1731
|
-
js_to_cbpp<std::optional<uint32_t>>(jsObj.Get("exptime")),
|
1732
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("crc32")));
|
1733
|
-
}
|
1734
|
-
|
1735
|
-
static inline Napi::Value to_js(Napi::Env env,
|
1736
|
-
const cbtxns::document_metadata &res)
|
1737
|
-
{
|
1738
|
-
auto resObj = Napi::Object::New(env);
|
1739
|
-
resObj.Set("cas", cbpp_to_js(env, res.cas()));
|
1740
|
-
resObj.Set("revid", cbpp_to_js(env, res.revid()));
|
1741
|
-
resObj.Set("exptime", cbpp_to_js(env, res.exptime()));
|
1742
|
-
resObj.Set("crc32", cbpp_to_js(env, res.crc32()));
|
1743
|
-
return resObj;
|
1744
|
-
}
|
1745
|
-
};
|
1746
|
-
|
1747
|
-
template <>
|
1748
|
-
struct js_to_cbpp_t<cbtxns::transaction_get_result> {
|
1749
|
-
static inline cbtxns::transaction_get_result from_js(Napi::Value jsVal)
|
1750
|
-
{
|
1751
|
-
auto jsObj = jsVal.ToObject();
|
1752
|
-
return cbtxns::transaction_get_result(
|
1753
|
-
js_to_cbpp<couchbase::document_id>(jsObj.Get("id")),
|
1754
|
-
js_to_cbpp<couchbase::json_string>(jsObj.Get("content")).str(),
|
1755
|
-
js_to_cbpp<couchbase::protocol::cas>(jsObj.Get("cas")).value,
|
1756
|
-
js_to_cbpp<cbtxns::transaction_links>(jsObj.Get("links")),
|
1757
|
-
js_to_cbpp<std::optional<cbtxns::document_metadata>>(
|
1758
|
-
jsObj.Get("metadata")));
|
1759
|
-
}
|
1760
|
-
|
1761
|
-
static inline Napi::Value to_js(Napi::Env env,
|
1762
|
-
const cbtxns::transaction_get_result &res)
|
1763
|
-
{
|
1764
|
-
auto resObj = Napi::Object::New(env);
|
1765
|
-
resObj.Set("id", cbpp_to_js(env, res.id()));
|
1766
|
-
resObj.Set("content", cbpp_to_js(env, couchbase::json_string(
|
1767
|
-
res.content<std::string>())));
|
1768
|
-
resObj.Set("cas", cbpp_to_js(env, couchbase::protocol::cas{res.cas()}));
|
1769
|
-
resObj.Set("links", cbpp_to_js(env, res.links()));
|
1770
|
-
resObj.Set("metadata", cbpp_to_js(env, res.metadata()));
|
1771
|
-
return resObj;
|
1772
|
-
}
|
1773
|
-
};
|
1774
|
-
|
1775
|
-
template <>
|
1776
|
-
struct js_to_cbpp_t<cbtxns::transaction_query_options> {
|
1777
|
-
static inline cbtxns::transaction_query_options from_js(Napi::Value jsVal)
|
1778
|
-
{
|
1779
|
-
auto jsObj = jsVal.ToObject();
|
1780
|
-
cbtxns::transaction_query_options cppObj;
|
1781
|
-
|
1782
|
-
auto raw = js_to_cbpp<
|
1783
|
-
std::optional<std::map<std::string, couchbase::json_string>>>(
|
1784
|
-
jsObj.Get("raw"));
|
1785
|
-
if (raw.has_value()) {
|
1786
|
-
for (auto &v : *raw) {
|
1787
|
-
cppObj.raw(v.first, v.second);
|
1788
|
-
}
|
1789
|
-
}
|
1790
|
-
|
1791
|
-
auto ad_hoc = js_to_cbpp<std::optional<bool>>(jsObj.Get("ad_hoc"));
|
1792
|
-
if (ad_hoc.has_value()) {
|
1793
|
-
cppObj.ad_hoc(ad_hoc.value());
|
1794
|
-
}
|
1795
|
-
|
1796
|
-
auto scan_consistency = js_to_cbpp<std::optional<
|
1797
|
-
couchbase::operations::query_request::scan_consistency_type>>(
|
1798
|
-
jsObj.Get("scan_consistency"));
|
1799
|
-
if (scan_consistency.has_value()) {
|
1800
|
-
cppObj.scan_consistency(scan_consistency.value());
|
1801
|
-
}
|
1802
|
-
|
1803
|
-
auto profile = js_to_cbpp<
|
1804
|
-
std::optional<couchbase::operations::query_request::profile_mode>>(
|
1805
|
-
jsObj.Get("profile"));
|
1806
|
-
if (profile.has_value()) {
|
1807
|
-
cppObj.profile(profile.value());
|
1808
|
-
}
|
1809
|
-
|
1810
|
-
auto metrics = js_to_cbpp<std::optional<bool>>(jsObj.Get("metrics"));
|
1811
|
-
if (metrics.has_value()) {
|
1812
|
-
cppObj.metrics(metrics.value());
|
1813
|
-
}
|
1814
|
-
|
1815
|
-
auto client_context_id = js_to_cbpp<std::optional<std::string>>(
|
1816
|
-
jsObj.Get("client_context_id"));
|
1817
|
-
if (client_context_id.has_value()) {
|
1818
|
-
cppObj.client_context_id(client_context_id.value());
|
1819
|
-
}
|
1820
|
-
|
1821
|
-
auto scan_wait = js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
1822
|
-
jsObj.Get("scan_wait"));
|
1823
|
-
if (scan_wait.has_value()) {
|
1824
|
-
cppObj.scan_wait(scan_wait.value());
|
1825
|
-
}
|
1826
|
-
|
1827
|
-
auto readonly = js_to_cbpp<std::optional<bool>>(jsObj.Get("readonly"));
|
1828
|
-
if (readonly.has_value()) {
|
1829
|
-
cppObj.readonly(readonly.value());
|
1830
|
-
}
|
1831
|
-
|
1832
|
-
auto scan_cap =
|
1833
|
-
js_to_cbpp<std::optional<uint64_t>>(jsObj.Get("scan_cap"));
|
1834
|
-
if (scan_cap.has_value()) {
|
1835
|
-
cppObj.scan_cap(scan_cap.value());
|
1836
|
-
}
|
1837
|
-
|
1838
|
-
auto pipeline_batch =
|
1839
|
-
js_to_cbpp<std::optional<uint64_t>>(jsObj.Get("pipeline_batch"));
|
1840
|
-
if (pipeline_batch.has_value()) {
|
1841
|
-
cppObj.pipeline_batch(pipeline_batch.value());
|
1842
|
-
}
|
1843
|
-
|
1844
|
-
auto pipeline_cap =
|
1845
|
-
js_to_cbpp<std::optional<uint64_t>>(jsObj.Get("pipeline_cap"));
|
1846
|
-
if (pipeline_cap.has_value()) {
|
1847
|
-
cppObj.pipeline_cap(pipeline_cap.value());
|
1848
|
-
}
|
1849
|
-
|
1850
|
-
auto max_parallelism =
|
1851
|
-
js_to_cbpp<std::optional<uint64_t>>(jsObj.Get("max_parallelism"));
|
1852
|
-
if (max_parallelism.has_value()) {
|
1853
|
-
cppObj.max_parallelism(max_parallelism.value());
|
1854
|
-
}
|
1855
|
-
|
1856
|
-
auto positional_parameters =
|
1857
|
-
js_to_cbpp<std::optional<std::vector<couchbase::json_string>>>(
|
1858
|
-
jsObj.Get("positional_parameters"));
|
1859
|
-
if (positional_parameters.has_value()) {
|
1860
|
-
cppObj.positional_parameters(positional_parameters.value());
|
1861
|
-
}
|
1862
|
-
|
1863
|
-
auto named_parameters = js_to_cbpp<
|
1864
|
-
std::optional<std::map<std::string, couchbase::json_string>>>(
|
1865
|
-
jsObj.Get("named_parameters"));
|
1866
|
-
if (named_parameters.has_value()) {
|
1867
|
-
cppObj.named_parameters(named_parameters.value());
|
1868
|
-
}
|
1869
|
-
|
1870
|
-
auto bucket_name =
|
1871
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("bucket_name"));
|
1872
|
-
if (bucket_name.has_value()) {
|
1873
|
-
cppObj.bucket_name(bucket_name.value());
|
1874
|
-
}
|
1875
|
-
|
1876
|
-
auto scope_name =
|
1877
|
-
js_to_cbpp<std::optional<std::string>>(jsObj.Get("scope_name"));
|
1878
|
-
if (scope_name.has_value()) {
|
1879
|
-
cppObj.scope_name(scope_name.value());
|
1880
|
-
}
|
1881
|
-
|
1882
|
-
return cppObj;
|
1883
|
-
}
|
1884
|
-
};
|
1885
|
-
|
1886
|
-
template <>
|
1887
|
-
struct js_to_cbpp_t<couchbase::diag::endpoint_diag_info> {
|
1888
|
-
static inline Napi::Value
|
1889
|
-
to_js(Napi::Env env, const couchbase::diag::endpoint_diag_info &res)
|
1890
|
-
{
|
1891
|
-
auto resObj = Napi::Object::New(env);
|
1892
|
-
resObj.Set("type", cbpp_to_js(env, res.type));
|
1893
|
-
resObj.Set("id", cbpp_to_js(env, res.id));
|
1894
|
-
resObj.Set("last_activity", cbpp_to_js(env, res.last_activity));
|
1895
|
-
resObj.Set("remote", cbpp_to_js(env, res.remote));
|
1896
|
-
resObj.Set("local", cbpp_to_js(env, res.local));
|
1897
|
-
resObj.Set("state", cbpp_to_js(env, res.state));
|
1898
|
-
resObj.Set("bucket", cbpp_to_js(env, res.bucket));
|
1899
|
-
resObj.Set("details", cbpp_to_js(env, res.details));
|
1900
|
-
return resObj;
|
1901
|
-
}
|
1902
|
-
};
|
1903
|
-
|
1904
|
-
template <>
|
1905
|
-
struct js_to_cbpp_t<couchbase::diag::diagnostics_result> {
|
1906
|
-
static inline Napi::Value
|
1907
|
-
to_js(Napi::Env env, const couchbase::diag::diagnostics_result &res)
|
1908
|
-
{
|
1909
|
-
auto resObj = Napi::Object::New(env);
|
1910
|
-
resObj.Set("version", cbpp_to_js(env, res.version));
|
1911
|
-
resObj.Set("id", cbpp_to_js(env, res.id));
|
1912
|
-
resObj.Set("sdk", cbpp_to_js(env, res.sdk));
|
1913
|
-
resObj.Set("services", cbpp_to_js(env, res.services));
|
1914
|
-
return resObj;
|
1915
|
-
}
|
1916
|
-
};
|
1917
|
-
|
1918
|
-
template <>
|
1919
|
-
struct js_to_cbpp_t<couchbase::diag::endpoint_ping_info> {
|
1920
|
-
static inline Napi::Value
|
1921
|
-
to_js(Napi::Env env, const couchbase::diag::endpoint_ping_info &res)
|
1922
|
-
{
|
1923
|
-
auto resObj = Napi::Object::New(env);
|
1924
|
-
resObj.Set("type", cbpp_to_js(env, res.type));
|
1925
|
-
resObj.Set("id", cbpp_to_js(env, res.id));
|
1926
|
-
resObj.Set("latency", cbpp_to_js(env, res.latency));
|
1927
|
-
resObj.Set("remote", cbpp_to_js(env, res.remote));
|
1928
|
-
resObj.Set("local", cbpp_to_js(env, res.local));
|
1929
|
-
resObj.Set("state", cbpp_to_js(env, res.state));
|
1930
|
-
resObj.Set("bucket", cbpp_to_js(env, res.bucket));
|
1931
|
-
resObj.Set("error", cbpp_to_js(env, res.error));
|
1932
|
-
return resObj;
|
1933
|
-
}
|
1934
|
-
};
|
1935
|
-
|
1936
|
-
template <>
|
1937
|
-
struct js_to_cbpp_t<couchbase::diag::ping_result> {
|
1938
|
-
static inline Napi::Value to_js(Napi::Env env,
|
1939
|
-
const couchbase::diag::ping_result &res)
|
1940
|
-
{
|
1941
|
-
auto resObj = Napi::Object::New(env);
|
1942
|
-
resObj.Set("version", cbpp_to_js(env, res.version));
|
1943
|
-
resObj.Set("id", cbpp_to_js(env, res.id));
|
1944
|
-
resObj.Set("sdk", cbpp_to_js(env, res.sdk));
|
1945
|
-
resObj.Set("services", cbpp_to_js(env, res.services));
|
1946
|
-
return resObj;
|
1947
|
-
}
|
1948
|
-
};
|
1949
|
-
|
1950
|
-
template <>
|
1951
|
-
struct js_to_cbpp_t<std::exception> {
|
1952
|
-
static inline Napi::Value to_js(Napi::Env env, const std::exception &except)
|
1953
|
-
{
|
1954
|
-
Napi::Error err = Napi::Error::New(env, except.what());
|
1955
|
-
return err.Value();
|
1956
|
-
}
|
1957
|
-
};
|
1958
|
-
|
1959
|
-
template <>
|
1960
|
-
struct js_to_cbpp_t<std::error_code> {
|
1961
|
-
static inline Napi::Value to_js(Napi::Env env, const std::error_code &ec)
|
1962
|
-
{
|
1963
|
-
if (!ec) {
|
1964
|
-
return env.Null();
|
1965
|
-
}
|
1966
|
-
|
1967
|
-
Napi::Error err = Napi::Error::New(env, ec.message());
|
1968
|
-
err.Set("code", Napi::Number::New(env, ec.value()));
|
1969
|
-
return err.Value();
|
1970
|
-
}
|
1971
|
-
};
|
1972
|
-
|
1973
|
-
template <>
|
1974
|
-
struct js_to_cbpp_t<couchbase::protocol::enhanced_error_info> {
|
1975
|
-
static inline Napi::Value
|
1976
|
-
to_js(Napi::Env env, const couchbase::protocol::enhanced_error_info &cppObj)
|
1977
|
-
{
|
1978
|
-
auto resObj = Napi::Object::New(env);
|
1979
|
-
resObj.Set("reference", cbpp_to_js(env, cppObj.reference));
|
1980
|
-
resObj.Set("context", cbpp_to_js(env, cppObj.context));
|
1981
|
-
return resObj;
|
1982
|
-
}
|
1983
|
-
};
|
1984
|
-
|
1985
|
-
template <>
|
1986
|
-
struct js_to_cbpp_t<couchbase::error_context::key_value> {
|
1987
|
-
static inline Napi::Value
|
1988
|
-
to_js(Napi::Env env, const couchbase::error_context::key_value &ctx)
|
1989
|
-
{
|
1990
|
-
if (!ctx.ec) {
|
1991
|
-
return env.Null();
|
1992
|
-
}
|
1993
|
-
|
1994
|
-
Napi::Error err = Napi::Error::New(env, ctx.ec.message());
|
1995
|
-
err.Set("ctxtype", Napi::String::New(env, "key_value"));
|
1996
|
-
err.Set("code", cbpp_to_js(env, ctx.ec.value()));
|
1997
|
-
err.Set("id", cbpp_to_js(env, ctx.id));
|
1998
|
-
err.Set("opaque", cbpp_to_js(env, ctx.opaque));
|
1999
|
-
err.Set("cas", cbpp_to_js(env, ctx.cas));
|
2000
|
-
err.Set("status_code", cbpp_to_js(env, ctx.status_code));
|
2001
|
-
err.Set("enhanced_error_info",
|
2002
|
-
cbpp_to_js(env, ctx.enhanced_error_info));
|
2003
|
-
err.Set("last_dispatched_to", cbpp_to_js(env, ctx.last_dispatched_to));
|
2004
|
-
err.Set("last_dispatched_from",
|
2005
|
-
cbpp_to_js(env, ctx.last_dispatched_from));
|
2006
|
-
err.Set("retry_attempts", cbpp_to_js(env, ctx.retry_attempts));
|
2007
|
-
err.Set("retry_reasons", cbpp_to_js(env, ctx.retry_reasons));
|
2008
|
-
return err.Value();
|
2009
|
-
}
|
2010
|
-
};
|
2011
|
-
|
2012
|
-
template <>
|
2013
|
-
struct js_to_cbpp_t<couchbase::error_context::view> {
|
2014
|
-
static inline Napi::Value to_js(Napi::Env env,
|
2015
|
-
const couchbase::error_context::view &ctx)
|
2016
|
-
{
|
2017
|
-
if (!ctx.ec) {
|
2018
|
-
return env.Null();
|
2019
|
-
}
|
2020
|
-
|
2021
|
-
Napi::Error err = Napi::Error::New(env, ctx.ec.message());
|
2022
|
-
err.Set("ctxtype", Napi::String::New(env, "view"));
|
2023
|
-
err.Set("code", cbpp_to_js(env, ctx.ec.value()));
|
2024
|
-
|
2025
|
-
err.Set("client_context_id", cbpp_to_js(env, ctx.client_context_id));
|
2026
|
-
err.Set("design_document_name",
|
2027
|
-
cbpp_to_js(env, ctx.design_document_name));
|
2028
|
-
err.Set("view_name", cbpp_to_js(env, ctx.view_name));
|
2029
|
-
err.Set("query_string", cbpp_to_js(env, ctx.query_string));
|
2030
|
-
|
2031
|
-
err.Set("method", cbpp_to_js(env, ctx.method));
|
2032
|
-
err.Set("path", cbpp_to_js(env, ctx.path));
|
2033
|
-
err.Set("http_status", cbpp_to_js(env, ctx.http_status));
|
2034
|
-
err.Set("http_body", cbpp_to_js(env, ctx.http_body));
|
2035
|
-
|
2036
|
-
err.Set("last_dispatched_to", cbpp_to_js(env, ctx.last_dispatched_to));
|
2037
|
-
err.Set("last_dispatched_from",
|
2038
|
-
cbpp_to_js(env, ctx.last_dispatched_from));
|
2039
|
-
err.Set("retry_attempts", cbpp_to_js(env, ctx.retry_attempts));
|
2040
|
-
err.Set("retry_reasons", cbpp_to_js(env, ctx.retry_reasons));
|
2041
|
-
return err.Value();
|
2042
|
-
}
|
2043
|
-
};
|
2044
|
-
|
2045
|
-
template <>
|
2046
|
-
struct js_to_cbpp_t<couchbase::error_context::query> {
|
2047
|
-
static inline Napi::Value to_js(Napi::Env env,
|
2048
|
-
const couchbase::error_context::query &ctx)
|
2049
|
-
{
|
2050
|
-
if (!ctx.ec) {
|
2051
|
-
return env.Null();
|
2052
|
-
}
|
2053
|
-
|
2054
|
-
auto ec = ctx.ec;
|
2055
|
-
if (ec) {
|
2056
|
-
auto maybeEc =
|
2057
|
-
couchbase::operations::management::translate_query_error_code(
|
2058
|
-
ctx.first_error_code, ctx.first_error_message, 0);
|
2059
|
-
if (maybeEc.has_value()) {
|
2060
|
-
ec = maybeEc.value();
|
2061
|
-
}
|
2062
|
-
}
|
2063
|
-
|
2064
|
-
Napi::Error err = Napi::Error::New(env, ec.message());
|
2065
|
-
err.Set("ctxtype", Napi::String::New(env, "query"));
|
2066
|
-
err.Set("code", cbpp_to_js(env, ec.value()));
|
2067
|
-
|
2068
|
-
err.Set("first_error_code", cbpp_to_js(env, ctx.first_error_code));
|
2069
|
-
err.Set("first_error_message",
|
2070
|
-
cbpp_to_js(env, ctx.first_error_message));
|
2071
|
-
err.Set("client_context_id", cbpp_to_js(env, ctx.client_context_id));
|
2072
|
-
err.Set("statement", cbpp_to_js(env, ctx.statement));
|
2073
|
-
err.Set("parameters", cbpp_to_js(env, ctx.parameters));
|
2074
|
-
|
2075
|
-
err.Set("method", cbpp_to_js(env, ctx.method));
|
2076
|
-
err.Set("path", cbpp_to_js(env, ctx.path));
|
2077
|
-
err.Set("http_status", cbpp_to_js(env, ctx.http_status));
|
2078
|
-
err.Set("http_body", cbpp_to_js(env, ctx.http_body));
|
2079
|
-
|
2080
|
-
err.Set("last_dispatched_to", cbpp_to_js(env, ctx.last_dispatched_to));
|
2081
|
-
err.Set("last_dispatched_from",
|
2082
|
-
cbpp_to_js(env, ctx.last_dispatched_from));
|
2083
|
-
err.Set("retry_attempts", cbpp_to_js(env, ctx.retry_attempts));
|
2084
|
-
err.Set("retry_reasons", cbpp_to_js(env, ctx.retry_reasons));
|
2085
|
-
return err.Value();
|
2086
|
-
}
|
2087
|
-
};
|
2088
|
-
|
2089
|
-
template <>
|
2090
|
-
struct js_to_cbpp_t<couchbase::error_context::search> {
|
2091
|
-
static inline Napi::Value to_js(Napi::Env env,
|
2092
|
-
const couchbase::error_context::search &ctx)
|
2093
|
-
{
|
2094
|
-
if (!ctx.ec) {
|
2095
|
-
return env.Null();
|
2096
|
-
}
|
2097
|
-
|
2098
|
-
auto ec = ctx.ec;
|
2099
|
-
if (ec) {
|
2100
|
-
auto maybeEc =
|
2101
|
-
couchbase::operations::management::translate_search_error_code(
|
2102
|
-
ctx.http_status, ctx.http_body);
|
2103
|
-
if (maybeEc.has_value()) {
|
2104
|
-
ec = maybeEc.value();
|
2105
|
-
}
|
2106
|
-
}
|
2107
|
-
|
2108
|
-
Napi::Error err = Napi::Error::New(env, ec.message());
|
2109
|
-
err.Set("ctxtype", Napi::String::New(env, "search"));
|
2110
|
-
err.Set("code", cbpp_to_js(env, ec.value()));
|
2111
|
-
|
2112
|
-
err.Set("client_context_id", cbpp_to_js(env, ctx.client_context_id));
|
2113
|
-
err.Set("index_name", cbpp_to_js(env, ctx.index_name));
|
2114
|
-
err.Set("query", cbpp_to_js(env, ctx.query));
|
2115
|
-
err.Set("parameters", cbpp_to_js(env, ctx.parameters));
|
2116
|
-
|
2117
|
-
err.Set("method", cbpp_to_js(env, ctx.method));
|
2118
|
-
err.Set("path", cbpp_to_js(env, ctx.path));
|
2119
|
-
err.Set("http_status", cbpp_to_js(env, ctx.http_status));
|
2120
|
-
err.Set("http_body", cbpp_to_js(env, ctx.http_body));
|
2121
|
-
|
2122
|
-
err.Set("last_dispatched_to", cbpp_to_js(env, ctx.last_dispatched_to));
|
2123
|
-
err.Set("last_dispatched_from",
|
2124
|
-
cbpp_to_js(env, ctx.last_dispatched_from));
|
2125
|
-
err.Set("retry_attempts", cbpp_to_js(env, ctx.retry_attempts));
|
2126
|
-
err.Set("retry_reasons", cbpp_to_js(env, ctx.retry_reasons));
|
2127
|
-
return err.Value();
|
2128
|
-
}
|
2129
|
-
};
|
2130
|
-
|
2131
|
-
template <>
|
2132
|
-
struct js_to_cbpp_t<couchbase::error_context::analytics> {
|
2133
|
-
static inline Napi::Value
|
2134
|
-
to_js(Napi::Env env, const couchbase::error_context::analytics &ctx)
|
2135
|
-
{
|
2136
|
-
if (!ctx.ec) {
|
2137
|
-
return env.Null();
|
2138
|
-
}
|
2139
|
-
|
2140
|
-
auto ec = ctx.ec;
|
2141
|
-
if (ec) {
|
2142
|
-
auto maybeEc = couchbase::operations::management::
|
2143
|
-
translate_analytics_error_code(ctx.first_error_code,
|
2144
|
-
ctx.first_error_message);
|
2145
|
-
if (maybeEc.has_value()) {
|
2146
|
-
ec = maybeEc.value();
|
2147
|
-
}
|
2148
|
-
}
|
2149
|
-
|
2150
|
-
Napi::Error err = Napi::Error::New(env, ec.message());
|
2151
|
-
err.Set("ctxtype", Napi::String::New(env, "analytics"));
|
2152
|
-
err.Set("code", cbpp_to_js(env, ec.value()));
|
2153
|
-
|
2154
|
-
err.Set("first_error_code", cbpp_to_js(env, ctx.first_error_code));
|
2155
|
-
err.Set("first_error_message",
|
2156
|
-
cbpp_to_js(env, ctx.first_error_message));
|
2157
|
-
err.Set("client_context_id", cbpp_to_js(env, ctx.client_context_id));
|
2158
|
-
err.Set("statement", cbpp_to_js(env, ctx.statement));
|
2159
|
-
err.Set("parameters", cbpp_to_js(env, ctx.parameters));
|
2160
|
-
|
2161
|
-
err.Set("method", cbpp_to_js(env, ctx.method));
|
2162
|
-
err.Set("path", cbpp_to_js(env, ctx.path));
|
2163
|
-
err.Set("http_status", cbpp_to_js(env, ctx.http_status));
|
2164
|
-
err.Set("http_body", cbpp_to_js(env, ctx.http_body));
|
2165
|
-
|
2166
|
-
err.Set("last_dispatched_to", cbpp_to_js(env, ctx.last_dispatched_to));
|
2167
|
-
err.Set("last_dispatched_from",
|
2168
|
-
cbpp_to_js(env, ctx.last_dispatched_from));
|
2169
|
-
err.Set("retry_attempts", cbpp_to_js(env, ctx.retry_attempts));
|
2170
|
-
err.Set("retry_reasons", cbpp_to_js(env, ctx.retry_reasons));
|
2171
|
-
return err.Value();
|
2172
|
-
}
|
2173
|
-
};
|
2174
|
-
|
2175
|
-
template <>
|
2176
|
-
struct js_to_cbpp_t<couchbase::error_context::http> {
|
2177
|
-
static inline Napi::Value to_js(Napi::Env env,
|
2178
|
-
const couchbase::error_context::http &ctx)
|
2179
|
-
{
|
2180
|
-
if (!ctx.ec) {
|
2181
|
-
return env.Null();
|
2182
|
-
}
|
2183
|
-
|
2184
|
-
Napi::Error err = Napi::Error::New(env, ctx.ec.message());
|
2185
|
-
err.Set("ctxtype", Napi::String::New(env, "http"));
|
2186
|
-
err.Set("code", cbpp_to_js(env, ctx.ec.value()));
|
2187
|
-
|
2188
|
-
err.Set("client_context_id", cbpp_to_js(env, ctx.client_context_id));
|
2189
|
-
err.Set("method", cbpp_to_js(env, ctx.method));
|
2190
|
-
err.Set("path", cbpp_to_js(env, ctx.path));
|
2191
|
-
err.Set("http_status", cbpp_to_js(env, ctx.http_status));
|
2192
|
-
err.Set("http_body", cbpp_to_js(env, ctx.http_body));
|
2193
|
-
|
2194
|
-
err.Set("last_dispatched_to", cbpp_to_js(env, ctx.last_dispatched_to));
|
2195
|
-
err.Set("last_dispatched_from",
|
2196
|
-
cbpp_to_js(env, ctx.last_dispatched_from));
|
2197
|
-
err.Set("retry_attempts", cbpp_to_js(env, ctx.retry_attempts));
|
2198
|
-
err.Set("retry_reasons", cbpp_to_js(env, ctx.retry_reasons));
|
2199
|
-
return err.Value();
|
2200
|
-
}
|
2201
|
-
};
|
2202
|
-
|
2203
|
-
template <>
|
2204
|
-
struct js_to_cbpp_t<cbtxns::transaction_operation_failed> {
|
2205
|
-
static inline Napi::Value
|
2206
|
-
to_js(Napi::Env env, const cbtxns::transaction_operation_failed &err)
|
2207
|
-
{
|
2208
|
-
Napi::Error jsErr = Napi::Error::New(env, "transaction_exception");
|
2209
|
-
jsErr.Set("ctxtype",
|
2210
|
-
Napi::String::New(env, "transaction_operation_failed"));
|
2211
|
-
jsErr.Set("should_not_retry", cbpp_to_js(env, !err.should_retry()));
|
2212
|
-
jsErr.Set("should_not_rollback",
|
2213
|
-
cbpp_to_js(env, !err.should_rollback()));
|
2214
|
-
jsErr.Set("cause", cbpp_to_js(env, err.cause()));
|
2215
|
-
return jsErr.Value();
|
2216
|
-
}
|
2217
|
-
};
|
2218
|
-
|
2219
|
-
template <>
|
2220
|
-
struct js_to_cbpp_t<cbtxns::transaction_exception> {
|
2221
|
-
static inline Napi::Value to_js(Napi::Env env,
|
2222
|
-
const cbtxns::transaction_exception &err)
|
2223
|
-
{
|
2224
|
-
Napi::Error jsErr = Napi::Error::New(env, "transaction_exception");
|
2225
|
-
jsErr.Set("ctxtype", Napi::String::New(env, "transaction_exception"));
|
2226
|
-
jsErr.Set("result", cbpp_to_js(env, err.get_transaction_result()));
|
2227
|
-
jsErr.Set("cause", cbpp_to_js(env, err.cause()));
|
2228
|
-
jsErr.Set("type", cbpp_to_js(env, err.type()));
|
2229
|
-
return jsErr.Value();
|
2230
|
-
}
|
2231
|
-
};
|
2232
|
-
|
2233
|
-
template <>
|
2234
|
-
struct js_to_cbpp_t<cbtxns::transaction_result> {
|
2235
|
-
static inline Napi::Value to_js(Napi::Env env,
|
2236
|
-
const cbtxns::transaction_result &res)
|
2237
|
-
{
|
2238
|
-
auto resObj = Napi::Object::New(env);
|
2239
|
-
resObj.Set("transaction_id", cbpp_to_js(env, res.transaction_id));
|
2240
|
-
resObj.Set("unstaging_complete",
|
2241
|
-
cbpp_to_js(env, res.unstaging_complete));
|
2242
|
-
return resObj;
|
2243
|
-
}
|
2244
|
-
};
|
2245
|
-
|
2246
|
-
template <>
|
2247
|
-
struct js_to_cbpp_t<std::exception_ptr> {
|
2248
|
-
static inline Napi::Value to_js(Napi::Env env,
|
2249
|
-
const std::exception_ptr &err)
|
2250
|
-
{
|
2251
|
-
if (!err) {
|
2252
|
-
return env.Null();
|
2253
|
-
}
|
2254
|
-
|
2255
|
-
try {
|
2256
|
-
std::rethrow_exception(err);
|
2257
|
-
} catch (const cbtxns::transaction_operation_failed &err) {
|
2258
|
-
return cbpp_to_js(env, err);
|
2259
|
-
} catch (const std::exception &err) {
|
2260
|
-
return cbpp_to_js(env, err);
|
2261
|
-
} catch (...) {
|
2262
|
-
return Napi::Error::New(env, "unexpected c++ error").Value();
|
2263
|
-
}
|
2264
|
-
}
|
2265
|
-
};
|
2266
|
-
|
2267
|
-
template <typename T>
|
2268
|
-
static inline T jsToCbpp(Napi::Value jsVal)
|
2269
|
-
{
|
2270
|
-
return js_to_cbpp_t<T>::from_js(jsVal);
|
2271
|
-
}
|
2272
|
-
|
2273
|
-
template <typename T>
|
2274
|
-
static inline T jsToCbpp(Napi::Value jsVal, const Transcoder &transcoder)
|
2275
|
-
{
|
2276
|
-
return js_to_cbpp_t<T>::from_js(jsVal, transcoder);
|
2277
|
-
}
|
2278
|
-
|
2279
|
-
template <typename T>
|
2280
|
-
Napi::Value cbppToJs(Napi::Env env, const T &cppObj)
|
2281
|
-
{
|
2282
|
-
return js_to_cbpp_t<T>::to_js(env, cppObj);
|
2283
|
-
}
|
2284
|
-
|
2285
|
-
template <typename T>
|
2286
|
-
Napi::Value cbppToJs(Napi::Env env, const T &cppObj,
|
2287
|
-
const Transcoder &transcoder)
|
2288
|
-
{
|
2289
|
-
return js_to_cbpp_t<T>::to_js(env, cppObj, transcoder);
|
2290
|
-
}
|
2291
|
-
|
2292
|
-
} // namespace couchnode
|
5
|
+
#include "jstocbpp_autogen.hpp"
|
6
|
+
#include "jstocbpp_basic.hpp"
|
7
|
+
#include "jstocbpp_cpptypes.hpp"
|
8
|
+
#include "jstocbpp_errors.hpp"
|
9
|
+
#include "jstocbpp_transactions.hpp"
|