couchbase 4.2.9 → 4.2.10
Sign up to get free protection for your applications and to get access to all the features.
- package/deps/couchbase-cxx-client/CMakeLists.txt +4 -0
- package/deps/couchbase-cxx-client/cmake/CompilerWarnings.cmake +7 -3
- package/deps/couchbase-cxx-client/cmake/OpenSSL.cmake +1 -0
- package/deps/couchbase-cxx-client/core/bucket.cxx +52 -2
- package/deps/couchbase-cxx-client/core/bucket.hxx +1 -1
- package/deps/couchbase-cxx-client/core/cluster.cxx +38 -0
- package/deps/couchbase-cxx-client/core/impl/bucket.cxx +24 -0
- package/deps/couchbase-cxx-client/core/impl/cluster.cxx +73 -0
- package/deps/couchbase-cxx-client/core/impl/diagnostics.cxx +294 -0
- package/deps/couchbase-cxx-client/core/impl/diagnostics.hxx +39 -0
- package/deps/couchbase-cxx-client/core/impl/scope.cxx +19 -4
- package/deps/couchbase-cxx-client/core/impl/search.cxx +75 -2
- package/deps/couchbase-cxx-client/core/impl/search.hxx +8 -0
- package/deps/couchbase-cxx-client/core/impl/search_index_manager.cxx +261 -18
- package/deps/couchbase-cxx-client/core/impl/search_request.cxx +139 -0
- package/deps/couchbase-cxx-client/core/impl/vector_query.cxx +42 -0
- package/deps/couchbase-cxx-client/core/impl/vector_search.cxx +40 -0
- package/deps/couchbase-cxx-client/core/io/http_session.hxx +6 -3
- package/deps/couchbase-cxx-client/core/io/mcbp_session.cxx +24 -32
- package/deps/couchbase-cxx-client/core/io/mcbp_session.hxx +1 -0
- package/deps/couchbase-cxx-client/core/logger/logger.cxx +1 -1
- package/deps/couchbase-cxx-client/core/meta/features.hxx +10 -0
- package/deps/couchbase-cxx-client/core/operations/document_query.cxx +6 -1
- package/deps/couchbase-cxx-client/core/operations/document_search.cxx +37 -1
- package/deps/couchbase-cxx-client/core/operations/document_search.hxx +11 -0
- package/deps/couchbase-cxx-client/core/operations/management/collection_create.cxx +7 -6
- package/deps/couchbase-cxx-client/core/operations/management/collection_create.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/management/collection_update.cxx +7 -8
- package/deps/couchbase-cxx-client/core/operations/management/collection_update.hxx +1 -1
- package/deps/couchbase-cxx-client/core/operations/management/error_utils.cxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_analyze_document.cxx +17 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_analyze_document.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_ingest.cxx +21 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_ingest.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_plan_freeze.cxx +21 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_plan_freeze.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_query.cxx +21 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_control_query.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_drop.cxx +17 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_drop.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get.cxx +17 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get.hxx +2 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_all.cxx +39 -22
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_all.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_documents_count.cxx +18 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_get_documents_count.hxx +3 -0
- package/deps/couchbase-cxx-client/core/operations/management/search_index_upsert.cxx +17 -1
- package/deps/couchbase-cxx-client/core/operations/management/search_index_upsert.hxx +3 -0
- package/deps/couchbase-cxx-client/core/topology/collections_manifest.hxx +1 -1
- package/deps/couchbase-cxx-client/core/topology/collections_manifest_json.hxx +1 -1
- package/deps/couchbase-cxx-client/core/transactions/internal/utils.hxx +4 -0
- package/deps/couchbase-cxx-client/core/vector_query_combination.hxx +23 -0
- package/deps/couchbase-cxx-client/couchbase/bucket.hxx +29 -0
- package/deps/couchbase-cxx-client/couchbase/cluster.hxx +110 -0
- package/deps/couchbase-cxx-client/couchbase/codec/json_transcoder.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/codec/raw_binary_transcoder.hxx +2 -1
- package/deps/couchbase-cxx-client/couchbase/codec/raw_json_transcoder.hxx +78 -0
- package/deps/couchbase-cxx-client/couchbase/codec/raw_string_transcoder.hxx +72 -0
- package/deps/couchbase-cxx-client/couchbase/create_collection_options.hxx +29 -1
- package/deps/couchbase-cxx-client/couchbase/diagnostics_options.hxx +75 -0
- package/deps/couchbase-cxx-client/couchbase/diagnostics_result.hxx +124 -0
- package/deps/couchbase-cxx-client/couchbase/endpoint_diagnostics.hxx +206 -0
- package/deps/couchbase-cxx-client/couchbase/endpoint_ping_report.hxx +205 -0
- package/deps/couchbase-cxx-client/couchbase/get_options.hxx +1 -6
- package/deps/couchbase-cxx-client/couchbase/management/collection_spec.hxx +1 -1
- package/deps/couchbase-cxx-client/couchbase/ping_options.hxx +93 -0
- package/deps/couchbase-cxx-client/couchbase/ping_result.hxx +118 -0
- package/deps/couchbase-cxx-client/couchbase/scope.hxx +24 -8
- package/deps/couchbase-cxx-client/couchbase/scope_search_index_manager.hxx +291 -0
- package/deps/couchbase-cxx-client/couchbase/search_request.hxx +120 -0
- package/deps/couchbase-cxx-client/couchbase/service_type.hxx +58 -0
- package/deps/couchbase-cxx-client/couchbase/update_collection_options.hxx +32 -3
- package/deps/couchbase-cxx-client/couchbase/vector_query.hxx +99 -0
- package/deps/couchbase-cxx-client/couchbase/vector_search.hxx +85 -0
- package/deps/couchbase-cxx-client/couchbase/vector_search_options.hxx +76 -0
- package/dist/binding.d.ts +9 -0
- package/dist/binding.js +4 -1
- package/dist/bindingutilities.d.ts +6 -1
- package/dist/bindingutilities.js +15 -1
- package/dist/cluster.d.ts +12 -1
- package/dist/cluster.js +22 -0
- package/dist/couchbase.d.ts +1 -0
- package/dist/couchbase.js +1 -0
- package/dist/searchexecutor.d.ts +2 -2
- package/dist/searchexecutor.js +19 -3
- package/dist/searchtypes.d.ts +46 -0
- package/dist/searchtypes.js +81 -1
- package/dist/vectorsearch.d.ts +99 -0
- package/dist/vectorsearch.js +132 -0
- package/package.json +7 -7
- package/src/constants.cpp +11 -0
- package/src/jstocbpp_autogen.hpp +24 -7
- package/tools/gen-bindings-json.py +2 -0
@@ -0,0 +1,99 @@
|
|
1
|
+
/**
|
2
|
+
* Specifies how multiple vector searches are combined.
|
3
|
+
*
|
4
|
+
* Volatile: This API is subject to change at any time.
|
5
|
+
*
|
6
|
+
* @category Full Text Search
|
7
|
+
*/
|
8
|
+
export declare enum VectorQueryCombination {
|
9
|
+
/**
|
10
|
+
* Indicates that multiple vector queries should be combined with logical AND.
|
11
|
+
*/
|
12
|
+
AND = "and",
|
13
|
+
/**
|
14
|
+
* Indicates that multiple vector queries should be combined with logical OR.
|
15
|
+
*/
|
16
|
+
OR = "or"
|
17
|
+
}
|
18
|
+
/**
|
19
|
+
* Volatile: This API is subject to change at any time.
|
20
|
+
*
|
21
|
+
* @category Full Text Search
|
22
|
+
*/
|
23
|
+
export interface VectorSearchOptions {
|
24
|
+
/**
|
25
|
+
* Specifies how multiple vector queries should be combined.
|
26
|
+
*/
|
27
|
+
vectorQueryCombination?: VectorQueryCombination;
|
28
|
+
}
|
29
|
+
/**
|
30
|
+
* Represents a vector query.
|
31
|
+
*
|
32
|
+
* Volatile: This API is subject to change at any time.
|
33
|
+
*
|
34
|
+
* @category Full Text Search
|
35
|
+
*/
|
36
|
+
export declare class VectorQuery {
|
37
|
+
private _fieldName;
|
38
|
+
private _vector;
|
39
|
+
private _numCandidates;
|
40
|
+
private _boost;
|
41
|
+
constructor(fieldName: string, vector: number[]);
|
42
|
+
/**
|
43
|
+
* @internal
|
44
|
+
*/
|
45
|
+
toJSON(): any;
|
46
|
+
/**
|
47
|
+
* Adds boost option to vector query.
|
48
|
+
*
|
49
|
+
* Volatile: This API is subject to change at any time.
|
50
|
+
*
|
51
|
+
* @param boost A floating point value.
|
52
|
+
*/
|
53
|
+
boost(boost: number): VectorQuery;
|
54
|
+
/**
|
55
|
+
* Adds numCandidates option to vector query. Value must be >= 1.
|
56
|
+
*
|
57
|
+
* Volatile: This API is subject to change at any time.
|
58
|
+
*
|
59
|
+
* @param numCandidates An integer value.
|
60
|
+
*/
|
61
|
+
numCandidates(numCandidates: number): VectorQuery;
|
62
|
+
/**
|
63
|
+
* Creates a vector query.
|
64
|
+
*
|
65
|
+
* Volatile: This API is subject to change at any time.
|
66
|
+
*
|
67
|
+
* @param fieldName The name of the field in the JSON document that holds the vector.
|
68
|
+
* @param vector List of floating point values that represent the vector.
|
69
|
+
*/
|
70
|
+
static create(fieldName: string, vector: number[]): VectorQuery;
|
71
|
+
}
|
72
|
+
/**
|
73
|
+
* Represents a vector search.
|
74
|
+
*
|
75
|
+
* Volatile: This API is subject to change at any time.
|
76
|
+
*
|
77
|
+
* @category Full Text Search
|
78
|
+
*/
|
79
|
+
export declare class VectorSearch {
|
80
|
+
private _queries;
|
81
|
+
private _options;
|
82
|
+
constructor(queries: VectorQuery[], options?: VectorSearchOptions);
|
83
|
+
/**
|
84
|
+
* @internal
|
85
|
+
*/
|
86
|
+
get queries(): VectorQuery[];
|
87
|
+
/**
|
88
|
+
* @internal
|
89
|
+
*/
|
90
|
+
get options(): VectorSearchOptions | undefined;
|
91
|
+
/**
|
92
|
+
* Creates a vector search.
|
93
|
+
*
|
94
|
+
* Volatile: This API is subject to change at any time.
|
95
|
+
*
|
96
|
+
* @param query A vectory query that should be a part of the vector search.
|
97
|
+
*/
|
98
|
+
static fromVectorQuery(query: VectorQuery): VectorSearch;
|
99
|
+
}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.VectorSearch = exports.VectorQuery = exports.VectorQueryCombination = void 0;
|
4
|
+
const errors_1 = require("./errors");
|
5
|
+
/**
|
6
|
+
* Specifies how multiple vector searches are combined.
|
7
|
+
*
|
8
|
+
* Volatile: This API is subject to change at any time.
|
9
|
+
*
|
10
|
+
* @category Full Text Search
|
11
|
+
*/
|
12
|
+
var VectorQueryCombination;
|
13
|
+
(function (VectorQueryCombination) {
|
14
|
+
/**
|
15
|
+
* Indicates that multiple vector queries should be combined with logical AND.
|
16
|
+
*/
|
17
|
+
VectorQueryCombination["AND"] = "and";
|
18
|
+
/**
|
19
|
+
* Indicates that multiple vector queries should be combined with logical OR.
|
20
|
+
*/
|
21
|
+
VectorQueryCombination["OR"] = "or";
|
22
|
+
})(VectorQueryCombination || (exports.VectorQueryCombination = VectorQueryCombination = {}));
|
23
|
+
/**
|
24
|
+
* Represents a vector query.
|
25
|
+
*
|
26
|
+
* Volatile: This API is subject to change at any time.
|
27
|
+
*
|
28
|
+
* @category Full Text Search
|
29
|
+
*/
|
30
|
+
class VectorQuery {
|
31
|
+
constructor(fieldName, vector) {
|
32
|
+
this._fieldName = fieldName;
|
33
|
+
if (!Array.isArray(vector) || vector.length == 0) {
|
34
|
+
throw new errors_1.InvalidArgumentError(new Error('Provided vector must be an array and cannot be empty.'));
|
35
|
+
}
|
36
|
+
this._vector = vector;
|
37
|
+
}
|
38
|
+
/**
|
39
|
+
* @internal
|
40
|
+
*/
|
41
|
+
toJSON() {
|
42
|
+
var _a;
|
43
|
+
const output = {
|
44
|
+
field: this._fieldName,
|
45
|
+
vector: this._vector,
|
46
|
+
k: (_a = this._numCandidates) !== null && _a !== void 0 ? _a : 3,
|
47
|
+
};
|
48
|
+
if (this._boost) {
|
49
|
+
output['boost'] = this._boost;
|
50
|
+
}
|
51
|
+
return output;
|
52
|
+
}
|
53
|
+
/**
|
54
|
+
* Adds boost option to vector query.
|
55
|
+
*
|
56
|
+
* Volatile: This API is subject to change at any time.
|
57
|
+
*
|
58
|
+
* @param boost A floating point value.
|
59
|
+
*/
|
60
|
+
boost(boost) {
|
61
|
+
this._boost = boost;
|
62
|
+
return this;
|
63
|
+
}
|
64
|
+
/**
|
65
|
+
* Adds numCandidates option to vector query. Value must be >= 1.
|
66
|
+
*
|
67
|
+
* Volatile: This API is subject to change at any time.
|
68
|
+
*
|
69
|
+
* @param numCandidates An integer value.
|
70
|
+
*/
|
71
|
+
numCandidates(numCandidates) {
|
72
|
+
if (numCandidates < 1) {
|
73
|
+
throw new errors_1.InvalidArgumentError(new Error('Provided value for numCandidates must be >= 1.'));
|
74
|
+
}
|
75
|
+
this._numCandidates = numCandidates;
|
76
|
+
return this;
|
77
|
+
}
|
78
|
+
/**
|
79
|
+
* Creates a vector query.
|
80
|
+
*
|
81
|
+
* Volatile: This API is subject to change at any time.
|
82
|
+
*
|
83
|
+
* @param fieldName The name of the field in the JSON document that holds the vector.
|
84
|
+
* @param vector List of floating point values that represent the vector.
|
85
|
+
*/
|
86
|
+
static create(fieldName, vector) {
|
87
|
+
return new VectorQuery(fieldName, vector);
|
88
|
+
}
|
89
|
+
}
|
90
|
+
exports.VectorQuery = VectorQuery;
|
91
|
+
/**
|
92
|
+
* Represents a vector search.
|
93
|
+
*
|
94
|
+
* Volatile: This API is subject to change at any time.
|
95
|
+
*
|
96
|
+
* @category Full Text Search
|
97
|
+
*/
|
98
|
+
class VectorSearch {
|
99
|
+
constructor(queries, options) {
|
100
|
+
if (!Array.isArray(queries) || queries.length == 0) {
|
101
|
+
throw new errors_1.InvalidArgumentError(new Error('Provided queries must be an array and cannot be empty.'));
|
102
|
+
}
|
103
|
+
if (!queries.every((q) => q instanceof VectorQuery)) {
|
104
|
+
throw new errors_1.InvalidArgumentError(new Error('All provided queries must be a VectorQuery.'));
|
105
|
+
}
|
106
|
+
this._queries = queries;
|
107
|
+
this._options = options;
|
108
|
+
}
|
109
|
+
/**
|
110
|
+
* @internal
|
111
|
+
*/
|
112
|
+
get queries() {
|
113
|
+
return this._queries;
|
114
|
+
}
|
115
|
+
/**
|
116
|
+
* @internal
|
117
|
+
*/
|
118
|
+
get options() {
|
119
|
+
return this._options;
|
120
|
+
}
|
121
|
+
/**
|
122
|
+
* Creates a vector search.
|
123
|
+
*
|
124
|
+
* Volatile: This API is subject to change at any time.
|
125
|
+
*
|
126
|
+
* @param query A vectory query that should be a part of the vector search.
|
127
|
+
*/
|
128
|
+
static fromVectorQuery(query) {
|
129
|
+
return new VectorSearch([query]);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
exports.VectorSearch = VectorSearch;
|
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.
|
57
|
+
"version": "4.2.10",
|
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.
|
83
|
-
"@couchbase/couchbase-darwin-x64-napi": "4.2.
|
84
|
-
"@couchbase/couchbase-linux-arm64-napi": "4.2.
|
85
|
-
"@couchbase/couchbase-linuxmusl-x64-napi": "4.2.
|
86
|
-
"@couchbase/couchbase-linux-x64-napi": "4.2.
|
87
|
-
"@couchbase/couchbase-win32-x64-napi": "4.2.
|
82
|
+
"@couchbase/couchbase-darwin-arm64-napi": "4.2.10",
|
83
|
+
"@couchbase/couchbase-darwin-x64-napi": "4.2.10",
|
84
|
+
"@couchbase/couchbase-linux-arm64-napi": "4.2.10",
|
85
|
+
"@couchbase/couchbase-linuxmusl-x64-napi": "4.2.10",
|
86
|
+
"@couchbase/couchbase-linux-x64-napi": "4.2.10",
|
87
|
+
"@couchbase/couchbase-win32-x64-napi": "4.2.10"
|
88
88
|
},
|
89
89
|
"files": [
|
90
90
|
"LICENSE",
|
package/src/constants.cpp
CHANGED
@@ -1051,6 +1051,17 @@ void Constants::InitAutogen(Napi::Env env, Napi::Object exports)
|
|
1051
1051
|
{"three", couchbase::replicate_to::three},
|
1052
1052
|
}));
|
1053
1053
|
|
1054
|
+
exports.Set(
|
1055
|
+
"vector_query_combination",
|
1056
|
+
cbppEnumToJs<couchbase::core::vector_query_combination>(
|
1057
|
+
env,
|
1058
|
+
{
|
1059
|
+
{"combination_and",
|
1060
|
+
couchbase::core::vector_query_combination::combination_and},
|
1061
|
+
{"combination_or",
|
1062
|
+
couchbase::core::vector_query_combination::combination_or},
|
1063
|
+
}));
|
1064
|
+
|
1054
1065
|
//#endregion Autogenerated Constants
|
1055
1066
|
}
|
1056
1067
|
|
package/src/jstocbpp_autogen.hpp
CHANGED
@@ -1364,7 +1364,7 @@ struct js_to_cbpp_t<
|
|
1364
1364
|
couchbase::core::topology::collections_manifest::collection cppObj;
|
1365
1365
|
js_to_cbpp<std::uint64_t>(cppObj.uid, jsObj.Get("uid"));
|
1366
1366
|
js_to_cbpp<std::string>(cppObj.name, jsObj.Get("name"));
|
1367
|
-
js_to_cbpp<std::
|
1367
|
+
js_to_cbpp<std::int32_t>(cppObj.max_expiry, jsObj.Get("max_expiry"));
|
1368
1368
|
js_to_cbpp<std::optional<bool>>(cppObj.history, jsObj.Get("history"));
|
1369
1369
|
return cppObj;
|
1370
1370
|
}
|
@@ -1377,7 +1377,7 @@ struct js_to_cbpp_t<
|
|
1377
1377
|
resObj.Set("uid", cbpp_to_js<std::uint64_t>(env, cppObj.uid));
|
1378
1378
|
resObj.Set("name", cbpp_to_js<std::string>(env, cppObj.name));
|
1379
1379
|
resObj.Set("max_expiry",
|
1380
|
-
cbpp_to_js<std::
|
1380
|
+
cbpp_to_js<std::int32_t>(env, cppObj.max_expiry));
|
1381
1381
|
resObj.Set("history",
|
1382
1382
|
cbpp_to_js<std::optional<bool>>(env, cppObj.history));
|
1383
1383
|
return resObj;
|
@@ -3874,6 +3874,13 @@ struct js_to_cbpp_t<couchbase::core::operations::search_request> {
|
|
3874
3874
|
js_to_cbpp<std::string>(cppObj.index_name, jsObj.Get("index_name"));
|
3875
3875
|
js_to_cbpp<couchbase::core::json_string>(cppObj.query,
|
3876
3876
|
jsObj.Get("query"));
|
3877
|
+
js_to_cbpp<std::optional<bool>>(cppObj.show_request,
|
3878
|
+
jsObj.Get("show_request"));
|
3879
|
+
js_to_cbpp<std::optional<couchbase::core::json_string>>(
|
3880
|
+
cppObj.vector_search, jsObj.Get("vector_search"));
|
3881
|
+
js_to_cbpp<std::optional<couchbase::core::vector_query_combination>>(
|
3882
|
+
cppObj.vector_query_combination,
|
3883
|
+
jsObj.Get("vector_query_combination"));
|
3877
3884
|
js_to_cbpp<std::optional<std::uint32_t>>(cppObj.limit,
|
3878
3885
|
jsObj.Get("limit"));
|
3879
3886
|
js_to_cbpp<std::optional<std::uint32_t>>(cppObj.skip,
|
@@ -3918,6 +3925,16 @@ struct js_to_cbpp_t<couchbase::core::operations::search_request> {
|
|
3918
3925
|
cbpp_to_js<std::string>(env, cppObj.index_name));
|
3919
3926
|
resObj.Set("query",
|
3920
3927
|
cbpp_to_js<couchbase::core::json_string>(env, cppObj.query));
|
3928
|
+
resObj.Set("show_request",
|
3929
|
+
cbpp_to_js<std::optional<bool>>(env, cppObj.show_request));
|
3930
|
+
resObj.Set("vector_search",
|
3931
|
+
cbpp_to_js<std::optional<couchbase::core::json_string>>(
|
3932
|
+
env, cppObj.vector_search));
|
3933
|
+
resObj.Set(
|
3934
|
+
"vector_query_combination",
|
3935
|
+
cbpp_to_js<
|
3936
|
+
std::optional<couchbase::core::vector_query_combination>>(
|
3937
|
+
env, cppObj.vector_query_combination));
|
3921
3938
|
resObj.Set("limit",
|
3922
3939
|
cbpp_to_js<std::optional<std::uint32_t>>(env, cppObj.limit));
|
3923
3940
|
resObj.Set("skip",
|
@@ -5252,7 +5269,7 @@ struct js_to_cbpp_t<
|
|
5252
5269
|
js_to_cbpp<std::string>(cppObj.scope_name, jsObj.Get("scope_name"));
|
5253
5270
|
js_to_cbpp<std::string>(cppObj.collection_name,
|
5254
5271
|
jsObj.Get("collection_name"));
|
5255
|
-
js_to_cbpp<std::
|
5272
|
+
js_to_cbpp<std::int32_t>(cppObj.max_expiry, jsObj.Get("max_expiry"));
|
5256
5273
|
js_to_cbpp<std::optional<bool>>(cppObj.history, jsObj.Get("history"));
|
5257
5274
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
5258
5275
|
jsObj.Get("client_context_id"));
|
@@ -5273,7 +5290,7 @@ struct js_to_cbpp_t<
|
|
5273
5290
|
resObj.Set("collection_name",
|
5274
5291
|
cbpp_to_js<std::string>(env, cppObj.collection_name));
|
5275
5292
|
resObj.Set("max_expiry",
|
5276
|
-
cbpp_to_js<std::
|
5293
|
+
cbpp_to_js<std::int32_t>(env, cppObj.max_expiry));
|
5277
5294
|
resObj.Set("history",
|
5278
5295
|
cbpp_to_js<std::optional<bool>>(env, cppObj.history));
|
5279
5296
|
resObj.Set("client_context_id", cbpp_to_js<std::optional<std::string>>(
|
@@ -7102,8 +7119,8 @@ struct js_to_cbpp_t<
|
|
7102
7119
|
js_to_cbpp<std::string>(cppObj.scope_name, jsObj.Get("scope_name"));
|
7103
7120
|
js_to_cbpp<std::string>(cppObj.collection_name,
|
7104
7121
|
jsObj.Get("collection_name"));
|
7105
|
-
js_to_cbpp<std::optional<std::
|
7106
|
-
|
7122
|
+
js_to_cbpp<std::optional<std::int32_t>>(cppObj.max_expiry,
|
7123
|
+
jsObj.Get("max_expiry"));
|
7107
7124
|
js_to_cbpp<std::optional<bool>>(cppObj.history, jsObj.Get("history"));
|
7108
7125
|
js_to_cbpp<std::optional<std::string>>(cppObj.client_context_id,
|
7109
7126
|
jsObj.Get("client_context_id"));
|
@@ -7123,7 +7140,7 @@ struct js_to_cbpp_t<
|
|
7123
7140
|
cbpp_to_js<std::string>(env, cppObj.scope_name));
|
7124
7141
|
resObj.Set("collection_name",
|
7125
7142
|
cbpp_to_js<std::string>(env, cppObj.collection_name));
|
7126
|
-
resObj.Set("max_expiry", cbpp_to_js<std::optional<std::
|
7143
|
+
resObj.Set("max_expiry", cbpp_to_js<std::optional<std::int32_t>>(
|
7127
7144
|
env, cppObj.max_expiry));
|
7128
7145
|
resObj.Set("history",
|
7129
7146
|
cbpp_to_js<std::optional<bool>>(env, cppObj.history));
|
@@ -72,6 +72,7 @@ fileList = [
|
|
72
72
|
"core/scan_options.hxx",
|
73
73
|
"core/range_scan_orchestrator_options.hxx",
|
74
74
|
"core/query_context.hxx",
|
75
|
+
"core/vector_query_combination.hxx",
|
75
76
|
]
|
76
77
|
|
77
78
|
typeList = [
|
@@ -165,6 +166,7 @@ typeList = [
|
|
165
166
|
"couchbase::core::range_scan_continue_result",
|
166
167
|
"couchbase::core::range_scan_cancel_result",
|
167
168
|
"couchbase::core::query_context",
|
169
|
+
"couchbase::core::vector_query_combination",
|
168
170
|
]
|
169
171
|
|
170
172
|
# end of configurable part
|