1MONGOC_URI_GET_OPTION_AS_BOOL(3) libmongoc MONGOC_URI_GET_OPTION_AS_BOOL(3)
2
3
4
6 bool
7 mongoc_uri_get_option_as_bool (const mongoc_uri_t *uri,
8 const char *option,
9 bool fallback);
10
12 • uri: A mongoc_uri_t.
13
14 • option: The name of an option, case insensitive.
15
16 • fallback: A default value to return.
17
19 Returns the value of the URI option if it is set and of the correct
20 type (bool). If not set, or set to an invalid type, returns fallback.
21
23 MongoDB, Inc
24
26 2017-present, MongoDB, Inc
27
28
29
30
311.25.1 Nov 08, 2023 MONGOC_URI_GET_OPTION_AS_BOOL(3)