couchbase 3.2.0 → 3.2.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +24 -18
- package/binding.gyp +88 -85
- package/deps/lcb/CMakeLists.txt +1 -1
- package/deps/lcb/CONTRIBUTING.md +1 -1
- package/deps/lcb/README.markdown +2 -2
- package/deps/lcb/RELEASE_NOTES.markdown +99 -14
- package/deps/lcb/cmake/Modules/GetVersionInfo.cmake +1 -1
- package/deps/lcb/contrib/cbsasl/src/scram-sha/scram_utils.cc +22 -26
- package/deps/lcb/contrib/lcb-jsoncpp/lcb-jsoncpp.cpp +20 -7
- package/deps/lcb/doc/Doxyfile +1 -1
- package/deps/lcb/example/CMakeLists.txt +4 -4
- package/deps/lcb/example/libuvdirect/main.c +39 -12
- package/deps/lcb/example/minimal/durability.cc +149 -0
- package/deps/lcb/example/minimal/query.c +11 -9
- package/deps/lcb/gyp_config/common/libcouchbase/configuration.h +3 -3
- package/deps/lcb/gyp_config/linux/arm64/config.h +243 -0
- package/deps/lcb/include/libcouchbase/couchbase.h +80 -5
- package/deps/lcb/include/libcouchbase/error.h +2 -0
- package/deps/lcb/include/libcouchbase/ixmgmt.h +15 -10
- package/deps/lcb/include/libcouchbase/tracing.h +2 -2
- package/deps/lcb/include/memcached/protocol_binary.h +21 -0
- package/deps/lcb/libcouchbase.gyp +347 -349
- package/deps/lcb/packaging/deb/control +1 -1
- package/deps/lcb/src/analytics/analytics_handle.cc +13 -5
- package/deps/lcb/src/analytics/analytics_handle.hh +29 -0
- package/deps/lcb/src/bootstrap.cc +6 -3
- package/deps/lcb/src/capi/cmd_analytics.cc +12 -1
- package/deps/lcb/src/capi/cmd_analytics.hh +30 -0
- package/deps/lcb/src/capi/cmd_counter.hh +23 -0
- package/deps/lcb/src/capi/cmd_exists.hh +24 -1
- package/deps/lcb/src/capi/cmd_get.hh +22 -0
- package/deps/lcb/src/capi/cmd_get_replica.hh +23 -0
- package/deps/lcb/src/capi/cmd_http.hh +7 -0
- package/deps/lcb/src/capi/cmd_query.cc +11 -1
- package/deps/lcb/src/capi/cmd_query.hh +31 -0
- package/deps/lcb/src/capi/cmd_remove.hh +23 -0
- package/deps/lcb/src/capi/cmd_search.cc +6 -0
- package/deps/lcb/src/capi/cmd_search.hh +23 -0
- package/deps/lcb/src/capi/cmd_store.hh +33 -21
- package/deps/lcb/src/capi/cmd_subdoc.hh +35 -0
- package/deps/lcb/src/capi/cmd_touch.hh +23 -0
- package/deps/lcb/src/capi/cmd_unlock.hh +23 -0
- package/deps/lcb/src/capi/cmd_view.hh +6 -0
- package/deps/lcb/src/capi/collection_qualifier.hh +2 -2
- package/deps/lcb/src/cntl.cc +45 -11
- package/deps/lcb/src/crypto.cc +2 -2
- package/deps/lcb/src/dns-srv.cc +5 -3
- package/deps/lcb/src/errmap.cc +5 -9
- package/deps/lcb/src/errmap.h +7 -3
- package/deps/lcb/src/handler.cc +24 -18
- package/deps/lcb/src/hostlist.h +2 -2
- package/deps/lcb/src/http/http-priv.h +2 -2
- package/deps/lcb/src/http/http.cc +5 -2
- package/deps/lcb/src/instance.cc +20 -11
- package/deps/lcb/src/internal.h +9 -0
- package/deps/lcb/src/lcbio/connect.cc +14 -2
- package/deps/lcb/src/lcbio/connect.h +2 -2
- package/deps/lcb/src/lcbio/ctx.cc +4 -2
- package/deps/lcb/src/lcbio/ioutils.cc +9 -10
- package/deps/lcb/src/lcbio/manager.cc +1 -1
- package/deps/lcb/src/mcserver/mcserver.cc +9 -6
- package/deps/lcb/src/mcserver/negotiate.cc +39 -17
- package/deps/lcb/src/n1ql/ixmgmt.cc +1 -2
- package/deps/lcb/src/n1ql/query_handle.cc +41 -19
- package/deps/lcb/src/n1ql/query_handle.hh +28 -1
- package/deps/lcb/src/operations/counter.cc +18 -5
- package/deps/lcb/src/operations/exists.cc +25 -4
- package/deps/lcb/src/operations/get.cc +39 -19
- package/deps/lcb/src/operations/get_replica.cc +28 -8
- package/deps/lcb/src/operations/observe.cc +1 -1
- package/deps/lcb/src/operations/ping.cc +8 -8
- package/deps/lcb/src/operations/pktfwd.cc +2 -1
- package/deps/lcb/src/operations/remove.cc +39 -22
- package/deps/lcb/src/operations/store.cc +18 -5
- package/deps/lcb/src/operations/subdoc.cc +18 -6
- package/deps/lcb/src/operations/touch.cc +34 -16
- package/deps/lcb/src/operations/unlock.cc +24 -5
- package/deps/lcb/src/packetutils.h +3 -2
- package/deps/lcb/src/retryq.cc +24 -5
- package/deps/lcb/src/search/search.cc +1 -0
- package/deps/lcb/src/search/search_handle.cc +30 -8
- package/deps/lcb/src/search/search_handle.hh +29 -0
- package/deps/lcb/src/settings.cc +1 -1
- package/deps/lcb/src/ssl/ssl_common.c +6 -7
- package/deps/lcb/src/tracing/span.cc +47 -14
- package/deps/lcb/src/tracing/tracer.cc +11 -2
- package/deps/lcb/src/tracing/tracing-internal.h +105 -93
- package/deps/lcb/src/utilities.cc +43 -0
- package/deps/lcb/src/utilities.h +53 -0
- package/deps/lcb/src/vbucket/vbucket.c +34 -33
- package/deps/lcb/src/views/view_handle.cc +13 -5
- package/deps/lcb/src/views/view_handle.hh +29 -0
- package/deps/lcb/tests/CMakeLists.txt +21 -0
- package/deps/lcb/tests/basic/t_ctlcodes.cc +24 -3
- package/deps/lcb/tests/basic/t_jsparse.cc +8 -0
- package/deps/lcb/tests/basic/t_n1qlstrings.cc +73 -0
- package/deps/lcb/tests/iotests/mock-environment.cc +30 -1
- package/deps/lcb/tests/iotests/mock-environment.h +49 -0
- package/deps/lcb/tests/iotests/mock-unit-test.cc +104 -6
- package/deps/lcb/tests/iotests/mock-unit-test.h +34 -0
- package/deps/lcb/tests/iotests/t_collections.cc +1 -1
- package/deps/lcb/tests/iotests/t_confmon.cc +4 -2
- package/deps/lcb/tests/iotests/t_get.cc +109 -7
- package/deps/lcb/tests/iotests/t_http.cc +9 -4
- package/deps/lcb/tests/iotests/t_lock.cc +18 -0
- package/deps/lcb/tests/iotests/t_mutate.cc +157 -63
- package/deps/lcb/tests/iotests/t_n1ql.cc +330 -33
- package/deps/lcb/tests/iotests/t_views.cc +1 -0
- package/deps/lcb/tests/iotests/testutil.cc +168 -0
- package/deps/lcb/tests/iotests/testutil.h +116 -0
- package/deps/lcb/tests/mocksupport/procutil.c +32 -28
- package/deps/lcb/tests/mocksupport/server.c +0 -1
- package/deps/lcb/tests/mocksupport/timeout.c +2 -2
- package/deps/lcb/tools/cbc.cc +7 -0
- package/dist/analyticsindexmanager.js +512 -524
- package/dist/binding.d.ts +3 -0
- package/dist/bindingutilities.js +4 -0
- package/dist/bucket.js +1 -1
- package/dist/bucketmanager.d.ts +31 -1
- package/dist/bucketmanager.js +194 -186
- package/dist/cluster.d.ts +7 -0
- package/dist/cluster.js +48 -38
- package/dist/collection.js +11 -17
- package/dist/collectionmanager.js +181 -197
- package/dist/connection.d.ts +3 -1
- package/dist/connection.js +27 -16
- package/dist/couchbase.d.ts +1 -0
- package/dist/couchbase.js +3 -13
- package/dist/datastructures.js +239 -310
- package/dist/diagnosticsexecutor.js +70 -85
- package/dist/errors.d.ts +70 -0
- package/dist/errors.js +96 -2
- package/dist/eventingfunctionmanager.d.ts +804 -0
- package/dist/eventingfunctionmanager.js +993 -0
- package/dist/httpexecutor.d.ts +2 -1
- package/dist/httpexecutor.js +30 -37
- package/dist/queryindexmanager.js +240 -266
- package/dist/scope.js +10 -4
- package/dist/sdspecs.d.ts +1 -1
- package/dist/searchexecutor.js +3 -0
- package/dist/searchindexmanager.js +240 -271
- package/dist/searchquery.d.ts +17 -0
- package/dist/searchquery.js +22 -1
- package/dist/searchtypes.d.ts +7 -2
- package/dist/searchtypes.js +2 -2
- package/dist/usermanager.js +251 -264
- package/dist/utilities.d.ts +2 -0
- package/dist/utilities.js +7 -2
- package/dist/viewexecutor.js +1 -1
- package/dist/viewindexmanager.js +131 -150
- package/package.json +1 -1
- package/src/addondata.cpp +58 -0
- package/src/addondata.h +40 -0
- package/src/binding.cpp +3 -1
- package/src/cas.h +2 -2
- package/src/connection.cpp +25 -178
- package/src/connection.h +8 -65
- package/src/connection_ops.cpp +57 -34
- package/src/constants.cpp +3 -0
- package/src/instance.cpp +235 -0
- package/src/instance.h +102 -0
- package/src/{connection_callbacks.cpp → instance_callbacks.cpp} +34 -34
- package/src/logger.cpp +11 -1
- package/src/logger.h +3 -0
- package/src/metrics.cpp +10 -0
- package/src/metrics.h +3 -0
- package/src/mutationtoken.h +2 -2
- package/src/opbuilder.h +13 -15
- package/src/respreader.cpp +1 -0
- package/src/respreader.h +6 -4
- package/src/tracespan.h +11 -11
- package/src/tracing.cpp +11 -0
- package/src/tracing.h +3 -0
- package/src/valueparser.h +5 -0
- package/deps/lcb/example/observe/durability.c +0 -110
@@ -706,6 +706,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdget_key(lcb_CMDGET *cmd, const char *key, siz
|
|
706
706
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdget_expiry(lcb_CMDGET *cmd, uint32_t expiration);
|
707
707
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdget_locktime(lcb_CMDGET *cmd, uint32_t duration);
|
708
708
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdget_timeout(lcb_CMDGET *cmd, uint32_t timeout);
|
709
|
+
/**
|
710
|
+
* @internal Internal: This should never be used and is not supported.
|
711
|
+
*/
|
712
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdget_on_behalf_of(lcb_CMDGET *cmd, const char *data, size_t data_len);
|
709
713
|
|
710
714
|
LIBCOUCHBASE_API lcb_STATUS lcb_get(lcb_INSTANCE *instance, void *cookie, const lcb_CMDGET *cmd);
|
711
715
|
/**@}*/
|
@@ -808,6 +812,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdgetreplica_collection(lcb_CMDGETREPLICA *cmd,
|
|
808
812
|
const char *collection, size_t collection_len);
|
809
813
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdgetreplica_key(lcb_CMDGETREPLICA *cmd, const char *key, size_t key_len);
|
810
814
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdgetreplica_timeout(lcb_CMDGETREPLICA *cmd, uint32_t timeout);
|
815
|
+
/**
|
816
|
+
* @internal Internal: This should never be used and is not supported.
|
817
|
+
*/
|
818
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdgetreplica_on_behalf_of(lcb_CMDGETREPLICA *cmd, const char *data, size_t data_len);
|
811
819
|
LIBCOUCHBASE_API lcb_STATUS lcb_getreplica(lcb_INSTANCE *instance, void *cookie, const lcb_CMDGETREPLICA *cmd);
|
812
820
|
|
813
821
|
/**@}*/
|
@@ -831,6 +839,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdexists_collection(lcb_CMDEXISTS *cmd, const c
|
|
831
839
|
const char *collection, size_t collection_len);
|
832
840
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdexists_key(lcb_CMDEXISTS *cmd, const char *key, size_t key_len);
|
833
841
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdexists_timeout(lcb_CMDEXISTS *cmd, uint32_t timeout);
|
842
|
+
/**
|
843
|
+
* @internal Internal: This should never be used and is not supported.
|
844
|
+
*/
|
845
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdexists_on_behalf_of(lcb_CMDEXISTS *cmd, const char *data, size_t data_len);
|
834
846
|
|
835
847
|
LIBCOUCHBASE_API lcb_STATUS lcb_exists(lcb_INSTANCE *instance, void *cookie, const lcb_CMDEXISTS *cmd);
|
836
848
|
|
@@ -978,6 +990,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdstore_datatype(lcb_CMDSTORE *cmd, uint8_t dat
|
|
978
990
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdstore_durability(lcb_CMDSTORE *cmd, lcb_DURABILITY_LEVEL level);
|
979
991
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdstore_durability_observe(lcb_CMDSTORE *cmd, int persist_to, int replicate_to);
|
980
992
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdstore_timeout(lcb_CMDSTORE *cmd, uint32_t timeout);
|
993
|
+
/**
|
994
|
+
* @internal Internal: This should never be used and is not supported.
|
995
|
+
*/
|
996
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdstore_on_behalf_of(lcb_CMDSTORE *cmd, const char *data, size_t data_len);
|
981
997
|
LIBCOUCHBASE_API lcb_STATUS lcb_store(lcb_INSTANCE *instance, void *cookie, const lcb_CMDSTORE *cmd);
|
982
998
|
/**@}*/
|
983
999
|
|
@@ -1083,6 +1099,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdremove_key(lcb_CMDREMOVE *cmd, const char *ke
|
|
1083
1099
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdremove_cas(lcb_CMDREMOVE *cmd, uint64_t cas);
|
1084
1100
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdremove_durability(lcb_CMDREMOVE *cmd, lcb_DURABILITY_LEVEL level);
|
1085
1101
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdremove_timeout(lcb_CMDREMOVE *cmd, uint32_t timeout);
|
1102
|
+
/**
|
1103
|
+
* @internal Internal: This should never be used and is not supported.
|
1104
|
+
*/
|
1105
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdremove_on_behalf_of(lcb_CMDREMOVE *cmd, const char *data, size_t data_len);
|
1086
1106
|
LIBCOUCHBASE_API lcb_STATUS lcb_remove(lcb_INSTANCE *instance, void *cookie, const lcb_CMDREMOVE *cmd);
|
1087
1107
|
|
1088
1108
|
/**@}*/
|
@@ -1170,8 +1190,12 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdcounter_delta(lcb_CMDCOUNTER *cmd, int64_t nu
|
|
1170
1190
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdcounter_initial(lcb_CMDCOUNTER *cmd, uint64_t number);
|
1171
1191
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdcounter_durability(lcb_CMDCOUNTER *cmd, lcb_DURABILITY_LEVEL level);
|
1172
1192
|
LCB_DEPRECATED2(LIBCOUCHBASE_API lcb_STATUS lcb_cmdcounter_cas(lcb_CMDCOUNTER *cmd, uint64_t cas),
|
1173
|
-
"CAS is not applicable to arithmetic operations");
|
1193
|
+
"CAS is not applicable to arithmetic operations");
|
1174
1194
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdcounter_timeout(lcb_CMDCOUNTER *cmd, uint32_t timeout);
|
1195
|
+
/**
|
1196
|
+
* @internal Internal: This should never be used and is not supported.
|
1197
|
+
*/
|
1198
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdcounter_on_behalf_of(lcb_CMDCOUNTER *cmd, const char *data, size_t data_len);
|
1175
1199
|
LIBCOUCHBASE_API lcb_STATUS lcb_counter(lcb_INSTANCE *instance, void *cookie, const lcb_CMDCOUNTER *cmd);
|
1176
1200
|
|
1177
1201
|
/**@} (Group: Counter) */
|
@@ -1249,6 +1273,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdunlock_collection(lcb_CMDUNLOCK *cmd, const c
|
|
1249
1273
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdunlock_key(lcb_CMDUNLOCK *cmd, const char *key, size_t key_len);
|
1250
1274
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdunlock_cas(lcb_CMDUNLOCK *cmd, uint64_t cas);
|
1251
1275
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdunlock_timeout(lcb_CMDUNLOCK *cmd, uint32_t timeout);
|
1276
|
+
/**
|
1277
|
+
* @internal Internal: This should never be used and is not supported.
|
1278
|
+
*/
|
1279
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdunlock_on_behalf_of(lcb_CMDUNLOCK *cmd, const char *data, size_t data_len);
|
1252
1280
|
LIBCOUCHBASE_API lcb_STATUS lcb_unlock(lcb_INSTANCE *instance, void *cookie, const lcb_CMDUNLOCK *cmd);
|
1253
1281
|
|
1254
1282
|
/**@} (Group: Unlock) */
|
@@ -1316,6 +1344,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdtouch_key(lcb_CMDTOUCH *cmd, const char *key,
|
|
1316
1344
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdtouch_expiry(lcb_CMDTOUCH *cmd, uint32_t expiration);
|
1317
1345
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdtouch_durability(lcb_CMDTOUCH *cmd, lcb_DURABILITY_LEVEL level);
|
1318
1346
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdtouch_timeout(lcb_CMDTOUCH *cmd, uint32_t timeout);
|
1347
|
+
/**
|
1348
|
+
* @internal Internal: This should never be used and is not supported.
|
1349
|
+
*/
|
1350
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdtouch_on_behalf_of(lcb_CMDTOUCH *cmd, const char *data, size_t data_len);
|
1319
1351
|
LIBCOUCHBASE_API lcb_STATUS lcb_touch(lcb_INSTANCE *instance, void *cookie, const lcb_CMDTOUCH *cmd);
|
1320
1352
|
|
1321
1353
|
/**@} (Group: Touch) */
|
@@ -2491,6 +2523,22 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_statement(lcb_CMDANALYTICS *cmd, co
|
|
2491
2523
|
size_t statement_len);
|
2492
2524
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_named_param(lcb_CMDANALYTICS *cmd, const char *name, size_t name_len,
|
2493
2525
|
const char *value, size_t value_len);
|
2526
|
+
/**
|
2527
|
+
* Sets the _positional_ arguments for the query
|
2528
|
+
*
|
2529
|
+
* @param cmd the command
|
2530
|
+
* @param value the arguments encoded as JSON array
|
2531
|
+
* @param value_len the length of the argument.
|
2532
|
+
*/
|
2533
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_positional_params(lcb_CMDANALYTICS *cmd, const char *value,
|
2534
|
+
size_t value_len);
|
2535
|
+
/**
|
2536
|
+
* @deprecated This function will be marked as deprecated in 3.3.0, and will start emitting compiler warning. Use
|
2537
|
+
* lcb_cmdanalytics_positional_params instead.
|
2538
|
+
* @param cmd the command
|
2539
|
+
* @param value the argument value in JSON encoding
|
2540
|
+
* @param value_len the length of the encoded value
|
2541
|
+
*/
|
2494
2542
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_positional_param(lcb_CMDANALYTICS *cmd, const char *value,
|
2495
2543
|
size_t value_len);
|
2496
2544
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_ingest_options(lcb_CMDANALYTICS *cmd, lcb_INGEST_OPTIONS *options);
|
@@ -2514,7 +2562,9 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_scope_name(lcb_CMDANALYTICS *cmd, c
|
|
2514
2562
|
*
|
2515
2563
|
* Associate scope_qualifier (also known as `query_context`) with the query.
|
2516
2564
|
*
|
2517
|
-
* The qualifier must be in form
|
2565
|
+
* The qualifier must be in form `default:${bucket_name}.${scope_name}`.
|
2566
|
+
*
|
2567
|
+
* @see REST API definition at https://docs.couchbase.com/server/current/analytics/rest-service.html
|
2518
2568
|
*
|
2519
2569
|
* @param cmd the command
|
2520
2570
|
* @param qualifier the string containing qualifier
|
@@ -2531,6 +2581,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_scope_qualifier(lcb_CMDANALYTICS *c
|
|
2531
2581
|
*/
|
2532
2582
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_handle(lcb_CMDANALYTICS *cmd, lcb_ANALYTICS_HANDLE **handle);
|
2533
2583
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_timeout(lcb_CMDANALYTICS *cmd, uint32_t timeout);
|
2584
|
+
/**
|
2585
|
+
* @internal Internal: This should never be used and is not supported.
|
2586
|
+
*/
|
2587
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdanalytics_on_behalf_of(lcb_CMDANALYTICS *cmd, const char *data, size_t data_len);
|
2534
2588
|
/**
|
2535
2589
|
* Execute a Analytics query.
|
2536
2590
|
*
|
@@ -2658,6 +2712,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdsearch_payload(lcb_CMDSEARCH *cmd, const char
|
|
2658
2712
|
*/
|
2659
2713
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdsearch_handle(lcb_CMDSEARCH *cmd, lcb_SEARCH_HANDLE **handle);
|
2660
2714
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdsearch_timeout(lcb_CMDSEARCH *cmd, uint32_t timeout);
|
2715
|
+
/**
|
2716
|
+
* @internal Internal: This should never be used and is not supported.
|
2717
|
+
*/
|
2718
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdsearch_on_behalf_of(lcb_CMDSEARCH *cmd, const char *data, size_t data_len);
|
2661
2719
|
|
2662
2720
|
/**
|
2663
2721
|
* Issue a full-text query. The callback (lcb_SEARCH_CALLBACK) will be invoked
|
@@ -2900,13 +2958,20 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_scope_qualifier(lcb_CMDQUERY *cmd, cons
|
|
2900
2958
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_named_param(lcb_CMDQUERY *cmd, const char *name, size_t name_len,
|
2901
2959
|
const char *value, size_t value_len);
|
2902
2960
|
/**
|
2903
|
-
*
|
2961
|
+
* Sets the _positional_ arguments for the query
|
2904
2962
|
*
|
2905
|
-
* The position is assumed to be the order they are set.
|
2906
2963
|
* @param cmd the command
|
2907
|
-
* @param value the
|
2964
|
+
* @param value the arguments encoded as JSON array
|
2908
2965
|
* @param value_len the length of the argument.
|
2909
2966
|
*/
|
2967
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_positional_params(lcb_CMDQUERY *cmd, const char *value, size_t value_len);
|
2968
|
+
/**
|
2969
|
+
* @deprecated This function will be marked as deprecated in 3.3.0, and will start emitting compiler warning. Use
|
2970
|
+
* lcb_cmdquery_positional_params instead.
|
2971
|
+
* @param cmd the command
|
2972
|
+
* @param value the argument value in JSON encoding
|
2973
|
+
* @param value_len the length of the encoded value
|
2974
|
+
*/
|
2910
2975
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_positional_param(lcb_CMDQUERY *cmd, const char *value, size_t value_len);
|
2911
2976
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_adhoc(lcb_CMDQUERY *cmd, int adhoc);
|
2912
2977
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_client_context_id(lcb_CMDQUERY *cmd, const char *value, size_t value_len);
|
@@ -3005,6 +3070,12 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_option(lcb_CMDQUERY *cmd, const char *n
|
|
3005
3070
|
size_t value_len);
|
3006
3071
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_handle(lcb_CMDQUERY *cmd, lcb_QUERY_HANDLE **handle);
|
3007
3072
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_timeout(lcb_CMDQUERY *cmd, uint32_t timeout);
|
3073
|
+
|
3074
|
+
/**
|
3075
|
+
* @internal Internal: This should never be used and is not supported.
|
3076
|
+
*/
|
3077
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdquery_on_behalf_of(lcb_CMDQUERY *cmd, const char *data, size_t data_len);
|
3078
|
+
|
3008
3079
|
/**
|
3009
3080
|
* Execute a N1QL query.
|
3010
3081
|
*
|
@@ -3215,6 +3286,10 @@ LIBCOUCHBASE_API lcb_STATUS lcb_cmdsubdoc_access_deleted(lcb_CMDSUBDOC *cmd, int
|
|
3215
3286
|
*/
|
3216
3287
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdsubdoc_create_as_deleted(lcb_CMDSUBDOC *cmd, int flag);
|
3217
3288
|
LIBCOUCHBASE_API lcb_STATUS lcb_cmdsubdoc_timeout(lcb_CMDSUBDOC *cmd, uint32_t timeout);
|
3289
|
+
/**
|
3290
|
+
* @internal Internal: This should never be used and is not supported.
|
3291
|
+
*/
|
3292
|
+
LIBCOUCHBASE_API lcb_STATUS lcb_cmdsubdoc_on_behalf_of(lcb_CMDSUBDOC *cmd, const char *data, size_t data_len);
|
3218
3293
|
|
3219
3294
|
LIBCOUCHBASE_API lcb_STATUS lcb_subdoc(lcb_INSTANCE *instance, void *cookie, const lcb_CMDSUBDOC *cmd);
|
3220
3295
|
/** @} */
|
@@ -86,6 +86,8 @@ X(LCB_ERR_UNAMBIGUOUS_TIMEOUT, 216, LCB_ERROR_TYPE_SHARED, 0, "Unambiguous
|
|
86
86
|
X(LCB_ERR_SCOPE_NOT_FOUND, 217, LCB_ERROR_TYPE_SHARED, 0, "Scope is not found") \
|
87
87
|
X(LCB_ERR_INDEX_NOT_FOUND, 218, LCB_ERROR_TYPE_SHARED, 0, "Index is not found") \
|
88
88
|
X(LCB_ERR_INDEX_EXISTS, 219, LCB_ERROR_TYPE_SHARED, 0, "Index is exist already") \
|
89
|
+
X(LCB_ERR_RATE_LIMITED, 220, LCB_ERROR_TYPE_SHARED, 0, "The service decided that the caller must be rate limited due to exceeding a rate threshold") \
|
90
|
+
X(LCB_ERR_QUOTA_LIMITED, 221, LCB_ERROR_TYPE_SHARED, 0, "The service decided that the caller must be limited due to exceeding a quota threshold") \
|
89
91
|
\
|
90
92
|
/* KeyValue Error Definitions */ \
|
91
93
|
X(LCB_ERR_DOCUMENT_NOT_FOUND, 301, LCB_ERROR_TYPE_KEYVALUE, 0, "Document is not found") \
|
@@ -177,8 +177,9 @@ typedef struct lcb_RESPN1XMGMT_st {
|
|
177
177
|
* Retrieve a list of all indexes in the cluster. If lcb_CMDN1XMGMT::spec
|
178
178
|
* contains entries then the search will be limited to the appropriate criteria.
|
179
179
|
*/
|
180
|
-
LIBCOUCHBASE_API
|
181
|
-
|
180
|
+
LCB_DEPRECATED2(LIBCOUCHBASE_API lcb_STATUS lcb_n1x_list(lcb_INSTANCE *instance, const void *cookie,
|
181
|
+
const lcb_CMDN1XMGMT *cmd),
|
182
|
+
"lcb_http must be used directly");
|
182
183
|
|
183
184
|
/**
|
184
185
|
* @volatile
|
@@ -186,15 +187,17 @@ lcb_STATUS lcb_n1x_list(lcb_INSTANCE *instance, const void *cookie, const lcb_CM
|
|
186
187
|
* Create an index. The index can either be a primary or secondary index, and
|
187
188
|
* it may be created immediately or it may be deferred.
|
188
189
|
*/
|
189
|
-
LIBCOUCHBASE_API
|
190
|
-
|
190
|
+
LCB_DEPRECATED2(LIBCOUCHBASE_API lcb_STATUS lcb_n1x_create(lcb_INSTANCE *instance, const void *cookie,
|
191
|
+
const lcb_CMDN1XMGMT *cmd),
|
192
|
+
"lcb_http must be used directly");
|
191
193
|
|
192
194
|
/**
|
193
195
|
* @volatile
|
194
196
|
* Remove an index.
|
195
197
|
*/
|
196
|
-
LIBCOUCHBASE_API
|
197
|
-
|
198
|
+
LCB_DEPRECATED2(LIBCOUCHBASE_API lcb_STATUS lcb_n1x_drop(lcb_INSTANCE *instance, const void *cookie,
|
199
|
+
const lcb_CMDN1XMGMT *cmd),
|
200
|
+
"lcb_http must be used directly");
|
198
201
|
|
199
202
|
/**
|
200
203
|
* @volatile
|
@@ -205,8 +208,9 @@ lcb_STATUS lcb_n1x_drop(lcb_INSTANCE *instance, const void *cookie, const lcb_CM
|
|
205
208
|
*
|
206
209
|
* lcb_n1x_watchbuild may be used to wait on the status of those indexes.
|
207
210
|
*/
|
208
|
-
LIBCOUCHBASE_API
|
209
|
-
|
211
|
+
LCB_DEPRECATED2(LIBCOUCHBASE_API lcb_STATUS lcb_n1x_startbuild(lcb_INSTANCE *instance, const void *cookie,
|
212
|
+
const lcb_CMDN1XMGMT *cmd),
|
213
|
+
"lcb_http must be used directly");
|
210
214
|
|
211
215
|
/**
|
212
216
|
* @volatile
|
@@ -250,8 +254,9 @@ typedef struct {
|
|
250
254
|
* which are being built (using lcb_n1x_startbuild()) have been fully
|
251
255
|
* created.
|
252
256
|
*/
|
253
|
-
LIBCOUCHBASE_API
|
254
|
-
|
257
|
+
LCB_DEPRECATED2(LIBCOUCHBASE_API lcb_STATUS lcb_n1x_watchbuild(lcb_INSTANCE *instance, const void *cookie,
|
258
|
+
const lcb_CMDN1XWATCH *cmd),
|
259
|
+
"lcb_http must be used directly");
|
255
260
|
|
256
261
|
#ifdef __cplusplus
|
257
262
|
}
|
@@ -406,7 +406,7 @@ lcb_STATUS lcbtrace_span_set_is_dispatch(lcbtrace_SPAN *span, int dispatch);
|
|
406
406
|
/**
|
407
407
|
* Bucket name
|
408
408
|
*/
|
409
|
-
#define LCBTRACE_TAG_DB_INSTANCE "db.
|
409
|
+
#define LCBTRACE_TAG_DB_INSTANCE "db.name"
|
410
410
|
/**
|
411
411
|
* The client's identifier string (the 'u' property in the updated HELLO request),
|
412
412
|
* the same one that is shared with the server to identify the SDK.
|
@@ -492,7 +492,7 @@ lcb_STATUS lcbtrace_span_set_is_dispatch(lcbtrace_SPAN *span, int dispatch);
|
|
492
492
|
/**
|
493
493
|
* Transport used in trace.
|
494
494
|
*/
|
495
|
-
#define LCBTRACE_TAG_TRANSPORT "
|
495
|
+
#define LCBTRACE_TAG_TRANSPORT "net.transport"
|
496
496
|
/**
|
497
497
|
* Get ID of the span.
|
498
498
|
*
|
@@ -133,6 +133,27 @@ typedef enum {
|
|
133
133
|
* users access to the cluster. */
|
134
134
|
PROTOCOL_BINARY_RESPONSE_NOT_INITIALIZED = 0x25,
|
135
135
|
|
136
|
+
/**
|
137
|
+
* The tenant exceeded network ingress limit
|
138
|
+
*/
|
139
|
+
PROTOCOL_BINARY_RATE_LIMITED_NETWORK_INGRESS = 0x30,
|
140
|
+
/**
|
141
|
+
* The tenant exceeded network egress limit
|
142
|
+
*/
|
143
|
+
PROTOCOL_BINARY_RATE_LIMITED_NETWORK_EGRESS = 0x31,
|
144
|
+
/**
|
145
|
+
* The tenant exceeded max number of connections
|
146
|
+
*/
|
147
|
+
PROTOCOL_BINARY_RATE_LIMITED_MAX_CONNECTIONS = 0x32,
|
148
|
+
/**
|
149
|
+
* The tenant exceeded max number of commands
|
150
|
+
*/
|
151
|
+
PROTOCOL_BINARY_RATE_LIMITED_MAX_COMMANDS = 0x33,
|
152
|
+
/**
|
153
|
+
* There is too much data in the scope
|
154
|
+
*/
|
155
|
+
PROTOCOL_BINARY_SCOPE_SIZE_LIMIT_EXCEEDED = 0x34,
|
156
|
+
|
136
157
|
/** The server have no idea what this command is for */
|
137
158
|
PROTOCOL_BINARY_RESPONSE_UNKNOWN_COMMAND = 0x81,
|
138
159
|
/** Not enough memory */
|