Свойство | Type | Description | |
---|---|---|---|
ScanConsistencyResolver | string>.Dictionary |
Свойство | Type | Description | |
---|---|---|---|
GetQueryParametersAsFormUrlencoded | string | ||
IQueryRequest | bool |
Méthode | Description | |
---|---|---|
AdHoc ( bool adHoc ) : IQueryRequest |
If set to false, the client will try to perform optimizations transparently based on the server capabilities, like preparing the statement and then executing a query plan instead of the raw query. The default is |
|
AddCredentials ( string username, string password, bool isAdmin ) : IQueryRequest |
Adds a set of credentials to the list of credentials, in the form of user/password Optional. |
|
AddNamedParameter ( ) : IQueryRequest |
Adds a collection of named parameters to the parameters to the statement or prepared statement. Optional. |
|
AddNamedParameter ( string name, object value ) : IQueryRequest |
Adds a named parameter to the parameters to the statement or prepared statement. Optional. |
|
AddPositionalParameter ( ) : IQueryRequest |
Adds a list of positional parameters to the statement or prepared statement.
|
|
AddPositionalParameter ( object value ) : IQueryRequest |
Adds a positional parameter to the parameters to the statement or prepared statement. Optional. |
|
BaseUri ( |
Bases the URI.
|
|
ClientContextId ( string clientContextId ) : IQueryRequest |
Clients the context identifier.
|
|
Compression ( Compression compression ) : IQueryRequest |
Compression format to use for response data on the wire. Possible values are ZIP, RLE, LZMA, LZO, NONE. Optional. The default is NONE. |
|
ConsistentWith ( MutationState mutationState ) : IQueryRequest |
Provides a means of ensuring "read your own writes" or RYOW consistency on the current query. Note: ScanConsistency will be overwritten to N1QL.ScanConsistency.AtPlus. |
|
Create ( ) : IQueryRequest |
Creates a new QueryRequest object.
|
|
Create ( Couchbase.N1QL.QueryPlan plan, string originalStatement ) : IQueryRequest |
Creates a query using the given plan as an optimization for the originalStatement.
|
|
Create ( string statement ) : IQueryRequest |
Creates a new QueryRequest object with the specified statement.
|
|
Encoding ( |
Specifies the desired character encoding for the query results. Optional. |
|
Format ( System.Text.Format format ) : IQueryRequest |
Desired format for the query results. Optional. |
|
GetBaseUri ( ) : |
||
GetFormValues ( ) : object>.IDictionary |
Gets a IDictionary{K, V} of the name/value pairs to be POSTed to the service. Since values will be POSTed as JSON, here we deal with unencoded typed values (like ints, Lists, etc...) rather than only strings. |
|
GetFormValuesAsJson ( ) : string |
Gets the JSON representation of this query for execution in a POST.
|
|
GetOriginalStatement ( ) : string |
Gets the raw, unprepared N1QL statement. If the statement has been optimized using Prepared, this will still return the original un-optimized statement. |
|
GetPreparedPayload ( ) : Couchbase.N1QL.QueryPlan |
Gets the prepared payload for this N1QL statement if IsPrepared() is true, null otherwise.
|
|
MaxServerParallelism ( int parallelism ) : IQueryRequest |
Specifies the maximum parallelism for the query. A zero or negative value means the number of logical cpus will be used as the parallelism for the query. There is also a server wide max_parallelism parameter which defaults to 1. If a request includes max_parallelism, it will be capped by the server max_parallelism. If a request does not include max_parallelism, the server wide max_parallelism will be used.
|
|
Metrics ( bool includeMetrics ) : IQueryRequest |
Specifies that metrics should be returned with query results. Optional. |
|
Prepared ( Couchbase.N1QL.QueryPlan preparedPlan, string originalStatement ) : IQueryRequest |
Sets a N1QL statement to be executed in an optimized way using the given queryPlan. Required if statement not provided, will erase a previously set Statement. |
|
Pretty ( bool pretty ) : IQueryRequest |
Pretty print the output. True by default. |
|
QueryRequest ( ) : System | ||
QueryRequest ( Couchbase.N1QL.QueryPlan plan, string originalStatement ) : System | ||
QueryRequest ( string statement ) : System | ||
ReadOnly ( bool readOnly ) : IQueryRequest |
If a GET request, this will always be true otherwise false. Any value set here will be overridden by the type of request sent. |
|
ScanConsistency ( ScanConsistency scanConsistency ) : IQueryRequest |
Specifies the consistency guarantee/constraint for index scanning. Optional. |
|
ScanWait ( System.TimeSpan scanWait ) : IQueryRequest |
Specifies the maximum time the client is willing to wait for an index to catch up to the vector timestamp in the request. If an index has to catch up, and the ScanWait time is exceed doing so, an error is returned. Optional. |
|
Signature ( bool includeSignature ) : IQueryRequest |
Includes a header for the results schema in the response. The default is true. |
|
Statement ( string statement ) : IQueryRequest |
Sets a N1QL statement to be executed. Will erase a previous optimization of a statement using Prepared. |
|
Timeout ( System.TimeSpan timeOut ) : IQueryRequest |
Sets the maximum time to spend on the request. Optional - the default is 0ms, which means the request runs for as long as it takes. |
|
ToString ( ) : string |
Returns a System.String that represents this instance.
|
|
UseStreaming ( bool streaming ) : IQueryRequest |
Uses the streaming API for the returned results. This is useful for large result sets in that it limits the working size of the query and helps reduce the possibility of a OutOfMemoryException from occurring.
|
Méthode | Description | |
---|---|---|
GetQueryParametersAsFormUrlencoded ( ) : string | ||
IQueryRequest ( ) : bool |
#pragma warning disable 1584,1711,1572,1581,1580 True if the request exceeded it's ClientConfiguration.QueryRequestTimeout #pragma warning restore 1584,1711,1572,1581,1580
|
public AdHoc ( bool adHoc ) : IQueryRequest | ||
adHoc | bool | if set to |
Résultat | IQueryRequest |
public AddCredentials ( string username, string password, bool isAdmin ) : IQueryRequest | ||
username | string | The bucket or username. |
password | string | The password of the bucket. |
isAdmin | bool | True if connecting as an admin. |
Résultat | IQueryRequest |
public AddNamedParameter ( ) : IQueryRequest | ||
Résultat | IQueryRequest |
public AddNamedParameter ( string name, object value ) : IQueryRequest | ||
name | string | The name of the parameter. |
value | object | The value of the parameter. |
Résultat | IQueryRequest |
public AddPositionalParameter ( ) : IQueryRequest | ||
Résultat | IQueryRequest |
public AddPositionalParameter ( object value ) : IQueryRequest | ||
value | object | The value of the positional parameter. |
Résultat | IQueryRequest |
public BaseUri ( |
||
baseUri | The base URI. | |
Résultat | IQueryRequest |
public ClientContextId ( string clientContextId ) : IQueryRequest | ||
clientContextId | string | The client context identifier. |
Résultat | IQueryRequest |
public Compression ( Compression compression ) : IQueryRequest | ||
compression | Compression | |
Résultat | IQueryRequest |
public ConsistentWith ( MutationState mutationState ) : IQueryRequest | ||
mutationState | MutationState | State of the mutation. |
Résultat | IQueryRequest |
public static Create ( Couchbase.N1QL.QueryPlan plan, string originalStatement ) : IQueryRequest | ||
plan | Couchbase.N1QL.QueryPlan | The plan. |
originalStatement | string | The original statement, unoptimized. |
Résultat | IQueryRequest |
public static Create ( string statement ) : IQueryRequest | ||
statement | string | The statement. |
Résultat | IQueryRequest |
public Encoding ( |
||
encoding | An |
|
Résultat | IQueryRequest |
public Format ( System.Text.Format format ) : IQueryRequest | ||
format | System.Text.Format | An |
Résultat | IQueryRequest |
public GetFormValues ( ) : object>.IDictionary |
||
Résultat | object>.IDictionary |
public GetPreparedPayload ( ) : Couchbase.N1QL.QueryPlan | ||
Résultat | Couchbase.N1QL.QueryPlan |
public MaxServerParallelism ( int parallelism ) : IQueryRequest | ||
parallelism | int | |
Résultat | IQueryRequest |
public Metrics ( bool includeMetrics ) : IQueryRequest | ||
includeMetrics | bool | True to return query metrics. |
Résultat | IQueryRequest |
public Prepared ( Couchbase.N1QL.QueryPlan preparedPlan, string originalStatement ) : IQueryRequest | ||
preparedPlan | Couchbase.N1QL.QueryPlan | The |
originalStatement | string | The original statement (eg. SELECT * FROM default) that the user attempted to optimize |
Résultat | IQueryRequest |
public Pretty ( bool pretty ) : IQueryRequest | ||
pretty | bool | True for the pretty. |
Résultat | IQueryRequest |
public QueryRequest ( Couchbase.N1QL.QueryPlan plan, string originalStatement ) : System | ||
plan | Couchbase.N1QL.QueryPlan | |
originalStatement | string | |
Résultat | System |
public QueryRequest ( string statement ) : System | ||
statement | string | |
Résultat | System |
public ReadOnly ( bool readOnly ) : IQueryRequest | ||
readOnly | bool | True for get requests. |
Résultat | IQueryRequest |
public ScanConsistency ( ScanConsistency scanConsistency ) : IQueryRequest | ||
scanConsistency | ScanConsistency | Specify the consistency guarantee/constraint for index scanning. |
Résultat | IQueryRequest |
public ScanWait ( System.TimeSpan scanWait ) : IQueryRequest | ||
scanWait | System.TimeSpan | The maximum time the client is willing to wait for index to catch up to the vector timestamp. |
Résultat | IQueryRequest |
public Signature ( bool includeSignature ) : IQueryRequest | ||
includeSignature | bool | True to include a header for the results schema in the response. |
Résultat | IQueryRequest |
public Statement ( string statement ) : IQueryRequest | ||
statement | string | Any valid N1QL statement for a POST request, or a read-only N1QL statement (SELECT, EXPLAIN) for a GET request. |
Résultat | IQueryRequest |
public Timeout ( System.TimeSpan timeOut ) : IQueryRequest | ||
timeOut | System.TimeSpan | Maximum time to spend on the request |
Résultat | IQueryRequest |
public UseStreaming ( bool streaming ) : IQueryRequest | ||
streaming | bool | if set to |
Résultat | IQueryRequest |