 | QueryOptionsPrepared Method |
Sets a N1QL statement to be executed in an optimized way using the given queryPlan.
Namespace:
Couchbase.Query
Assembly:
Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 3.0.0-local-202004010202+047adc0837bfc29c0b8cce4322194a09afd8ea18
Syntaxpublic QueryOptions Prepared(
QueryPlan preparedPlan,
string originalStatement
)
Parameters
- preparedPlan
- Type: Couchbase.QueryQueryPlan
The QueryPlan that was prepared beforehand. - originalStatement
- Type: SystemString
The original statement (eg. SELECT * FROM default) that the user attempted to optimize
Return Value
Type:
QueryOptionsA reference to the current
QueryOptions for method chaining.
ExceptionsException | Condition |
---|
ArgumentNullException | preparedPlan is . |
RemarksRequired if statement not provided, will erase a previously set Statement.
See Also