vibe.d beta banner
get vibe.d
0.7.30

Struct MongoCursor

Represents a cursor for a MongoDB query.

Use foreach( doc; cursor ) to iterate over the list of documents.

This struct uses reference counting to destroy the underlying MongoDB cursor.

Template arguments

struct MongoCursor(Q, R, S);

Constructors

Name Description
this

Fields

Name Type Description
m_data MongoCursorData!(Q,R,S)

Properties

Name Type Description
empty [get] bool Returns true if there are no more documents for this cursor.
front [get] R Returns the current document of the response.

Methods

Name Description
limit Limits the number of documents that the cursor returns.
opApply Iterates over all remaining documents.
popFront Advances the cursor to the next document of the response.
skip Skips a given number of elements at the beginning of the cursor.
sort Controls the order in which the query returns matching documents.
Authors

Sönke Ludwig

Copyright

© 2012-2014 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.