Couchbase C++ SDK 1.4.0 (rev. 59aa900)
Loading...
Searching...
No Matches
collection.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
2/*
3 * Copyright 2020-Present Couchbase, Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18#pragma once
19
23#include <couchbase/error.hxx>
25#include <couchbase/expiry.hxx>
49
50#include <future>
51#include <memory>
52
53namespace couchbase
54{
55#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
56namespace core
57{
58class cluster;
59} // namespace core
60class bucket;
61class scope;
62class collection_impl;
63namespace crypto
64{
65class manager;
66} // namespace crypto
67#endif
68
75class collection
76{
77public:
84 static constexpr auto default_name{ "_default" };
85
94 [[nodiscard]] auto bucket_name() const -> const std::string&;
95
104 [[nodiscard]] auto scope_name() const -> const std::string&;
105
114 [[nodiscard]] auto name() const -> const std::string&;
115
124 [[nodiscard]] auto binary() const -> binary_collection;
125
141 void get(std::string document_id, const get_options& options, get_handler&& handler) const;
142
158 [[nodiscard]] auto get(std::string document_id, const get_options& options = {}) const
159 -> std::future<std::pair<error, get_result>>;
160
177 void get_and_touch(std::string document_id,
178 std::chrono::seconds duration,
179 const get_and_touch_options& options,
180 get_and_touch_handler&& handler) const;
181
198 [[nodiscard]] auto get_and_touch(std::string document_id,
199 std::chrono::seconds duration,
200 const get_and_touch_options& options = {}) const
201 -> std::future<std::pair<error, get_result>>;
202
219 void get_and_touch(std::string document_id,
220 std::chrono::system_clock::time_point time_point,
221 const get_and_touch_options& options,
222 get_and_touch_handler&& handler) const;
223
240 [[nodiscard]] auto get_and_touch(std::string document_id,
241 std::chrono::system_clock::time_point time_point,
242 const get_and_touch_options& options = {}) const
243 -> std::future<std::pair<error, get_result>>;
244
261 void touch(std::string document_id,
262 std::chrono::seconds duration,
263 const touch_options& options,
264 touch_handler&& handler) const;
265
282 [[nodiscard]] auto touch(std::string document_id,
283 std::chrono::seconds duration,
284 const touch_options& options = {}) const
285 -> std::future<std::pair<error, result>>;
286
303 void touch(std::string document_id,
304 std::chrono::system_clock::time_point time_point,
305 const touch_options& options,
306 touch_handler&& handler) const;
307
324 [[nodiscard]] auto touch(std::string document_id,
325 std::chrono::system_clock::time_point time_point,
326 const touch_options& options = {}) const
327 -> std::future<std::pair<error, result>>;
328
351 void get_any_replica(std::string document_id,
352 const get_any_replica_options& options,
353 get_any_replica_handler&& handler) const;
354
384 [[nodiscard]] auto get_any_replica(std::string document_id,
385 const get_any_replica_options& options = {}) const
386 -> std::future<std::pair<error, get_replica_result>>;
387
413 void get_all_replicas(std::string document_id,
414 const get_all_replicas_options& options,
415 get_all_replicas_handler&& handler) const;
416
449 [[nodiscard]] auto get_all_replicas(std::string document_id,
450 const get_all_replicas_options& options = {}) const
451 -> std::future<std::pair<error, get_all_replicas_result>>;
452
468 void upsert(std::string document_id,
469 codec::encoded_value document,
470 const upsert_options& options,
471 upsert_handler&& handler) const;
472
490 template<typename Transcoder = codec::default_json_transcoder, typename Document>
491 void upsert(std::string document_id,
492 Document document,
493 const upsert_options& options,
494 upsert_handler&& handler) const
495 {
496 return upsert(std::move(document_id),
497 create_encode_fn<Transcoder, Document>(std::move(document)),
498 options,
499 std::move(handler));
500 }
501
517 [[nodiscard]] auto upsert(std::string document_id,
518 codec::encoded_value document,
519 const upsert_options& options) const
520 -> std::future<std::pair<error, mutation_result>>;
521
539 template<typename Transcoder = codec::default_json_transcoder, typename Document>
540 [[nodiscard]] auto upsert(std::string document_id,
541 Document document,
542 const upsert_options& options = {}) const
543 -> std::future<std::pair<error, mutation_result>>
544 {
545 return upsert(
546 std::move(document_id), create_encode_fn<Transcoder, Document>(std::move(document)), options);
547 }
548
563 void insert(std::string document_id,
564 codec::encoded_value document,
565 const insert_options& options,
566 insert_handler&& handler) const;
567
587 template<typename Transcoder = codec::default_json_transcoder,
588 typename Document,
589 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>, bool> = true>
590 void insert(std::string document_id,
591 Document document,
592 const insert_options& options,
593 insert_handler&& handler) const
594 {
595 return insert(std::move(document_id),
596 create_encode_fn<Transcoder, Document>(std::move(document)),
597 options,
598 std::move(handler));
599 }
600
615 [[nodiscard]] auto insert(std::string document_id,
616 codec::encoded_value document,
617 const insert_options& options) const
618 -> std::future<std::pair<error, mutation_result>>;
619
639 template<typename Transcoder = codec::default_json_transcoder,
640 typename Document,
641 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>, bool> = true>
642 [[nodiscard]] auto insert(std::string document_id,
643 Document document,
644 const insert_options& options = {}) const
645 -> std::future<std::pair<error, mutation_result>>
646 {
647 return insert(
648 std::move(document_id), create_encode_fn<Transcoder, Document>(std::move(document)), options);
649 }
650
665 void replace(std::string document_id,
666 codec::encoded_value document,
667 const replace_options& options,
668 replace_handler&& handler) const;
669
691 template<typename Transcoder = codec::default_json_transcoder,
692 typename Document,
693 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>, bool> = true>
694 void replace(std::string document_id,
695 Document document,
696 const replace_options& options,
697 replace_handler&& handler) const
698 {
699 return replace(std::move(document_id),
700 create_encode_fn<Transcoder, Document>(std::move(document)),
701 options,
702 std::move(handler));
703 }
704
719 [[nodiscard]] auto replace(std::string document_id,
720 codec::encoded_value document,
721 const replace_options& options) const
722 -> std::future<std::pair<error, mutation_result>>;
723
745 template<typename Transcoder = codec::default_json_transcoder,
746 typename Document,
747 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>, bool> = true>
748 [[nodiscard]] auto replace(std::string document_id,
749 Document document,
750 const replace_options& options = {}) const
751 -> std::future<std::pair<error, mutation_result>>
752 {
753 return replace(
754 std::move(document_id), create_encode_fn<Transcoder, Document>(std::move(document)), options);
755 }
756
774 void remove(std::string document_id,
775 const remove_options& options,
776 remove_handler&& handler) const;
777
795 [[nodiscard]] auto remove(std::string document_id, const remove_options& options = {}) const
796 -> std::future<std::pair<error, mutation_result>>;
797
823 void mutate_in(std::string document_id,
824 const mutate_in_specs& specs,
825 const mutate_in_options& options,
826 mutate_in_handler&& handler) const;
827
853 [[nodiscard]] auto mutate_in(std::string document_id,
854 const mutate_in_specs& specs,
855 const mutate_in_options& options = {}) const
856 -> std::future<std::pair<error, mutate_in_result>>;
857
879 void lookup_in(std::string document_id,
880 const lookup_in_specs& specs,
881 const lookup_in_options& options,
882 lookup_in_handler&& handler) const;
883
905 [[nodiscard]] auto lookup_in(std::string document_id,
906 const lookup_in_specs& specs,
907 const lookup_in_options& options = {}) const
908 -> std::future<std::pair<error, lookup_in_result>>;
909
936 void lookup_in_all_replicas(std::string document_id,
937 const lookup_in_specs& specs,
938 const lookup_in_all_replicas_options& options,
939 lookup_in_all_replicas_handler&& handler) const;
940
967 [[nodiscard]] auto lookup_in_all_replicas(std::string document_id,
968 const lookup_in_specs& specs,
969 const lookup_in_all_replicas_options& options = {})
970 const -> std::future<std::pair<error, lookup_in_all_replicas_result>>;
971
994 void lookup_in_any_replica(std::string document_id,
995 const lookup_in_specs& specs,
996 const lookup_in_any_replica_options& options,
997 lookup_in_any_replica_handler&& handler) const;
998
1021 [[nodiscard]] auto lookup_in_any_replica(std::string document_id,
1022 const lookup_in_specs& specs,
1023 const lookup_in_any_replica_options& options = {}) const
1024 -> std::future<std::pair<error, lookup_in_replica_result>>;
1025
1037 void get_and_lock(std::string document_id,
1038 std::chrono::seconds lock_duration,
1039 const get_and_lock_options& options,
1040 get_and_lock_handler&& handler) const;
1041
1053 [[nodiscard]] auto get_and_lock(std::string document_id,
1054 std::chrono::seconds lock_duration,
1055 const get_and_lock_options& options = {}) const
1056 -> std::future<std::pair<error, get_result>>;
1057
1076 void unlock(std::string document_id,
1078 const unlock_options& options,
1079 unlock_handler&& handler) const;
1080
1099 [[nodiscard]] auto unlock(std::string document_id,
1101 const unlock_options& options = {}) const -> std::future<error>;
1102
1116 void exists(std::string document_id,
1117 const exists_options& options,
1118 exists_handler&& handler) const;
1119
1133 [[nodiscard]] auto exists(std::string document_id, const exists_options& options = {}) const
1134 -> std::future<std::pair<error, exists_result>>;
1135
1158 void scan(const scan_type& scan_type, const scan_options& options, scan_handler&& handler) const;
1159
1182 [[nodiscard]] auto scan(const scan_type& scan_type, const scan_options& options = {}) const
1183 -> std::future<std::pair<error, scan_result>>;
1184
1215 void node_id_for(std::string document_id,
1216 const node_id_for_options& options,
1217 node_id_for_handler&& handler) const;
1218
1238 [[nodiscard]] auto node_id_for(std::string document_id,
1239 const node_id_for_options& options = {}) const
1240 -> std::future<std::pair<error, node_id>>;
1241
1287 void node_ids(const node_ids_options& options, node_ids_handler&& handler) const;
1288
1311 [[nodiscard]] auto node_ids(const node_ids_options& options = {}) const
1312 -> std::future<std::pair<error, std::vector<node_id>>>;
1313
1314 [[nodiscard]] auto query_indexes() const -> collection_query_index_manager;
1315
1316private:
1317 friend class bucket;
1318 friend class scope;
1319
1320 [[nodiscard]] auto crypto_manager() const -> const std::shared_ptr<crypto::manager>&;
1321
1322 template<typename Transcoder, typename Document>
1323 [[nodiscard]] auto create_encode_fn(Document document) const
1324 -> std::function<codec::encoded_value()>
1325 {
1327 return [crypto_manager = crypto_manager(),
1328 document = std::move(document)]() -> codec::encoded_value {
1329 return Transcoder::encode(document, crypto_manager);
1330 };
1331 } else {
1332 return [document = std::move(document)]() -> codec::encoded_value {
1333 return Transcoder::encode(document);
1334 };
1335 }
1336 }
1337
1338 void replace(std::string document_id,
1339 std::function<codec::encoded_value()> document_fn,
1340 const replace_options& options,
1341 replace_handler&& handler) const;
1342
1343 auto replace(std::string document_id,
1344 std::function<codec::encoded_value()> document_fn,
1345 const replace_options& options) const
1346 -> std::future<std::pair<error, mutation_result>>;
1347
1348 void upsert(std::string document_id,
1349 std::function<codec::encoded_value()> document_fn,
1350 const upsert_options& options,
1351 upsert_handler&& handler) const;
1352
1353 auto upsert(std::string document_id,
1354 std::function<codec::encoded_value()> document_fn,
1355 const upsert_options& options) const
1356 -> std::future<std::pair<error, mutation_result>>;
1357
1358 void insert(std::string document_id,
1359 std::function<codec::encoded_value()> document_fn,
1360 const insert_options& options,
1361 insert_handler&& handler) const;
1362
1363 auto insert(std::string document_id,
1364 std::function<codec::encoded_value()> document_fn,
1365 const insert_options& options) const
1366 -> std::future<std::pair<error, mutation_result>>;
1367
1368 collection(core::cluster core,
1369 std::string_view bucket_name,
1370 std::string_view scope_name,
1371 std::string_view name,
1372 std::shared_ptr<crypto::manager> crypto_manager);
1373
1374 std::shared_ptr<collection_impl> impl_;
1375};
1376} // namespace couchbase
Allows to perform certain operations on non-JSON documents.
Definition binary_collection.hxx:47
Provides access to Couchbase bucket.
Definition bucket.hxx:51
CAS is a special type that represented in protocol using unsigned 64-bit integer, but only equality c...
Definition cas.hxx:34
The Query Index Manager interface contains the means for managing indexes used for queries.
Definition collection_query_index_manager.hxx:53
The collection provides access to all collection APIs.
Definition collection.hxx:76
auto touch(std::string document_id, std::chrono::system_clock::time_point time_point, const touch_options &options={}) const -> std::future< std::pair< error, result > >
Updates the expiration a document given an id, without modifying or returning its value.
auto replace(std::string document_id, codec::encoded_value document, const replace_options &options) const -> std::future< std::pair< error, mutation_result > >
Replaces a body of the document which already exists with specified encoded body.
friend class scope
Definition collection.hxx:1318
void replace(std::string document_id, Document document, const replace_options &options, replace_handler &&handler) const
Replaces a full document which already exists.
Definition collection.hxx:694
friend class bucket
Definition collection.hxx:1317
auto scan(const scan_type &scan_type, const scan_options &options={}) const -> std::future< std::pair< error, scan_result > >
Performs a key-value scan operation on the collection.
auto mutate_in(std::string document_id, const mutate_in_specs &specs, const mutate_in_options &options={}) const -> std::future< std::pair< error, mutate_in_result > >
Performs mutations to document fragments.
void remove(std::string document_id, const remove_options &options, remove_handler &&handler) const
Removes a Document from a collection.
auto bucket_name() const -> const std::string &
Returns name of the bucket where the collection is defined.
auto unlock(std::string document_id, couchbase::cas cas, const unlock_options &options={}) const -> std::future< error >
Unlocks a document if it has been locked previously, with default options.
void lookup_in_all_replicas(std::string document_id, const lookup_in_specs &specs, const lookup_in_all_replicas_options &options, lookup_in_all_replicas_handler &&handler) const
Performs lookups to document fragments with default options from all replicas and the active node and...
void get_and_lock(std::string document_id, std::chrono::seconds lock_duration, const get_and_lock_options &options, get_and_lock_handler &&handler) const
Gets a document for a given id and places a pessimistic lock on it for mutations.
static constexpr auto default_name
Constant for the name of the default collection in the bucket.
Definition collection.hxx:84
auto binary() const -> binary_collection
Provides access to the binary APIs, not used for JSON documents.
void scan(const scan_type &scan_type, const scan_options &options, scan_handler &&handler) const
Performs a key-value scan operation on the collection.
void lookup_in_any_replica(std::string document_id, const lookup_in_specs &specs, const lookup_in_any_replica_options &options, lookup_in_any_replica_handler &&handler) const
Performs lookups to document fragments with default options from all replicas and returns the first f...
void touch(std::string document_id, std::chrono::system_clock::time_point time_point, const touch_options &options, touch_handler &&handler) const
Updates the expiration a document given an id, without modifying or returning its value.
void exists(std::string document_id, const exists_options &options, exists_handler &&handler) const
Checks if the document exists on the server.
void get_and_touch(std::string document_id, std::chrono::seconds duration, const get_and_touch_options &options, get_and_touch_handler &&handler) const
Fetches a full document and resets its expiration time to the value provided.
auto lookup_in_all_replicas(std::string document_id, const lookup_in_specs &specs, const lookup_in_all_replicas_options &options={}) const -> std::future< std::pair< error, lookup_in_all_replicas_result > >
Performs lookups to document fragments with default options from all replicas and the active node and...
void get_any_replica(std::string document_id, const get_any_replica_options &options, get_any_replica_handler &&handler) const
Reads all available replicas, and returns the first found.
auto insert(std::string document_id, Document document, const insert_options &options={}) const -> std::future< std::pair< error, mutation_result > >
Inserts a full document which does not exist yet with custom options.
Definition collection.hxx:642
auto get_and_touch(std::string document_id, std::chrono::seconds duration, const get_and_touch_options &options={}) const -> std::future< std::pair< error, get_result > >
Fetches a full document and resets its expiration time to the value provided.
void lookup_in(std::string document_id, const lookup_in_specs &specs, const lookup_in_options &options, lookup_in_handler &&handler) const
Performs lookups to document fragments with default options.
void replace(std::string document_id, codec::encoded_value document, const replace_options &options, replace_handler &&handler) const
Replaces a body of the document which already exists with specified encoded body.
auto get_and_touch(std::string document_id, std::chrono::system_clock::time_point time_point, const get_and_touch_options &options={}) const -> std::future< std::pair< error, get_result > >
Fetches a full document and resets its expiration time to the absolute value provided.
auto replace(std::string document_id, Document document, const replace_options &options={}) const -> std::future< std::pair< error, mutation_result > >
Replaces a full document which already exists.
Definition collection.hxx:748
auto touch(std::string document_id, std::chrono::seconds duration, const touch_options &options={}) const -> std::future< std::pair< error, result > >
Updates the expiration a document given an id, without modifying or returning its value.
void upsert(std::string document_id, codec::encoded_value document, const upsert_options &options, upsert_handler &&handler) const
Upserts an encoded body of the document which might or might not exist yet, with custom options.
void upsert(std::string document_id, Document document, const upsert_options &options, upsert_handler &&handler) const
Upserts a full document which might or might not exist yet with custom options.
Definition collection.hxx:491
auto remove(std::string document_id, const remove_options &options={}) const -> std::future< std::pair< error, mutation_result > >
Removes a Document from a collection.
auto name() const -> const std::string &
Returns name of the collection.
auto upsert(std::string document_id, codec::encoded_value document, const upsert_options &options) const -> std::future< std::pair< error, mutation_result > >
Upserts an encoded body of the document which might or might not exist yet, with custom options.
auto lookup_in(std::string document_id, const lookup_in_specs &specs, const lookup_in_options &options={}) const -> std::future< std::pair< error, lookup_in_result > >
Performs lookups to document fragments with default options.
auto exists(std::string document_id, const exists_options &options={}) const -> std::future< std::pair< error, exists_result > >
Checks if the document exists on the server.
void insert(std::string document_id, codec::encoded_value document, const insert_options &options, insert_handler &&handler) const
Inserts an encoded body of the document which does not exist yet with custom options.
void node_ids(const node_ids_options &options, node_ids_handler &&handler) const
Returns the cluster nodes that currently serve key-value traffic for this collection's bucket,...
auto node_ids(const node_ids_options &options={}) const -> std::future< std::pair< error, std::vector< node_id > > >
Returns the cluster nodes that currently serve key-value traffic for this collection's bucket,...
void get(std::string document_id, const get_options &options, get_handler &&handler) const
Fetches the full document from this collection.
auto get_all_replicas(std::string document_id, const get_all_replicas_options &options={}) const -> std::future< std::pair< error, get_all_replicas_result > >
Reads from all available replicas and the active node and returns the results as a vector.
auto get_and_lock(std::string document_id, std::chrono::seconds lock_duration, const get_and_lock_options &options={}) const -> std::future< std::pair< error, get_result > >
Gets a document for a given id and places a pessimistic lock on it for mutations.
auto node_id_for(std::string document_id, const node_id_for_options &options={}) const -> std::future< std::pair< error, node_id > >
Resolves a document key to the identity of the cluster node that currently owns it,...
void node_id_for(std::string document_id, const node_id_for_options &options, node_id_for_handler &&handler) const
Resolves a document key to the identity of the cluster node that currently owns it,...
auto get_any_replica(std::string document_id, const get_any_replica_options &options={}) const -> std::future< std::pair< error, get_replica_result > >
Reads all available replicas, and returns the first found.
auto lookup_in_any_replica(std::string document_id, const lookup_in_specs &specs, const lookup_in_any_replica_options &options={}) const -> std::future< std::pair< error, lookup_in_replica_result > >
Performs lookups to document fragments with default options from all replicas and returns the first f...
void get_all_replicas(std::string document_id, const get_all_replicas_options &options, get_all_replicas_handler &&handler) const
Reads from all available replicas and the active node and returns the results as a vector.
auto upsert(std::string document_id, Document document, const upsert_options &options={}) const -> std::future< std::pair< error, mutation_result > >
Upserts a full document which might or might not exist yet with custom options.
Definition collection.hxx:540
auto query_indexes() const -> collection_query_index_manager
void mutate_in(std::string document_id, const mutate_in_specs &specs, const mutate_in_options &options, mutate_in_handler &&handler) const
Performs mutations to document fragments.
void unlock(std::string document_id, couchbase::cas cas, const unlock_options &options, unlock_handler &&handler) const
Unlocks a document if it has been locked previously, with default options.
auto insert(std::string document_id, codec::encoded_value document, const insert_options &options) const -> std::future< std::pair< error, mutation_result > >
Inserts an encoded body of the document which does not exist yet with custom options.
auto scope_name() const -> const std::string &
Returns name of the scope where the collection is defined.
void touch(std::string document_id, std::chrono::seconds duration, const touch_options &options, touch_handler &&handler) const
Updates the expiration a document given an id, without modifying or returning its value.
void get_and_touch(std::string document_id, std::chrono::system_clock::time_point time_point, const get_and_touch_options &options, get_and_touch_handler &&handler) const
Fetches a full document and resets its expiration time to the absolute value provided.
void insert(std::string document_id, Document document, const insert_options &options, insert_handler &&handler) const
Inserts a full document which does not exist yet with custom options.
Definition collection.hxx:590
Definition error.hxx:31
Definition lookup_in_specs.hxx:34
Definition mutate_in_specs.hxx:80
The scope identifies a group of collections and allows high application density as a result.
Definition scope.hxx:47
Definition analytics_options.hxx:36
constexpr bool is_crypto_transcoder_v
Definition transcoder_traits.hxx:36
json_transcoder< tao_json_serializer > default_json_transcoder
Definition default_json_transcoder.hxx:28
Definition expiry.hxx:24
Definition internal.hxx:27
Represents a single item from the result of scan().
Definition allow_querying_search_index_options.hxx:28
std::function< void(error, get_replica_result)> get_any_replica_handler
The signature for the handler of the get_any_replica() operation.
Definition get_any_replica_options.hxx:92
std::function< void(error, mutation_result)> insert_handler
The signature for the handler of the insert() operation.
Definition insert_options.hxx:114
std::function< void(error, lookup_in_result)> lookup_in_handler
The signature for the handler of the lookup_in() operation.
Definition lookup_in_options.hxx:94
std::function< void(error, get_result)> get_handler
The signature for the handler of the get() operation.
Definition get_options.hxx:111
std::function< void(error, get_all_replicas_result)> get_all_replicas_handler
The signature for the handler of the get_all_replicas() operation.
Definition get_all_replicas_options.hxx:101
std::function< void(error, get_result)> get_and_lock_handler
The signature for the handler of the get_and_lock() operation.
Definition get_and_lock_options.hxx:70
std::function< void(error, mutation_result)> remove_handler
The signature for the handler of the remove() operation.
Definition remove_options.hxx:103
std::function< void(error, node_id)> node_id_for_handler
Handler signature for node_id_for().
Definition node_id_for_options.hxx:65
std::function< void(error, mutation_result)> upsert_handler
The signature for the handler of the upsert() operation.
Definition upsert_options.hxx:138
std::function< void(error, mutate_in_result)> mutate_in_handler
The signature for the handler of the mutate_in() operation.
Definition mutate_in_options.hxx:219
std::function< void(error, lookup_in_all_replicas_result)> lookup_in_all_replicas_handler
The signature for the handler of the lookup_in_all_replicas() operation.
Definition lookup_in_all_replicas_options.hxx:106
std::function< void(error, scan_result)> scan_handler
The signature for the handler of the scan() operation.
Definition scan_options.hxx:168
std::function< void(error, result)> touch_handler
The signature for the handler of the touch() operation.
Definition touch_options.hxx:70
std::function< void(error, mutation_result)> replace_handler
The signature for the handler of the replace() operation.
Definition replace_options.hxx:167
std::function< void(error, lookup_in_replica_result)> lookup_in_any_replica_handler
The signature for the handler of the lookup_in_any_replica() operation.
Definition lookup_in_any_replica_options.hxx:97
std::function< void(error)> unlock_handler
The signature for the handler of the unlock() operation.
Definition unlock_options.hxx:73
std::function< void(error, get_result)> get_and_touch_handler
The signature for the handler of the get_and_touch() operation.
Definition get_and_touch_options.hxx:70
std::function< void(error, std::vector< node_id >)> node_ids_handler
Handler signature for node_ids().
Definition node_ids_options.hxx:66
std::function< void(error, exists_result)> exists_handler
The signature for the handler of the exists() operation.
Definition exists_options.hxx:74
Definition encoded_value.hxx:27
Options for exists().
Definition exists_options.hxx:41
Options for get_all_replicas().
Definition get_all_replicas_options.hxx:36
Options for collection::get_and_lock().
Definition get_and_lock_options.hxx:37
Options for collection::get_and_touch().
Definition get_and_touch_options.hxx:37
Options for collection::get_any_replica().
Definition get_any_replica_options.hxx:35
Options for collection::get().
Definition get_options.hxx:37
Options for insert().
Definition insert_options.hxx:41
Options for lookup_in_all_replicas().
Definition lookup_in_all_replicas_options.hxx:41
Options for lookup_in_any_replica().
Definition lookup_in_any_replica_options.hxx:40
Options for lookup_in().
Definition lookup_in_options.hxx:44
Options for mutate_in().
Definition mutate_in_options.hxx:44
Options for node_id_for().
Definition node_id_for_options.hxx:35
Options for node_ids().
Definition node_ids_options.hxx:36
Options for remove().
Definition remove_options.hxx:41
Options for replace().
Definition replace_options.hxx:41
Options for scan().
Definition scan_options.hxx:40
The base class for the different scan types.
Definition scan_type.hxx:96
Options for collection::touch().
Definition touch_options.hxx:37
Options for unlock().
Definition unlock_options.hxx:40
Options for upsert().
Definition upsert_options.hxx:41