74 return { base, expiry_, preserve_expiry_, store_semantics_,
75 cas_, access_deleted_, create_as_deleted_ };
96 preserve_expiry_ = preserve;
115 expiry_ = core::impl::expiry_relative(duration);
131 expiry_ = core::impl::expiry_absolute(time_point);
176 store_semantics_ = semantics;
188 access_deleted_ = value;
200 create_as_deleted_ = value;
207 std::uint32_t expiry_{ 0 };
208 bool preserve_expiry_{
false };
209 bool access_deleted_{
false };
210 bool create_as_deleted_{
false };
CAS is a special type that represented in protocol using unsigned 64-bit integer, but only equality c...
Definition cas.hxx:34
Common options that used by most operations.
Definition common_durability_options.hxx:39
auto build_common_durability_options() const -> built
Definition common_durability_options.hxx:100
auto self() -> mutate_in_options &
Definition common_options.hxx:116
Represents result of mutate_in operations.
Definition mutate_in_result.hxx:42
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
store_semantics
Describes how the outer document store semantics on subdoc should act.
Definition store_semantics.hxx:30
@ replace
Replace the document, fail if it does not exist.
std::function< void(error, mutate_in_result)> mutate_in_handler
The signature for the handler of the collection::mutate_in() operation.
Definition mutate_in_options.hxx:219
Immutable value object representing consistent options.
Definition mutate_in_options.hxx:51
const bool access_deleted
Definition mutate_in_options.hxx:56
const couchbase::cas cas
Definition mutate_in_options.hxx:55
const bool preserve_expiry
Definition mutate_in_options.hxx:53
const bool create_as_deleted
Definition mutate_in_options.hxx:57
const std::uint32_t expiry
Definition mutate_in_options.hxx:52
const couchbase::store_semantics store_semantics
Definition mutate_in_options.hxx:54
Options for collection::mutate_in().
Definition mutate_in_options.hxx:44
auto access_deleted(bool value) -> mutate_in_options &
For internal use only: allows access to deleted documents that are in 'tombstone' form.
Definition mutate_in_options.hxx:186
auto expiry(std::chrono::system_clock::time_point time_point) -> mutate_in_options &
Sets the expiry for the document.
Definition mutate_in_options.hxx:129
auto store_semantics(couchbase::store_semantics semantics) -> mutate_in_options &
Changes the storing semantics of the outer/enclosing document.
Definition mutate_in_options.hxx:174
auto create_as_deleted(bool value) -> mutate_in_options &
For internal use only: allows creating documents in 'tombstone' form.
Definition mutate_in_options.hxx:198
auto build() const -> built
Validates options and returns them as an immutable value.
Definition mutate_in_options.hxx:71
auto expiry(std::chrono::seconds duration) -> mutate_in_options &
Sets the expiry for the document.
Definition mutate_in_options.hxx:113
auto cas(couchbase::cas cas) -> mutate_in_options &
Specifies a CAS value that will be taken into account on the server side for optimistic concurrency.
Definition mutate_in_options.hxx:155
auto preserve_expiry(bool preserve) -> mutate_in_options &
Specifies whether an existing document's expiry should be preserved.
Definition mutate_in_options.hxx:94