Couchbase C++ SDK
1.4.0 (rev. 59aa900)
Toggle main menu visibility
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
18
#include <
couchbase/query_scan_consistency.hxx
>
19
20
namespace
couchbase::transactions
21
{
25
class
transactions_query_config
26
{
27
public
:
34
auto
scan_consistency
(
query_scan_consistency
consistency) ->
transactions_query_config
&
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
61
private
:
62
query_scan_consistency
scan_consistency_{
query_scan_consistency::request_plus
};
63
};
64
}
// namespace couchbase::transactions
couchbase::transactions::transactions_query_config
The transactions_query_config sets the defaults for all queries in the transactions.
Definition
transactions_query_config.hxx:26
couchbase::transactions::transactions_query_config::scan_consistency
auto scan_consistency() const -> query_scan_consistency
Get the scan consistency.
Definition
transactions_query_config.hxx:45
couchbase::transactions::transactions_query_config::scan_consistency
auto scan_consistency(query_scan_consistency consistency) -> transactions_query_config &
Set scan consistency for transactions.
Definition
transactions_query_config.hxx:34
couchbase::transactions
Definition
transactions.hxx:43
couchbase::query_scan_consistency
query_scan_consistency
Definition
query_scan_consistency.hxx:22
couchbase::query_scan_consistency::request_plus
@ request_plus
The indexer will wait until all mutations have been processed at the time of request before returning...
Definition
query_scan_consistency.hxx:47
query_scan_consistency.hxx
couchbase
transactions
transactions_query_config.hxx
Generated by
1.17.0