Struct rincon_session::client::NewCursor [] [src]

pub struct NewCursor { /* fields omitted */ }

This struct defines the parameters of a cursor for an AQL query that is to be created.

Methods

impl NewCursor
[src]

[src]

Constructs a new instance of NewCursor from the given Query.

[src]

Returns the query string to be executed.

[src]

Returns the bind parameters of this Query.

[src]

Sets the flag whether number of documents in the result set should be returned.

Calculating the 'count' attribute might have a performance impact for some queries in the future so this option is turned off by default, and 'count' is only returned when requested.

[src]

Returns whether the number of documents in the result set should be returned in the "count" attribute of the result.

[src]

Sets the maximum number of result documents to be transferred from the server to the client in one round-trip.

If this attribute is not set, a server-controlled default value will be used. A batchSize value of 0 is disallowed.

[src]

Returns the maximum number of result documents to be transferred from the server to the client in one round-trip.

[src]

Sets the flag that indicates whether the AQL query cache shall be used.

If set to false, then any query cache lookup will be skipped for the query. If set to true, it will lead to the query cache being checked for the query if the query cache mode is either on or demand.

[src]

Returns whether the AQL query cache shall be used.

[src]

Sets the maximum number of memory (measured in bytes) that the query is allowed to use.

If set, then the query will fail with error 'resource limit exceeded' in case it allocates too much memory. A value of 0 indicates that there is no memory limit.

[src]

Returns the maximum number of memory (measured in bytes) that the query is allowed to use.

[src]

Sets the time-to-live for the cursor (in seconds).

The cursor will be removed on the server automatically after the specified amount of time. This is useful to ensure garbage collection of cursors that are not fully fetched by clients. If not set, a server-defined value will be used.

[src]

Returns the time-to-live for the cursor (in seconds).

[src]

Returns the optional cursor options as mutable reference for changing the optional cursor options in place.

The cursor options can be used to tweak query execution.

[src]

Removes the currently set options from this struct and returns them.

[src]

Returns the optional cursor options for tweaking query execution.

Trait Implementations

impl PartialEq<NewCursor> for NewCursor
[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 Serialize for NewCursor
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl From<Query> for NewCursor
[src]

[src]

Performs the conversion.

impl Clone for NewCursor
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for NewCursor
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for NewCursor

impl Sync for NewCursor