Class ScopeExtensions
Inherited Members
Namespace: Couchbase
Assembly: Couchbase.NetClient.dll
Syntax
public static class ScopeExtensions
Methods
| Edit this page View SourceAnalyticsQueryAsync<T>(IScope, string, Action<AnalyticsOptions>)
Executes a analytics query on the server.
Declaration
public static Task<IAnalyticsResult<T>> AnalyticsQueryAsync<T>(this IScope scope, string statement, Action<AnalyticsOptions> configureOptions)
Parameters
Type | Name | Description |
---|---|---|
IScope | scope | The calling scope. |
string | statement | The statement to execute. |
Action<AnalyticsOptions> | configureOptions |
Returns
Type | Description |
---|---|
Task<IAnalyticsResult<T>> | A Task that can be awaited for the results of the query. |
Type Parameters
Name | Description |
---|---|
T | The type of the result. |
QueryAsync<T>(IScope, string)
Executes a N1QL query on the server.
Declaration
public static Task<IQueryResult<T>> QueryAsync<T>(this IScope scope, string statement)
Parameters
Type | Name | Description |
---|---|---|
IScope | scope | The calling scope. |
string | statement | The statement to execute. |
Returns
Type | Description |
---|---|
Task<IQueryResult<T>> | A Task that can be awaited for the results of the query. |
Type Parameters
Name | Description |
---|---|
T | The type of the result. |
QueryAsync<T>(IScope, string, Action<QueryOptions>)
Executes a N1QL query on the server.
Declaration
public static Task<IQueryResult<T>> QueryAsync<T>(this IScope scope, string statement, Action<QueryOptions> configureOptions)
Parameters
Type | Name | Description |
---|---|---|
IScope | scope | The calling scope. |
string | statement | The statement to execute. |
Action<QueryOptions> | configureOptions | Any options as a lambda. |
Returns
Type | Description |
---|---|
Task<IQueryResult<T>> | A Task that can be awaited for the results of the query. |
Type Parameters
Name | Description |
---|---|
T | The type of the result. |