89 timeout_ = std::chrono::duration_cast<std::chrono::nanoseconds>(
timeout);
98 auto timeout() -> std::optional<std::chrono::nanoseconds>;
122 metadata_collection_.emplace(keyspace);
133 auto test_factories(std::shared_ptr<core::
transactions::attempt_context_testing_hooks> hooks,
134 std::shared_ptr<core::
transactions::cleanup_testing_hooks> cleanup_hooks)
143 std::optional<std::chrono::nanoseconds> timeout_;
145 std::shared_ptr<core::
transactions::attempt_context_testing_hooks> attempt_context_hooks_;
146 std::shared_ptr<core::
transactions::cleanup_testing_hooks> cleanup_hooks_;
The collection provides access to all collection APIs.
Definition collection.hxx:70
The transaction_options can be passed in to override some elements of the global transactions_config.
Definition transaction_options.hxx:37
auto durability_level(durability_level level) -> transaction_options &
Set durability for this transaction.
auto timeout() -> std::optional< std::chrono::nanoseconds >
Get the timeout, if set.
auto durability_level() const -> std::optional< couchbase::durability_level >
Get the durability if it has been set.
auto metadata_collection(const couchbase::transactions::transaction_keyspace &keyspace) -> transaction_options &
Set metadata collection to use for this transaction.
Definition transaction_options.hxx:119
auto metadata_collection(const couchbase::collection &coll) -> transaction_options &
Set the metadata collection to use for this transaction.
transaction_options()=default
auto metadata_collection() const -> std::optional< transaction_keyspace >
Get the metadata collection, if set.
auto scan_consistency() const -> std::optional< query_scan_consistency >
Get the scan_consistency if it has been set.
Configuration parameters for transactions.
Definition transactions_config.hxx:43
The transactions object is used to initiate a transaction.
Definition transactions.hxx:39
Represents a single item from the result of collection::scan()
Definition allow_querying_search_index_options.hxx:28
query_scan_consistency
Definition query_scan_consistency.hxx:22
durability_level
Specifies enhanced durability options for the mutation.
Definition durability_level.hxx:30
Offline, serializable representation of a bucket, scope, and collection.
Definition transaction_keyspace.hxx:25