Struct rincon_client::cursor::types::CursorOptions [] [src]

pub struct CursorOptions { /* fields omitted */ }

Optional parameters for tweaking query execution.

Methods

impl CursorOptions
[src]

[src]

Sets the flag indicating whether the query shall fail on warnings.

When set to true, the query will throw an exception and abort instead of producing a warning. This option should be used during development to catch potential issues early. When the attribute is set to false, warnings will not be propagated to exceptions and will be returned with the query result. There is also a server configuration option --query.fail-on-warning for setting the default value for fail_on_warning so it does not need to be set on a per-query level.

[src]

Returns whether the query shall fail on warnings.

[src]

Sets the flag indicating whether additional query profiling information shall be returned.

If set to true, then the additional query profiling information will be returned in the sub-attribute profile of the extra return attribute if the query result is not served from the query cache.

[src]

Returns whether additional query profiling information shall be returned.

[src]

Sets the maximum number of warnings a query will return.

The number of warnings a query will return is limited to 10 by default, but that number can be increased or decreased by setting this attribute.

[src]

Returns the maximum number of warnings a query will return.

[src]

Set the flag indicating whether full count and stats should be returned.

If set to true and the query contains a LIMIT clause, then the result will have an extra attribute with the sub-attributes stats and fullCount, { ... , "extra": { "stats": { "fullCount": 123 } } }. The fullCount attribute will contain the number of documents in the result before the last LIMIT in the query was applied. It can be used to count the number of documents that match certain filter criteria, but only return a subset of them, in one go. It is thus similar to MySQL's SQL_CALC_FOUND_ROWS hint. Note that setting the option will disable a few LIMIT optimizations and may lead to more documents being processed, and thus make queries run longer. Note that the fullCount attribute will only be present in the result if the query has a LIMIT clause and the LIMIT clause is actually used in the query.

[src]

Returns whether full count and stats should be returned.

[src]

Sets the maximum number of plans that are created by the AQL query optimizer.

[src]

Returns the maximum number of plans that are created by the AQL query optimizer.

[src]

Returns a mutable reference to the optimizer options.

[src]

Removes the optimizer options from this struct and returns the them.

[src]

Returns a reference to the optimizer options.

[src]

Sets the maximum number of operations after which an intermediate commit is performed automatically.

Honored by the RocksDB storage engine only.

[src]

Returns the maximum number of operations after which an intermediate commit is performed automatically.

Honored by the RocksDB storage engine only.

[src]

Sets the maximum total size of operations after which an intermediate commit is performed automatically.

Honored by the RocksDB storage engine only.

[src]

Returns the maximum total size of operations after which an intermediate commit is performed automatically.

Honored by the RocksDB storage engine only.

[src]

Sets the transaction size limit in bytes.

Honored by the RocksDB storage engine only.

[src]

Returns the transaction size limit in bytes.

Honored by the RocksDB storage engine only.

[src]

Sets the enterprise parameter that configures how long a DBServer will have time to bring the satellite collections involved in the query into sync.

The default value is 60.0 (seconds). When the max time has been reached the query will be stopped.

[src]

Returns the enterprise parameter that configures how long a DBServer will have time to bring the satellite collections involved in the query into sync.

Trait Implementations

impl Debug for CursorOptions
[src]

[src]

Formats the value using the given formatter. Read more

impl Clone for CursorOptions
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for CursorOptions
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Default for CursorOptions
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for CursorOptions

impl Sync for CursorOptions