couchbase 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -0
- package/deps/couchbase-cxx-client/.github/workflows/linters.yml +2 -2
- package/deps/couchbase-cxx-client/.github/workflows/sanitizers.yml +18 -2
- package/deps/couchbase-cxx-client/.github/workflows/tests.yml +14 -34
- package/deps/couchbase-cxx-client/.github/workflows/windows.yml +13 -15
- package/deps/couchbase-cxx-client/CMakeLists.txt +6 -1
- package/deps/couchbase-cxx-client/bin/build-tests +3 -0
- package/deps/couchbase-cxx-client/bin/build-tests.rb +3 -0
- package/deps/couchbase-cxx-client/bin/init-cluster +1 -1
- package/deps/couchbase-cxx-client/bin/run-tests +1 -1
- package/deps/couchbase-cxx-client/cmake/StandardProjectSettings.cmake +1 -1
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +25 -6
- package/deps/couchbase-cxx-client/couchbase/io/mcbp_session.hxx +21 -7
- package/deps/couchbase-cxx-client/couchbase/meta/version.cxx +7 -0
- package/deps/couchbase-cxx-client/couchbase/operations/document_decrement.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_decrement.hxx +0 -1
- package/deps/couchbase-cxx-client/couchbase/operations/document_increment.cxx +0 -3
- package/deps/couchbase-cxx-client/couchbase/operations/document_increment.hxx +0 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/analytics_dataset_get_all.cxx +1 -1
- 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 +1 -1
- package/deps/couchbase-cxx-client/couchbase/operations/management/query_index_drop.cxx +4 -3
- package/deps/couchbase-cxx-client/couchbase/origin.hxx +10 -0
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_decrement.cxx +3 -8
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_decrement.hxx +0 -2
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_increment.cxx +0 -9
- package/deps/couchbase-cxx-client/couchbase/protocol/cmd_increment.hxx +0 -2
- package/deps/couchbase-cxx-client/couchbase/utils/json_streaming_lexer.cxx +6 -2
- package/deps/couchbase-cxx-client/test/test_integration_collections.cxx +4 -6
- package/deps/couchbase-cxx-client/test/test_integration_connect.cxx +4 -0
- package/deps/couchbase-cxx-client/test/test_integration_management.cxx +194 -138
- package/deps/couchbase-cxx-client/test/test_integration_query.cxx +26 -10
- package/deps/couchbase-cxx-client/test/test_unit_json_streaming_lexer.cxx +119 -0
- package/deps/couchbase-cxx-client/test/utils/integration_test_guard.cxx +1 -1
- package/deps/couchbase-cxx-client/test/utils/server_version.cxx +2 -1
- package/deps/couchbase-cxx-client/test/utils/server_version.hxx +22 -4
- package/deps/couchbase-cxx-client/test/utils/test_context.cxx +11 -1
- package/deps/couchbase-cxx-client/test/utils/test_context.hxx +1 -0
- package/deps/couchbase-transactions-cxx/CMakeLists.txt +2 -2
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/{management/design_document_fmt.hxx → design_document_namespace_fmt.hxx} +5 -5
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/couchbase/operations/management/query_index_get_all.cxx +26 -16
- package/deps/couchbase-transactions-cxx/include/couchbase/transactions/durability_level.hxx +15 -0
- package/deps/couchbase-transactions-cxx/include/couchbase/transactions.hxx +2 -6
- package/deps/couchbase-transactions-cxx/src/transactions/attempt_context_impl.cxx +1 -1
- package/deps/couchbase-transactions-cxx/src/transactions/logging.cxx +20 -17
- package/deps/couchbase-transactions-cxx/tests/transactions/simple_t.cpp +22 -0
- package/deps/couchbase-transactions-cxx/tests/transactions/transactions_env.h +1 -1
- package/dist/binding.d.ts +0 -2
- package/dist/collection.js +0 -2
- package/dist/httpexecutor.d.ts +1 -0
- package/package.json +1 -1
- package/src/jstocbpp_autogen.hpp +3 -9
- package/deps/couchbase-cxx-client/.github/workflows/benchmarks.yml +0 -94
- package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/.github/workflows/benchmarks.yml +0 -94
package/src/jstocbpp_autogen.hpp
CHANGED
@@ -2859,7 +2859,6 @@ struct js_to_cbpp_t<couchbase::operations::decrement_request> {
|
|
2859
2859
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
2860
2860
|
cppObj.timeout, jsObj.Get("timeout"));
|
2861
2861
|
// retries
|
2862
|
-
js_to_cbpp<bool>(cppObj.preserve_expiry, jsObj.Get("preserve_expiry"));
|
2863
2862
|
return cppObj;
|
2864
2863
|
}
|
2865
2864
|
static inline Napi::Value
|
@@ -2881,8 +2880,6 @@ struct js_to_cbpp_t<couchbase::operations::decrement_request> {
|
|
2881
2880
|
cbpp_to_js<std::optional<std::chrono::milliseconds>>(
|
2882
2881
|
env, cppObj.timeout));
|
2883
2882
|
// retries
|
2884
|
-
resObj.Set("preserve_expiry",
|
2885
|
-
cbpp_to_js<bool>(env, cppObj.preserve_expiry));
|
2886
2883
|
return resObj;
|
2887
2884
|
}
|
2888
2885
|
};
|
@@ -4017,7 +4014,6 @@ struct js_to_cbpp_t<couchbase::operations::increment_request> {
|
|
4017
4014
|
js_to_cbpp<std::optional<std::chrono::milliseconds>>(
|
4018
4015
|
cppObj.timeout, jsObj.Get("timeout"));
|
4019
4016
|
// retries
|
4020
|
-
js_to_cbpp<bool>(cppObj.preserve_expiry, jsObj.Get("preserve_expiry"));
|
4021
4017
|
return cppObj;
|
4022
4018
|
}
|
4023
4019
|
static inline Napi::Value
|
@@ -4039,8 +4035,6 @@ struct js_to_cbpp_t<couchbase::operations::increment_request> {
|
|
4039
4035
|
cbpp_to_js<std::optional<std::chrono::milliseconds>>(
|
4040
4036
|
env, cppObj.timeout));
|
4041
4037
|
// retries
|
4042
|
-
resObj.Set("preserve_expiry",
|
4043
|
-
cbpp_to_js<bool>(env, cppObj.preserve_expiry));
|
4044
4038
|
return resObj;
|
4045
4039
|
}
|
4046
4040
|
};
|
@@ -5521,8 +5515,8 @@ struct js_to_cbpp_t<couchbase::operations::management::
|
|
5521
5515
|
js_to_cbpp<
|
5522
5516
|
std::vector<couchbase::operations::management::analytics_problem>>(
|
5523
5517
|
cppObj.errors, jsObj.Get("errors"));
|
5524
|
-
js_to_cbpp<std::map<std::string, std::
|
5525
|
-
|
5518
|
+
js_to_cbpp<std::map<std::string, std::int64_t>>(cppObj.stats,
|
5519
|
+
jsObj.Get("stats"));
|
5526
5520
|
return cppObj;
|
5527
5521
|
}
|
5528
5522
|
static inline Napi::Value
|
@@ -5536,7 +5530,7 @@ struct js_to_cbpp_t<couchbase::operations::management::
|
|
5536
5530
|
cbpp_to_js<std::vector<
|
5537
5531
|
couchbase::operations::management::analytics_problem>>(
|
5538
5532
|
env, cppObj.errors));
|
5539
|
-
resObj.Set("stats", cbpp_to_js<std::map<std::string, std::
|
5533
|
+
resObj.Set("stats", cbpp_to_js<std::map<std::string, std::int64_t>>(
|
5540
5534
|
env, cppObj.stats));
|
5541
5535
|
return resObj;
|
5542
5536
|
}
|
@@ -1,94 +0,0 @@
|
|
1
|
-
name: benchmarks
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ master ]
|
6
|
-
|
7
|
-
jobs:
|
8
|
-
cheshire_cat:
|
9
|
-
runs-on: ubuntu-20.04
|
10
|
-
services:
|
11
|
-
couchbase:
|
12
|
-
image: couchbase:enterprise-7.0.3
|
13
|
-
ports:
|
14
|
-
- 8091-8096:8091-8096
|
15
|
-
- 11210:11210
|
16
|
-
steps:
|
17
|
-
- name: Install build environment
|
18
|
-
run: |
|
19
|
-
sudo apt-get update -y
|
20
|
-
sudo apt-get install -y libssl-dev cmake gcc g++ curl
|
21
|
-
- uses: actions/checkout@v2
|
22
|
-
with:
|
23
|
-
submodules: recursive
|
24
|
-
- name: Initialize couchbase
|
25
|
-
run: ./bin/init-cluster
|
26
|
-
- name: Build tests
|
27
|
-
env:
|
28
|
-
# replace with RelWithDebInfo when the build become faster
|
29
|
-
CB_CMAKE_BUILD_TYPE: Debug
|
30
|
-
run: ./bin/build-tests
|
31
|
-
- name: Check couchbase
|
32
|
-
run: ./bin/check-cluster
|
33
|
-
- name: Run benchmarks
|
34
|
-
timeout-minutes: 15
|
35
|
-
env:
|
36
|
-
TEST_SERVER_VERSION: 7.0.3
|
37
|
-
TEST_CONNECTION_STRING: couchbase://127.0.0.1
|
38
|
-
run: ./bin/run-benchmarks
|
39
|
-
- name: Store benchmark results
|
40
|
-
uses: benchmark-action/github-action-benchmark@v1
|
41
|
-
with:
|
42
|
-
name: Cheshire Cat
|
43
|
-
tool: "catch2"
|
44
|
-
output-file-path: cmake-build-tests/Testing/Temporary/LastTest.log
|
45
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
46
|
-
auto-push: true
|
47
|
-
alert-threshold: "200%"
|
48
|
-
comment-on-alert: true
|
49
|
-
fail-on-alert: true
|
50
|
-
alert-comment-cc-users: "@avsej"
|
51
|
-
|
52
|
-
mad_hatter:
|
53
|
-
runs-on: ubuntu-20.04
|
54
|
-
services:
|
55
|
-
couchbase:
|
56
|
-
image: couchbase:enterprise-6.6.4
|
57
|
-
ports:
|
58
|
-
- 8091-8096:8091-8096
|
59
|
-
- 11210:11210
|
60
|
-
steps:
|
61
|
-
- name: Install build environment
|
62
|
-
run: |
|
63
|
-
sudo apt-get update -y
|
64
|
-
sudo apt-get install -y libssl-dev cmake gcc g++ curl
|
65
|
-
- uses: actions/checkout@v2
|
66
|
-
with:
|
67
|
-
submodules: recursive
|
68
|
-
- name: Initialize couchbase
|
69
|
-
run: ./bin/init-cluster
|
70
|
-
- name: Build tests
|
71
|
-
env:
|
72
|
-
# replace with RelWithDebInfo when the build become faster
|
73
|
-
CB_CMAKE_BUILD_TYPE: Debug
|
74
|
-
run: ./bin/build-tests
|
75
|
-
- name: Check couchbase
|
76
|
-
run: ./bin/check-cluster
|
77
|
-
- name: Run benchmarks
|
78
|
-
timeout-minutes: 15
|
79
|
-
env:
|
80
|
-
TEST_SERVER_VERSION: 6.6.4
|
81
|
-
TEST_CONNECTION_STRING: couchbase://127.0.0.1
|
82
|
-
run: ./bin/run-benchmarks
|
83
|
-
- name: Store benchmark results
|
84
|
-
uses: benchmark-action/github-action-benchmark@v1
|
85
|
-
with:
|
86
|
-
name: Mad Hatter
|
87
|
-
tool: "catch2"
|
88
|
-
output-file-path: cmake-build-tests/Testing/Temporary/LastTest.log
|
89
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
90
|
-
auto-push: true
|
91
|
-
alert-threshold: "200%"
|
92
|
-
comment-on-alert: true
|
93
|
-
fail-on-alert: true
|
94
|
-
alert-comment-cc-users: "@avsej"
|
package/deps/couchbase-transactions-cxx/deps/couchbase-cxx-client/.github/workflows/benchmarks.yml
DELETED
@@ -1,94 +0,0 @@
|
|
1
|
-
name: benchmarks
|
2
|
-
|
3
|
-
on:
|
4
|
-
push:
|
5
|
-
branches: [ master ]
|
6
|
-
|
7
|
-
jobs:
|
8
|
-
cheshire_cat:
|
9
|
-
runs-on: ubuntu-20.04
|
10
|
-
services:
|
11
|
-
couchbase:
|
12
|
-
image: couchbase:enterprise-7.0.3
|
13
|
-
ports:
|
14
|
-
- 8091-8096:8091-8096
|
15
|
-
- 11210:11210
|
16
|
-
steps:
|
17
|
-
- name: Install build environment
|
18
|
-
run: |
|
19
|
-
sudo apt-get update -y
|
20
|
-
sudo apt-get install -y libssl-dev cmake gcc g++ curl
|
21
|
-
- uses: actions/checkout@v2
|
22
|
-
with:
|
23
|
-
submodules: recursive
|
24
|
-
- name: Initialize couchbase
|
25
|
-
run: ./bin/init-cluster
|
26
|
-
- name: Build tests
|
27
|
-
env:
|
28
|
-
# replace with RelWithDebInfo when the build become faster
|
29
|
-
CB_CMAKE_BUILD_TYPE: Debug
|
30
|
-
run: ./bin/build-tests
|
31
|
-
- name: Check couchbase
|
32
|
-
run: ./bin/check-cluster
|
33
|
-
- name: Run benchmarks
|
34
|
-
timeout-minutes: 15
|
35
|
-
env:
|
36
|
-
TEST_SERVER_VERSION: 7.0.3
|
37
|
-
TEST_CONNECTION_STRING: couchbase://127.0.0.1
|
38
|
-
run: ./bin/run-benchmarks
|
39
|
-
- name: Store benchmark results
|
40
|
-
uses: benchmark-action/github-action-benchmark@v1
|
41
|
-
with:
|
42
|
-
name: Cheshire Cat
|
43
|
-
tool: "catch2"
|
44
|
-
output-file-path: cmake-build-tests/Testing/Temporary/LastTest.log
|
45
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
46
|
-
auto-push: true
|
47
|
-
alert-threshold: "200%"
|
48
|
-
comment-on-alert: true
|
49
|
-
fail-on-alert: true
|
50
|
-
alert-comment-cc-users: "@avsej"
|
51
|
-
|
52
|
-
mad_hatter:
|
53
|
-
runs-on: ubuntu-20.04
|
54
|
-
services:
|
55
|
-
couchbase:
|
56
|
-
image: couchbase:enterprise-6.6.4
|
57
|
-
ports:
|
58
|
-
- 8091-8096:8091-8096
|
59
|
-
- 11210:11210
|
60
|
-
steps:
|
61
|
-
- name: Install build environment
|
62
|
-
run: |
|
63
|
-
sudo apt-get update -y
|
64
|
-
sudo apt-get install -y libssl-dev cmake gcc g++ curl
|
65
|
-
- uses: actions/checkout@v2
|
66
|
-
with:
|
67
|
-
submodules: recursive
|
68
|
-
- name: Initialize couchbase
|
69
|
-
run: ./bin/init-cluster
|
70
|
-
- name: Build tests
|
71
|
-
env:
|
72
|
-
# replace with RelWithDebInfo when the build become faster
|
73
|
-
CB_CMAKE_BUILD_TYPE: Debug
|
74
|
-
run: ./bin/build-tests
|
75
|
-
- name: Check couchbase
|
76
|
-
run: ./bin/check-cluster
|
77
|
-
- name: Run benchmarks
|
78
|
-
timeout-minutes: 15
|
79
|
-
env:
|
80
|
-
TEST_SERVER_VERSION: 6.6.4
|
81
|
-
TEST_CONNECTION_STRING: couchbase://127.0.0.1
|
82
|
-
run: ./bin/run-benchmarks
|
83
|
-
- name: Store benchmark results
|
84
|
-
uses: benchmark-action/github-action-benchmark@v1
|
85
|
-
with:
|
86
|
-
name: Mad Hatter
|
87
|
-
tool: "catch2"
|
88
|
-
output-file-path: cmake-build-tests/Testing/Temporary/LastTest.log
|
89
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
90
|
-
auto-push: true
|
91
|
-
alert-threshold: "200%"
|
92
|
-
comment-on-alert: true
|
93
|
-
fail-on-alert: true
|
94
|
-
alert-comment-cc-users: "@avsej"
|