67 return { base, expiry_, preserve_expiry_ };
88 preserve_expiry_ = preserve;
107 expiry_ = core::impl::expiry_relative(duration);
123 expiry_ = core::impl::expiry_absolute(time_point);
128 std::uint32_t expiry_{ 0 };
129 bool preserve_expiry_{
false };
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() -> upsert_options &
Definition common_options.hxx:102
Represents result of mutation operations.
Definition mutation_result.hxx:35
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
std::function< void(error, mutation_result)> upsert_handler
The signature for the handler of the collection::upsert() operation.
Definition upsert_options.hxx:138
Immutable value object representing consistent options.
Definition upsert_options.hxx:48
const bool preserve_expiry
Definition upsert_options.hxx:50
const std::uint32_t expiry
Definition upsert_options.hxx:49
Options for collection::upsert().
Definition upsert_options.hxx:41
auto expiry(std::chrono::system_clock::time_point time_point) -> upsert_options &
Sets the expiry for the document.
Definition upsert_options.hxx:121
auto preserve_expiry(bool preserve) -> upsert_options &
Specifies whether an existing document's expiry should be preserved.
Definition upsert_options.hxx:86
auto build() const -> built
Validates options and returns them as an immutable value.
Definition upsert_options.hxx:64
auto expiry(std::chrono::seconds duration) -> upsert_options &
Sets the expiry for the document.
Definition upsert_options.hxx:105