|
Couchbase C++ SDK 1.4.0 (rev. 59aa900)
|
The transaction_query_options are options specific to a query. More...
#include <couchbase/transactions/transaction_query_options.hxx>
Public Member Functions | |
| transaction_query_options () | |
| template<typename Value> | |
| auto | raw (const std::string &key, const Value &value) -> transaction_query_options & |
| Set an option which isn't exposed explicitly in transaction_query_options. | |
| auto | ad_hoc (bool value) -> transaction_query_options & |
| Set ad_hoc. | |
| auto | scan_consistency (query_scan_consistency scan_consistency) -> transaction_query_options & |
| Set the query_scan_consistency for this query. | |
| auto | profile (query_profile mode) -> transaction_query_options & |
| Set the profile mode for this query. | |
| auto | client_context_id (const std::string &id) -> transaction_query_options & |
| Set a client id for this query. | |
| auto | scan_wait (std::chrono::milliseconds scan_wait) -> transaction_query_options & |
| Set the scan_wait time. | |
| auto | readonly (bool readonly) -> transaction_query_options & |
| Set the readonly hint for this query. | |
| auto | scan_cap (std::uint64_t cap) -> transaction_query_options & |
| Set the scan cap for this query. | |
| auto | pipeline_batch (std::uint64_t batch) -> transaction_query_options & |
| Set pipeline_batch size for this query. | |
| auto | pipeline_cap (std::uint64_t cap) -> transaction_query_options & |
| Set pipeline cap for this query. | |
| template<typename... Parameters> | |
| auto | positional_parameters (const Parameters &... parameters) |
| Set positional parameters for this query. | |
| template<typename... Parameters> | |
| auto | named_parameters (const Parameters &... parameters) -> transaction_query_options & |
| Set named parameters for this query. | |
| auto | metrics (bool metrics) -> transaction_query_options & |
| Set metrics for this query. | |
| auto | max_parallelism (std::uint64_t max) -> transaction_query_options & |
| Set max parallelism for this query. | |
| auto | flex_index (bool flex_index) -> transaction_query_options & |
| Tells the query engine to use a flex index (utilizing the search service). | |
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.
|
inline |
|
inline |
Set ad_hoc.
Inform query service that this query is, or is not, a prepared statement query.
| value | if set to false this query will be turned into a prepared statement query. |
|
inline |
Set a client id for this query.
| id | Desired id |
|
inline |
Tells the query engine to use a flex index (utilizing the search service).
| flex_index | if a flex index should be used, false is the default. |
|
inline |
Set max parallelism for this query.
| max | Desired max parallelism |
|
inline |
Set metrics for this query.
If true, the query results will contain metrics. This is true by default for transactional queries.
| metrics | True if metrics are desired. |
|
inline |
Set named parameters for this query.
| Parameters | Types of the parameter pairs. |
| parameters | the sequence of name-value pairs. Each value will be encoded into JSON. |
|
inline |
Set pipeline_batch size for this query.
| batch | desired batch size. |
|
inline |
Set pipeline cap for this query.
| cap | desired cap. |
|
inline |
Set positional parameters for this query.
| Parameters | Types of the parameters |
| parameters | the sequence of positional parameters for this query. |
|
inline |
Set the profile mode for this query.
| mode | desired profile mode. |
|
inline |
Set an option which isn't exposed explicitly in transaction_query_options.
| Value | type of the value. |
| key | The name of the option. |
| value | The value of this option. |
|
inline |
Set the readonly hint for this query.
| readonly | True if query doesn't mutate documents. |
|
inline |
Set the scan cap for this query.
| cap | Desired cap. |
|
inline |
Set the query_scan_consistency for this query.
| scan_consistency | Desired scan consistency. |
|
inline |
Set the scan_wait time.
| scan_wait | Desired time for scan_wait. |