Couchbase C++ SDK 1.0.1 (rev. 58d46d7)
Loading...
Searching...
No Matches
transactions_query_config.hxx
Go to the documentation of this file.
1/*
2 * Copyright 2021-Present Couchbase, Inc.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#pragma once
17
19
21{
26{
27public:
35 {
36 scan_consistency_ = consistency;
37 return *this;
38 }
39
45 [[nodiscard]] auto scan_consistency() const -> query_scan_consistency
46 {
47 return scan_consistency_;
48 }
49
51 struct built {
52 query_scan_consistency scan_consistency;
53 };
54
56 [[nodiscard]] auto build() const -> built
57 {
58 return { scan_consistency_ };
59 }
60
61private:
63};
64} // namespace couchbase::transactions
The transactions_query_config sets the defaults for all queries in the transactions.
Definition transactions_query_config.hxx:26
auto scan_consistency() const -> query_scan_consistency
Get the scan consistency.
Definition transactions_query_config.hxx:45
auto scan_consistency(query_scan_consistency consistency) -> transactions_query_config &
Set scan consistency for transactions.
Definition transactions_query_config.hxx:34
Definition transactions.hxx:28
query_scan_consistency
Definition query_scan_consistency.hxx:22
@ request_plus
The indexer will wait until all mutations have been processed at the time of request before returning...