1MONGOC_URI_SET_OPTION_AS_INT32(3) libmongoc MONGOC_URI_SET_OPTION_AS_INT32(3)
2
3
4
6 bool
7 mongoc_uri_set_option_as_int32 (const mongoc_uri_t *uri,
8 const char *option,
9 int32_t 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 integer can be set. Some integer options,
23 such as minHeartbeatFrequencyMS, have additional constraints.
24
25 Updates the option in-place if already set, otherwise appends it to the
26 URI's bson_t of options.
27
29 True if successfully set (the named option is a known option of type
30 int32 or int64).
31
32 SEE ALSO:
33 mongoc_uri_set_option_as_int64()
34
35
37 MongoDB, Inc
38
40 2017-present, MongoDB, Inc
41
42
43
44
451.25.1 Nov 08, 2023MONGOC_URI_SET_OPTION_AS_INT32(3)