mongoc_query_flags_t

Values

ValueMeaning
NONE0
TAILABLE_CURSOR2
SLAVE_OK4
OPLOG_REPLAY8
NO_CURSOR_TIMEOUT16
AWAIT_DATA32
EXHAUST64
PARTIAL128

Detailed Description

mongoc query flags t

@MONGOC_QUERY_NONE: No query flags supplied. @MONGOC_QUERY_TAILABLE_CURSOR: Cursor will not be closed when the last data is retrieved. You can resume this cursor later. @MONGOC_QUERY_SLAVE_OK: Allow query of replica slave. @MONGOC_QUERY_OPLOG_REPLAY: Used internally by Mongo. @MONGOC_QUERY_NO_CURSOR_TIMEOUT: The server normally times out idle cursors after an inactivity period (10 minutes). This prevents that. @MONGOC_QUERY_AWAIT_DATA: Use with %MONGOC_QUERY_TAILABLE_CURSOR. Block rather than returning no data. After a period, time out. @MONGOC_QUERY_EXHAUST: Stream the data down full blast in multiple "more" packages. Faster when you are pulling a lot of data and know you want to pull it all down. @MONGOC_QUERY_PARTIAL: Get partial results from mongos if some shards are down (instead of throwing an error).

#mongoc_query_flags_t is used for querying a Mongo instance.

Meta