1MONGOC_URI_GET_READ_PREFS(3) libmongoc MONGOC_URI_GET_READ_PREFS(3)
2
3
4
6 mongoc_uri_get_read_prefs - mongoc_uri_get_read_prefs()
7
8 WARNING:
9 Deprecated since version 1.2.0: This function is deprecated and
10 should not be used in new code.
11
12 Please use mongoc_uri_get_read_prefs_t() in new code.
13
14
16 const bson_t *
17 mongoc_uri_get_read_prefs (const mongoc_uri_t *uri);
18
20 • uri: A mongoc_uri_t.
21
23 Fetches a bson document containing read preference tag information from
24 a URI. Note that this does not include the read preference mode.
25
27 Returns a bson document that should not be modified or freed if uri has
28 read preferences, otherwise NULL.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.24.3 Aug 17, 2023 MONGOC_URI_GET_READ_PREFS(3)