vibe.d beta banner
get vibe.d
0.8.1

Asynchronous I/O that doesn’t get in your way, written in D

Struct MongoCursor

Represents a cursor for a MongoDB query.

struct MongoCursor(Q, R, S) ;

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

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

Constructors

NameDescription
this

Fields

NameTypeDescription
m_dataMongoCursorData!(Q,R,S)

Properties

NameTypeDescription
empty[get]boolReturns true if there are no more documents for this cursor.
front[get]RReturns the current document of the response.

Methods

NameDescription
byPairIterates over all remaining documents.
limitLimits the number of documents that the cursor returns.
popFrontAdvances the cursor to the next document of the response.
skipSkips a given number of elements at the beginning of the cursor.
sortControls 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.