Click or drag to resize

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
Syntax
C#
public 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: QueryOptions
A reference to the current QueryOptions for method chaining.
Exceptions
ExceptionCondition
ArgumentNullExceptionpreparedPlan is .
Remarks
Required if statement not provided, will erase a previously set Statement.
See Also