1MONGOC_COLLECTION_SET_READ_PREFS(3)libmongocMONGOC_COLLECTION_SET_READ_PREFS(3)
2
3
4

NAME

6       mongoc_collection_set_read_prefs - mongoc_collection_set_read_prefs()
7

SYNOPSIS

9          void
10          mongoc_collection_set_read_prefs (mongoc_collection_t *collection,
11                                            const mongoc_read_prefs_t *read_prefs);
12

PARAMETERS

14collection: A mongoc_collection_t.
15
16read_prefs: A mongoc_read_prefs_t.
17

DESCRIPTION

19       Sets  the  default read preferences to use for operations on collection
20       not specifying a read preference.
21
22       The global default is MONGOC_READ_PRIMARY: if the client  is  connected
23       to a replica set it reads from the primary, otherwise it reads from the
24       current MongoDB server.
25
26       Please see the MongoDB website for a description of Read Preferences.
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.20.0                           Nov 18, 202M1ONGOC_COLLECTION_SET_READ_PREFS(3)
Impressum