couchbase 4.2.11-rc.1 → 4.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/deps/couchbase-cxx-client/CMakeLists.txt +1 -0
- package/deps/couchbase-cxx-client/cmake/ThirdPartyDependencies.cmake +2 -0
- package/deps/couchbase-cxx-client/core/bucket.cxx +2 -2
- package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +11 -0
- package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +1 -0
- package/deps/couchbase-cxx-client/core/range_scan_load_balancer.cxx +141 -0
- package/deps/couchbase-cxx-client/core/range_scan_load_balancer.hxx +64 -0
- package/deps/couchbase-cxx-client/core/range_scan_orchestrator.cxx +224 -336
- package/deps/couchbase-cxx-client/core/range_scan_orchestrator.hxx +5 -6
- package/deps/couchbase-cxx-client/core/range_scan_orchestrator_options.hxx +6 -4
- package/deps/couchbase-cxx-client/core/scan_result.hxx +1 -11
- package/deps/couchbase-cxx-client/couchbase/bucket.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/collection.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/collection_query_index_manager.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/error_context.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/get_links_analytics_options.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/scope.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/search_options.hxx +2 -2
- package/deps/couchbase-cxx-client/couchbase/search_result.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/subdocument_error_context.hxx +1 -0
- package/deps/couchbase-cxx-client/couchbase/transactions/transaction_options.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase-sdk-cxx-black-duck-manifest.yaml +1 -0
- package/package.json +7 -7
- package/src/jstocbpp_autogen.hpp +0 -1
- package/deps/couchbase-cxx-client/core/scan_options.hxx +0 -44
@@ -22,8 +22,8 @@
|
|
22
22
|
|
23
23
|
#include <tl/expected.hpp>
|
24
24
|
|
25
|
-
#include <
|
26
|
-
#include <
|
25
|
+
#include <cstdint>
|
26
|
+
#include <system_error>
|
27
27
|
|
28
28
|
namespace asio
|
29
29
|
{
|
@@ -39,10 +39,10 @@ class scan_stream_manager
|
|
39
39
|
{
|
40
40
|
public:
|
41
41
|
virtual ~scan_stream_manager() = default;
|
42
|
-
virtual void stream_start_failed(std::int16_t node_id, bool fatal) = 0;
|
43
42
|
virtual void stream_start_failed_awaiting_retry(std::int16_t node_id, std::uint16_t vbucket_id) = 0;
|
44
|
-
virtual void
|
45
|
-
virtual void
|
43
|
+
virtual void stream_received_item(range_scan_item item) = 0;
|
44
|
+
virtual void stream_failed(std::int16_t node_id, std::uint16_t vbucket_id, std::error_code ec, bool fatal) = 0;
|
45
|
+
virtual void stream_completed(std::int16_t node_id, std::uint16_t vbucket_id) = 0;
|
46
46
|
};
|
47
47
|
|
48
48
|
class range_scan_orchestrator
|
@@ -61,5 +61,4 @@ class range_scan_orchestrator
|
|
61
61
|
private:
|
62
62
|
std::shared_ptr<range_scan_orchestrator_impl> impl_;
|
63
63
|
};
|
64
|
-
|
65
64
|
} // namespace couchbase::core
|
@@ -15,17 +15,16 @@
|
|
15
15
|
|
16
16
|
#pragma once
|
17
17
|
|
18
|
-
#include "
|
18
|
+
#include "range_scan_options.hxx"
|
19
19
|
#include "timeout_defaults.hxx"
|
20
20
|
|
21
21
|
#include <couchbase/mutation_token.hxx>
|
22
22
|
#include <couchbase/retry_strategy.hxx>
|
23
23
|
|
24
|
-
#include <
|
24
|
+
#include <chrono>
|
25
|
+
#include <cstdint>
|
25
26
|
#include <memory>
|
26
27
|
#include <optional>
|
27
|
-
#include <system_error>
|
28
|
-
#include <variant>
|
29
28
|
#include <vector>
|
30
29
|
|
31
30
|
namespace couchbase
|
@@ -39,6 +38,9 @@ class request_span;
|
|
39
38
|
|
40
39
|
namespace couchbase::core
|
41
40
|
{
|
41
|
+
struct mutation_state {
|
42
|
+
std::vector<couchbase::mutation_token> tokens;
|
43
|
+
};
|
42
44
|
|
43
45
|
struct range_scan_orchestrator_options {
|
44
46
|
static constexpr std::uint16_t default_concurrency{ 1 };
|
@@ -15,26 +15,16 @@
|
|
15
15
|
|
16
16
|
#pragma once
|
17
17
|
|
18
|
-
#include "
|
19
|
-
|
18
|
+
#include "range_scan_options.hxx"
|
20
19
|
#include "utils/movable_function.hxx"
|
21
20
|
|
22
|
-
#include <couchbase/mutation_token.hxx>
|
23
|
-
#include <couchbase/retry_strategy.hxx>
|
24
|
-
|
25
21
|
#include <tl/expected.hpp>
|
26
22
|
|
27
|
-
#include <cinttypes>
|
28
23
|
#include <future>
|
29
|
-
#include <memory>
|
30
|
-
#include <optional>
|
31
24
|
#include <system_error>
|
32
|
-
#include <variant>
|
33
|
-
#include <vector>
|
34
25
|
|
35
26
|
namespace couchbase::core
|
36
27
|
{
|
37
|
-
|
38
28
|
class scan_result_impl;
|
39
29
|
|
40
30
|
class range_scan_item_iterator
|
@@ -79,7 +79,7 @@ class bucket
|
|
79
79
|
* Performs application-level ping requests against services in the Couchbase cluster.
|
80
80
|
*
|
81
81
|
* @note This operation performs active I/O against services and endpoints to assess their health. If you do not
|
82
|
-
* wish to performs I/O, consider using @ref diagnostics() instead.
|
82
|
+
* wish to performs I/O, consider using @ref cluster::diagnostics() instead.
|
83
83
|
*
|
84
84
|
* @param options custom options to change the default behavior.
|
85
85
|
* @param handler the handler that implements @ref ping_handler.
|
@@ -93,7 +93,7 @@ class bucket
|
|
93
93
|
* Performs application-level ping requests against services in the Couchbase cluster.
|
94
94
|
*
|
95
95
|
* @note This operation performs active I/O against services and endpoints to assess their health. If you do not
|
96
|
-
* wish to performs I/O, consider using @ref diagnostics() instead.
|
96
|
+
* wish to performs I/O, consider using @ref cluster::diagnostics() instead.
|
97
97
|
*
|
98
98
|
* @param options custom options to change the default behavior.
|
99
99
|
* @return future object that carries result of the operation.
|
@@ -222,7 +222,7 @@ class cluster
|
|
222
222
|
* @since 1.0.0
|
223
223
|
* @volatile
|
224
224
|
*/
|
225
|
-
[[nodiscard]] auto search(std::string index_name, search_request request, const search_options& = {}) const
|
225
|
+
[[nodiscard]] auto search(std::string index_name, search_request request, const search_options& options = {}) const
|
226
226
|
-> std::future<std::pair<search_error_context, search_result>>;
|
227
227
|
|
228
228
|
/**
|
@@ -791,6 +791,7 @@ class collection
|
|
791
791
|
* @param document_id the outer document ID
|
792
792
|
* @param specs an object that specifies the types of lookups to perform
|
793
793
|
* @param options custom options to modify the lookup options
|
794
|
+
* @param handler callable that implements @ref lookup_in_any_replica_handler
|
794
795
|
*
|
795
796
|
* @exception errc::key_value::document_not_found the given document id is not found in the collection.
|
796
797
|
* @exception errc::common::ambiguous_timeout
|
@@ -64,7 +64,7 @@ class collection_query_index_manager
|
|
64
64
|
void get_all_indexes(const get_all_query_indexes_options& options, get_all_query_indexes_handler&& handler) const;
|
65
65
|
|
66
66
|
/**
|
67
|
-
* Get all indexes within the collection
|
67
|
+
* Get all indexes within the collection.
|
68
68
|
*
|
69
69
|
* @param options optional parameters
|
70
70
|
* @return future object that carries result of the operation
|
@@ -50,7 +50,7 @@ class get_links_analytics_options : public common_options<get_links_analytics_op
|
|
50
50
|
/**
|
51
51
|
* The name of the link to fetch.
|
52
52
|
*
|
53
|
-
* @param
|
53
|
+
* @param name link name
|
54
54
|
* @return reference to this object, for use in chaining
|
55
55
|
*
|
56
56
|
* @since 1.0.0
|
@@ -65,7 +65,7 @@ class get_links_analytics_options : public common_options<get_links_analytics_op
|
|
65
65
|
/**
|
66
66
|
* The type of links to restrict returned links to.
|
67
67
|
*
|
68
|
-
* @param link_type
|
68
|
+
* @param link_type link type
|
69
69
|
* @return reference to this object, for use in chaining
|
70
70
|
*
|
71
71
|
* @since 1.0.0
|
@@ -151,7 +151,7 @@ class scope
|
|
151
151
|
* @since 1.0.0
|
152
152
|
* @volatile
|
153
153
|
*/
|
154
|
-
[[nodiscard]] auto search(std::string index_name, search_request request, const search_options& = {}) const
|
154
|
+
[[nodiscard]] auto search(std::string index_name, search_request request, const search_options& options = {}) const
|
155
155
|
-> std::future<std::pair<search_error_context, search_result>>;
|
156
156
|
|
157
157
|
/**
|
@@ -35,7 +35,7 @@
|
|
35
35
|
namespace couchbase
|
36
36
|
{
|
37
37
|
/**
|
38
|
-
* Options for cluster#search_query() and scope#
|
38
|
+
* Options for @ref cluster#search_query(), @ref cluster#search() and @ref scope#search().
|
39
39
|
*
|
40
40
|
* @since 1.0.0
|
41
41
|
* @committed
|
@@ -500,7 +500,7 @@ struct search_options : public common_options<search_options> {
|
|
500
500
|
};
|
501
501
|
|
502
502
|
/**
|
503
|
-
* The signature for the handler of the @ref cluster#search_query() and @ref scope#
|
503
|
+
* The signature for the handler of the @ref cluster#search_query(), @ref cluster#search() and @ref scope#search() operations
|
504
504
|
*
|
505
505
|
* @since 1.0.0
|
506
506
|
* @uncommitted
|
@@ -35,7 +35,7 @@ class internal_search_result;
|
|
35
35
|
#endif
|
36
36
|
|
37
37
|
/**
|
38
|
-
* Represents result of @ref cluster#search_query() and @ref scope#
|
38
|
+
* Represents result of @ref cluster#search_query(), @ref cluster#search() and @ref scope#search() calls.
|
39
39
|
*
|
40
40
|
* @since 1.0.0
|
41
41
|
* @committed
|
@@ -78,7 +78,7 @@ class transaction_options
|
|
78
78
|
/**
|
79
79
|
* Set the timeout for this transaction.
|
80
80
|
*
|
81
|
-
* @tparam T timeout type, e.g.
|
81
|
+
* @tparam T timeout type, e.g. std::chrono::milliseconds, or similar
|
82
82
|
* @param timeout Desired timeout
|
83
83
|
* @return reference to this object, convenient for chaining operations.
|
84
84
|
*/
|
package/package.json
CHANGED
@@ -54,7 +54,7 @@
|
|
54
54
|
"type": "git",
|
55
55
|
"url": "http://github.com/couchbase/couchnode.git"
|
56
56
|
},
|
57
|
-
"version": "4.2.11
|
57
|
+
"version": "4.2.11",
|
58
58
|
"config": {
|
59
59
|
"native": false
|
60
60
|
},
|
@@ -79,12 +79,12 @@
|
|
79
79
|
]
|
80
80
|
},
|
81
81
|
"optionalDependencies": {
|
82
|
-
"@couchbase/couchbase-darwin-arm64-napi": "4.2.11
|
83
|
-
"@couchbase/couchbase-darwin-x64-napi": "4.2.11
|
84
|
-
"@couchbase/couchbase-linux-arm64-napi": "4.2.11
|
85
|
-
"@couchbase/couchbase-linuxmusl-x64-napi": "4.2.11
|
86
|
-
"@couchbase/couchbase-linux-x64-napi": "4.2.11
|
87
|
-
"@couchbase/couchbase-win32-x64-napi": "4.2.11
|
82
|
+
"@couchbase/couchbase-darwin-arm64-napi": "4.2.11",
|
83
|
+
"@couchbase/couchbase-darwin-x64-napi": "4.2.11",
|
84
|
+
"@couchbase/couchbase-linux-arm64-napi": "4.2.11",
|
85
|
+
"@couchbase/couchbase-linuxmusl-x64-napi": "4.2.11",
|
86
|
+
"@couchbase/couchbase-linux-x64-napi": "4.2.11",
|
87
|
+
"@couchbase/couchbase-win32-x64-napi": "4.2.11"
|
88
88
|
},
|
89
89
|
"files": [
|
90
90
|
"LICENSE",
|
package/src/jstocbpp_autogen.hpp
CHANGED
@@ -1,44 +0,0 @@
|
|
1
|
-
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
2
|
-
/*
|
3
|
-
* Copyright 2022-Present Couchbase, Inc.
|
4
|
-
*
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file
|
6
|
-
* except in compliance with the License. You may obtain a copy of the License at
|
7
|
-
*
|
8
|
-
* https://www.apache.org/licenses/LICENSE-2.0
|
9
|
-
*
|
10
|
-
* Unless required by applicable law or agreed to in writing, software distributed under
|
11
|
-
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
12
|
-
* ANY KIND, either express or implied. See the License for the specific language governing
|
13
|
-
* permissions and limitations under the License.
|
14
|
-
*/
|
15
|
-
|
16
|
-
#pragma once
|
17
|
-
|
18
|
-
#include "range_scan_options.hxx"
|
19
|
-
|
20
|
-
#include <couchbase/mutation_token.hxx>
|
21
|
-
#include <couchbase/retry_strategy.hxx>
|
22
|
-
|
23
|
-
#include <cinttypes>
|
24
|
-
#include <memory>
|
25
|
-
#include <optional>
|
26
|
-
#include <system_error>
|
27
|
-
#include <variant>
|
28
|
-
#include <vector>
|
29
|
-
|
30
|
-
namespace couchbase
|
31
|
-
{
|
32
|
-
class retry_strategy;
|
33
|
-
namespace tracing
|
34
|
-
{
|
35
|
-
class request_span;
|
36
|
-
} // namespace tracing
|
37
|
-
} // namespace couchbase
|
38
|
-
|
39
|
-
namespace couchbase::core
|
40
|
-
{
|
41
|
-
struct mutation_state {
|
42
|
-
std::vector<couchbase::mutation_token> tokens;
|
43
|
-
};
|
44
|
-
} // namespace couchbase::core
|