1MONGOC_URI_SET_OPTION_AS_INT64(3) libmongoc MONGOC_URI_SET_OPTION_AS_INT64(3)
2
3
4
6 bool
7 mongoc_uri_set_option_as_int64 (const mongoc_uri_t *uri,
8 const char *option,
9 int64_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 int32 or int64 can be set. For 32-bit inte‐
23 ger options, the function returns false when trying to set a 64-bit
24 value that exceeds the range of an int32_t. Values that fit into an
25 int32_t will be set correctly. In both cases, a warning will be emit‐
26 ted.
27
28 Updates the option in-place if already set, otherwise appends it to the
29 URI's bson_t of options.
30
32 True if successfully set (the named option is a known option of type
33 int64).
34
35 SEE ALSO:
36 mongoc_uri_option_is_int64()
37
38 mongoc_uri_set_option_as_int32()
39
40
42 MongoDB, Inc
43
45 2017-present, MongoDB, Inc
46
47
48
49
501.25.1 Nov 08, 2023MONGOC_URI_SET_OPTION_AS_INT64(3)