Couchbase C++ SDK 1.5.1 (rev. 33c90f2)
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>
51
52#include <future>
53#include <memory>
54
55namespace couchbase
56{
57#ifndef COUCHBASE_CXX_CLIENT_DOXYGEN
58namespace core
59{
60class cluster;
61} // namespace core
62class bucket;
63class scope;
64class collection_impl;
65namespace crypto
66{
67class manager;
68} // namespace crypto
69#endif
70
77class collection
78{
79public:
86 static constexpr auto default_name{ "_default" };
87
96 [[nodiscard]] auto bucket_name() const -> const std::string&;
97
106 [[nodiscard]] auto scope_name() const -> const std::string&;
107
116 [[nodiscard]] auto name() const -> const std::string&;
117
126 [[nodiscard]] auto binary() const -> binary_collection;
127
143 void get(std::string document_id, const get_options& options, get_handler&& handler) const;
144
160 [[nodiscard]] auto get(std::string document_id, const get_options& options = {}) const
161 -> std::future<std::pair<error, get_result>>;
162
179 void get_and_touch(std::string document_id,
180 std::chrono::seconds duration,
181 const get_and_touch_options& options,
182 get_and_touch_handler&& handler) const;
183
200 [[nodiscard]] auto get_and_touch(std::string document_id,
201 std::chrono::seconds duration,
202 const get_and_touch_options& options = {}) const
203 -> std::future<std::pair<error, get_result>>;
204
221 void get_and_touch(std::string document_id,
222 std::chrono::system_clock::time_point time_point,
223 const get_and_touch_options& options,
224 get_and_touch_handler&& handler) const;
225
242 [[nodiscard]] auto get_and_touch(std::string document_id,
243 std::chrono::system_clock::time_point time_point,
244 const get_and_touch_options& options = {}) const
245 -> std::future<std::pair<error, get_result>>;
246
263 void touch(std::string document_id,
264 std::chrono::seconds duration,
265 const touch_options& options,
266 touch_handler&& handler) const;
267
284 [[nodiscard]] auto touch(std::string document_id,
285 std::chrono::seconds duration,
286 const touch_options& options = {}) const
287 -> std::future<std::pair<error, result>>;
288
305 void touch(std::string document_id,
306 std::chrono::system_clock::time_point time_point,
307 const touch_options& options,
308 touch_handler&& handler) const;
309
326 [[nodiscard]] auto touch(std::string document_id,
327 std::chrono::system_clock::time_point time_point,
328 const touch_options& options = {}) const
329 -> std::future<std::pair<error, result>>;
330
353 void get_any_replica(std::string document_id,
354 const get_any_replica_options& options,
355 get_any_replica_handler&& handler) const;
356
386 [[nodiscard]] auto get_any_replica(std::string document_id,
387 const get_any_replica_options& options = {}) const
388 -> std::future<std::pair<error, get_replica_result>>;
389
419 void get_replica(std::string document_id,
420 const get_replica_strategy& strategy,
421 const get_replica_options& options,
422 get_replica_handler&& handler) const;
423
455 [[nodiscard]] auto get_replica(std::string document_id,
456 const get_replica_strategy& strategy,
457 const get_replica_options& options = {}) const
458 -> std::future<std::pair<error, get_replica_result>>;
459
485 void get_all_replicas(std::string document_id,
486 const get_all_replicas_options& options,
487 get_all_replicas_handler&& handler) const;
488
521 [[nodiscard]] auto get_all_replicas(std::string document_id,
522 const get_all_replicas_options& options = {}) const
523 -> std::future<std::pair<error, get_all_replicas_result>>;
524
540 void upsert(std::string document_id,
541 codec::encoded_value document,
542 const upsert_options& options,
543 upsert_handler&& handler) const;
544
562 template<typename Transcoder = codec::default_json_transcoder, typename Document>
563 void upsert(std::string document_id,
564 Document document,
565 const upsert_options& options,
566 upsert_handler&& handler) const
567 {
568 return upsert(std::move(document_id),
569 create_encode_fn<Transcoder, Document>(std::move(document)),
570 options,
571 std::move(handler));
572 }
573
589 [[nodiscard]] auto upsert(std::string document_id,
590 codec::encoded_value document,
591 const upsert_options& options) const
592 -> std::future<std::pair<error, mutation_result>>;
593
611 template<typename Transcoder = codec::default_json_transcoder, typename Document>
612 [[nodiscard]] auto upsert(std::string document_id,
613 Document document,
614 const upsert_options& options = {}) const
615 -> std::future<std::pair<error, mutation_result>>
616 {
617 return upsert(
618 std::move(document_id), create_encode_fn<Transcoder, Document>(std::move(document)), options);
619 }
620
635 void insert(std::string document_id,
636 codec::encoded_value document,
637 const insert_options& options,
638 insert_handler&& handler) const;
639
659 template<typename Transcoder = codec::default_json_transcoder,
660 typename Document,
661 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>, bool> = true>
662 void insert(std::string document_id,
663 Document document,
664 const insert_options& options,
665 insert_handler&& handler) const
666 {
667 return insert(std::move(document_id),
668 create_encode_fn<Transcoder, Document>(std::move(document)),
669 options,
670 std::move(handler));
671 }
672
687 [[nodiscard]] auto insert(std::string document_id,
688 codec::encoded_value document,
689 const insert_options& options) const
690 -> std::future<std::pair<error, mutation_result>>;
691
711 template<typename Transcoder = codec::default_json_transcoder,
712 typename Document,
713 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>, bool> = true>
714 [[nodiscard]] auto insert(std::string document_id,
715 Document document,
716 const insert_options& options = {}) const
717 -> std::future<std::pair<error, mutation_result>>
718 {
719 return insert(
720 std::move(document_id), create_encode_fn<Transcoder, Document>(std::move(document)), options);
721 }
722
737 void replace(std::string document_id,
738 codec::encoded_value document,
739 const replace_options& options,
740 replace_handler&& handler) const;
741
763 template<typename Transcoder = codec::default_json_transcoder,
764 typename Document,
765 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>, bool> = true>
766 void replace(std::string document_id,
767 Document document,
768 const replace_options& options,
769 replace_handler&& handler) const
770 {
771 return replace(std::move(document_id),
772 create_encode_fn<Transcoder, Document>(std::move(document)),
773 options,
774 std::move(handler));
775 }
776
791 [[nodiscard]] auto replace(std::string document_id,
792 codec::encoded_value document,
793 const replace_options& options) const
794 -> std::future<std::pair<error, mutation_result>>;
795
817 template<typename Transcoder = codec::default_json_transcoder,
818 typename Document,
819 std::enable_if_t<!std::is_same_v<codec::encoded_value, Document>, bool> = true>
820 [[nodiscard]] auto replace(std::string document_id,
821 Document document,
822 const replace_options& options = {}) const
823 -> std::future<std::pair<error, mutation_result>>
824 {
825 return replace(
826 std::move(document_id), create_encode_fn<Transcoder, Document>(std::move(document)), options);
827 }
828
846 void remove(std::string document_id,
847 const remove_options& options,
848 remove_handler&& handler) const;
849
867 [[nodiscard]] auto remove(std::string document_id, const remove_options& options = {}) const
868 -> std::future<std::pair<error, mutation_result>>;
869
895 void mutate_in(std::string document_id,
896 const mutate_in_specs& specs,
897 const mutate_in_options& options,
898 mutate_in_handler&& handler) const;
899
925 [[nodiscard]] auto mutate_in(std::string document_id,
926 const mutate_in_specs& specs,
927 const mutate_in_options& options = {}) const
928 -> std::future<std::pair<error, mutate_in_result>>;
929
951 void lookup_in(std::string document_id,
952 const lookup_in_specs& specs,
953 const lookup_in_options& options,
954 lookup_in_handler&& handler) const;
955
977 [[nodiscard]] auto lookup_in(std::string document_id,
978 const lookup_in_specs& specs,
979 const lookup_in_options& options = {}) const
980 -> std::future<std::pair<error, lookup_in_result>>;
981
1008 void lookup_in_all_replicas(std::string document_id,
1009 const lookup_in_specs& specs,
1010 const lookup_in_all_replicas_options& options,
1011 lookup_in_all_replicas_handler&& handler) const;
1012
1039 [[nodiscard]] auto lookup_in_all_replicas(std::string document_id,
1040 const lookup_in_specs& specs,
1041 const lookup_in_all_replicas_options& options = {})
1042 const -> std::future<std::pair<error, lookup_in_all_replicas_result>>;
1043
1066 void lookup_in_any_replica(std::string document_id,
1067 const lookup_in_specs& specs,
1068 const lookup_in_any_replica_options& options,
1069 lookup_in_any_replica_handler&& handler) const;
1070
1093 [[nodiscard]] auto lookup_in_any_replica(std::string document_id,
1094 const lookup_in_specs& specs,
1095 const lookup_in_any_replica_options& options = {}) const
1096 -> std::future<std::pair<error, lookup_in_replica_result>>;
1097
1109 void get_and_lock(std::string document_id,
1110 std::chrono::seconds lock_duration,
1111 const get_and_lock_options& options,
1112 get_and_lock_handler&& handler) const;
1113
1125 [[nodiscard]] auto get_and_lock(std::string document_id,
1126 std::chrono::seconds lock_duration,
1127 const get_and_lock_options& options = {}) const
1128 -> std::future<std::pair<error, get_result>>;
1129
1148 void unlock(std::string document_id,
1150 const unlock_options& options,
1151 unlock_handler&& handler) const;
1152
1171 [[nodiscard]] auto unlock(std::string document_id,
1173 const unlock_options& options = {}) const -> std::future<error>;
1174
1188 void exists(std::string document_id,
1189 const exists_options& options,
1190 exists_handler&& handler) const;
1191
1205 [[nodiscard]] auto exists(std::string document_id, const exists_options& options = {}) const
1206 -> std::future<std::pair<error, exists_result>>;
1207
1230 void scan(const scan_type& scan_type, const scan_options& options, scan_handler&& handler) const;
1231
1254 [[nodiscard]] auto scan(const scan_type& scan_type, const scan_options& options = {}) const
1255 -> std::future<std::pair<error, scan_result>>;
1256
1287 void node_id_for(std::string document_id,
1288 const node_id_for_options& options,
1289 node_id_for_handler&& handler) const;
1290
1310 [[nodiscard]] auto node_id_for(std::string document_id,
1311 const node_id_for_options& options = {}) const
1312 -> std::future<std::pair<error, node_id>>;
1313
1359 void node_ids(const node_ids_options& options, node_ids_handler&& handler) const;
1360
1383 [[nodiscard]] auto node_ids(const node_ids_options& options = {}) const
1384 -> std::future<std::pair<error, std::vector<node_id>>>;
1385
1386 [[nodiscard]] auto query_indexes() const -> collection_query_index_manager;
1387
1388private:
1389 friend class bucket;
1390 friend class scope;
1391
1392 [[nodiscard]] auto crypto_manager() const -> const std::shared_ptr<crypto::manager>&;
1393
1394 template<typename Transcoder, typename Document>
1395 [[nodiscard]] auto create_encode_fn(Document document) const
1396 -> std::function<codec::encoded_value()>
1397 {
1399 return [crypto_manager = crypto_manager(),
1400 document = std::move(document)]() -> codec::encoded_value {
1401 return Transcoder::encode(document, crypto_manager);
1402 };
1403 } else {
1404 return [document = std::move(document)]() -> codec::encoded_value {
1405 return Transcoder::encode(document);
1406 };
1407 }
1408 }
1409
1410 void replace(std::string document_id,
1411 std::function<codec::encoded_value()> document_fn,
1412 const replace_options& options,
1413 replace_handler&& handler) const;
1414
1415 auto replace(std::string document_id,
1416 std::function<codec::encoded_value()> document_fn,
1417 const replace_options& options) const
1418 -> std::future<std::pair<error, mutation_result>>;
1419
1420 void upsert(std::string document_id,
1421 std::function<codec::encoded_value()> document_fn,
1422 const upsert_options& options,
1423 upsert_handler&& handler) const;
1424
1425 auto upsert(std::string document_id,
1426 std::function<codec::encoded_value()> document_fn,
1427 const upsert_options& options) const
1428 -> std::future<std::pair<error, mutation_result>>;
1429
1430 void insert(std::string document_id,
1431 std::function<codec::encoded_value()> document_fn,
1432 const insert_options& options,
1433 insert_handler&& handler) const;
1434
1435 auto insert(std::string document_id,
1436 std::function<codec::encoded_value()> document_fn,
1437 const insert_options& options) const
1438 -> std::future<std::pair<error, mutation_result>>;
1439
1440 collection(core::cluster core,
1441 std::string_view bucket_name,
1442 std::string_view scope_name,
1443 std::string_view name,
1444 std::shared_ptr<crypto::manager> crypto_manager);
1445
1446 std::shared_ptr<collection_impl> impl_;
1447};
1448} // 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:78
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:1390
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:766
friend class bucket
Definition collection.hxx:1389
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.
void get_replica(std::string document_id, const get_replica_strategy &strategy, const get_replica_options &options, get_replica_handler &&handler) const
Reads from the replica the strategy selects.
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:86
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:714
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.
auto get_replica(std::string document_id, const get_replica_strategy &strategy, const get_replica_options &options={}) const -> std::future< std::pair< error, get_replica_result > >
Reads from the replica the strategy selects.
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:820
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:563
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:612
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:662
Definition error.hxx:31
Selects the replica that get_replica() reads from.
Definition get_replica_strategy.hxx:109
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, get_replica_result)> get_replica_handler
The signature for the handler of the get_replica() operation.
Definition get_replica_options.hxx:67
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 collection::get_replica().
Definition get_replica_options.hxx:34
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