getMore.getMore

Modern (MongoDB 3.2+ compatible) getMore implementation using the getMore command and OP_MSG. (if supported)

Falls back to compatibility for older MongoDB versions, but those are not officially supported anymore.

More...
  1. void getMore(string collection_name, int nret, long cursor_id, ReplyDelegate on_msg, DocDelegate!T on_doc)
  2. void getMore(long cursor_id, string database, string collection_name, long nret, GetMoreHeaderDelegate on_header, GetMoreDocumentDelegate!T on_doc, Duration timeout, string errorInfo, string errorFile, size_t errorLine)
    template getMore(T)
    @safe
    void
    getMore
    (,
    string database
    ,,
    long nret
    ,,,
    Duration timeout = Duration.max
    ,
    string errorInfo = __FUNCTION__
    ,
    string errorFile = __FILE__
    ,
    size_t errorLine = __LINE__
    )

Detailed Description

Upgrade notes

- error checking is now done inside this function - document index is no longer sent, instead the callback is called sequentially

Throws

MongoDriverException in case the command fails.

Meta