IQueryClient.Prepare Method Couchbase .NET SDK 2.0
Prepare an ad-hoc N1QL statement for later execution against a Couchbase Server.

Namespace: Couchbase.N1QL
Assembly: Couchbase.NetClient (in Couchbase.NetClient.dll) Version: 2.0.0.0 (2.0.0.0)
Syntax
IQueryResult<IQueryPlan> Prepare(
	Uri server,
	string statement
)

Parameters

server
Type: System.Uri
The Uri of the server.
statement
Type: System.String
A string containing a N1QL statement.

Return Value

Type: IQueryResult<IQueryPlan>
A IQueryResult<T> containing the IQueryPlan representing the reusable and cachable execution plan for the statement.
See Also