The transaction_query_options are options specific to a query.
More...
#include <couchbase/transactions/transaction_query_options.hxx>
The transaction_query_options are options specific to a query.
Some of the options will override the corresponding elements in the transactions_query_config section of the transactions_config.
◆ transaction_query_options()
◆ ad_hoc()
Set ad_hoc.
Inform query service that this query is, or is not, a prepared statement query.
- See also
- query_options::adhoc for detailed discussion.
- Parameters
-
value | if set to false this query will be turned into a prepared statement query. |
- Returns
- reference to this object, convenient for chaining calls.
◆ client_context_id()
Set a client id for this query.
- See also
- query_options::client_context_id for details.
- Parameters
-
- Returns
- reference to this object, convenient for chaining calls.
◆ max_parallelism()
Set max parallelism for this query.
- See also
- query_options::max_parallelism for details.
- Parameters
-
max | Desired max parallelism |
- Returns
- reference to this object, convenient for chaining calls.
◆ metrics()
Set metrics for this query.
If true, the query results will contain metrics. This is true by default for transactional queries.
- See also
- query_options::metrics for details.
- Parameters
-
metrics | True if metrics are desired. |
- Returns
- reference to this object, convenient for chaining calls.
◆ named_parameters()
template<typename... Parameters>
Set named parameters for this query.
- See also
- query_options::named_parameters for details.
- Template Parameters
-
Parameters | Types of the parameter pairs. |
- Parameters
-
parameters | the sequence of name-value pairs. Each value will be encoded into JSON. |
- Returns
- reference to this object, convenient for chaining calls.
◆ pipeline_batch()
Set pipeline_batch size for this query.
- See also
- query_options::pipeline_batch for details.
- Parameters
-
- Returns
- reference to this object, convenient for chaining calls.
◆ pipeline_cap()
Set pipeline cap for this query.
- See also
- query_options::pipeline_cap for details.
- Parameters
-
- Returns
- reference to this object, convenient for chaining calls.
◆ positional_parameters()
template<typename... Parameters>
auto positional_parameters |
( |
const Parameters &... | parameters | ) |
|
|
inline |
Set positional parameters for this query.
- See also
- query_options::positional_parameters for details.
- Template Parameters
-
Parameters | Types of the parameters |
- Parameters
-
parameters | the sequence of positional parameters for this query. |
- Returns
- reference to this object, convenient for chaining calls.
◆ profile()
Set the profile mode for this query.
- See also
- query_options::profile for details.
- Parameters
-
mode | desired profile mode. |
- Returns
- reference to this object, convenient for chaining calls.
◆ raw()
template<typename Value >
Set an option which isn't exposed explicitly in transaction_query_options.
- See also
- query_options::raw for details.
- Template Parameters
-
- Parameters
-
key | The name of the option. |
value | The value of this option. |
- Returns
- reference to this object, convenient for chaining calls.
◆ readonly()
Set the readonly hint for this query.
- See also
- query_options::readonly
- Parameters
-
readonly | True if query doesn't mutate documents. |
- Returns
- reference to this object, convenient for chaining calls.
◆ scan_cap()
Set the scan cap for this query.
- See also
- query_options::scan_cap for details.
- Parameters
-
- Returns
- reference to this object, convenient for chaining calls.
◆ scan_consistency()
Set the query_scan_consistency for this query.
- See also
- query_options::scan_consistency for details.
- Parameters
-
scan_consistency | Desired scan consistency. |
- Returns
- reference to this object, convenient for chaining calls.
◆ scan_wait()
Set the scan_wait time.
- See also
- query_options::scan_wait for details.
- Parameters
-
scan_wait | Desired time for scan_wait. |
- Returns
- reference to this object, convenient for chaining calls.
The documentation for this class was generated from the following file: