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,
143 std::optional<std::chrono::nanoseconds> timeout_;
145 std::shared_ptr<
core::
transactions::attempt_context_testing_hooks> attempt_context_hooks_;
The collection provides access to all collection APIs.
Definition collection.hxx:70
auto timeout(T timeout) -> transaction_options &
Set the timeout for this transaction.
Definition transaction_options.hxx:87
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(query_scan_consistency scan_consistency) -> transaction_options &
Set the query_scan_consistency for this transaction.
Configuration parameters for transactions.
Definition transactions_config.hxx:43
The transactions object is used to initiate a transaction.
Definition transactions.hxx:39
Definition transactions.hxx:28
Represents a single item from the result of scan()
Definition allow_querying_search_index_options.hxx:28
query_scan_consistency
Definition query_scan_consistency.hxx:22
Offline, serializable representation of a bucket, scope, and collection.
Definition transaction_keyspace.hxx:25