1MONGOC_URI_SET_OPTION_AS_BOOL(3) libmongoc MONGOC_URI_SET_OPTION_AS_BOOL(3)
2
3
4
6 bool
7 mongoc_uri_set_option_as_bool (const mongoc_uri_t *uri,
8 const char *option,
9 bool value);
10
12 • uri: A mongoc_uri_t.
13
14 • option: The name of an option, case insensitive.
15
16 • value: The new value.
17
19 Sets an individual URI option, after the URI has been parsed from a
20 string.
21
22 Only known options of type bool can be set.
23
24 Updates the option in-place if already set, otherwise appends it to the
25 URI's bson_t of options.
26
28 True if successfully set (the named option is a known option of type
29 bool).
30
32 MongoDB, Inc
33
35 2017-present, MongoDB, Inc
36
37
38
39
401.25.1 Nov 08, 2023 MONGOC_URI_SET_OPTION_AS_BOOL(3)