1MONGOC_URI_SET_OPTION_AS_INT64(3)  libmongoc MONGOC_URI_SET_OPTION_AS_INT64(3)
2
3
4

NAME

6       mongoc_uri_set_option_as_int64 - mongoc_uri_set_option_as_int64()
7

SYNOPSIS

9          bool
10          mongoc_uri_set_option_as_int64 (const mongoc_uri_t *uri,
11                                          const char *option,
12                                          int64_t value);
13

PARAMETERS

15uri: A mongoc_uri_t.
16
17option: The name of an option, case insensitive.
18
19value: The new value.
20

DESCRIPTION

22       Sets  an  individual  URI  option, after the URI has been parsed from a
23       string.
24
25       Only known options of type int32 or int64 can be set. For 32-bit  inte‐
26       ger  options,  the  function  returns false when trying to set a 64-bit
27       value that exceeds the range of an int32_t. Values  that  fit  into  an
28       int32_t  will  be set correctly. In both cases, a warning will be emit‐
29       ted.
30
31       Updates the option in-place if already set, otherwise appends it to the
32       URI's bson_t of options.
33

RETURNS

35       True  if  successfully  set (the named option is a known option of type
36       int64).
37

SEE ALSO

39mongoc_uri_option_is_int64()
40
41mongoc_uri_set_option_as_int32()
42

AUTHOR

44       MongoDB, Inc
45
47       2017-present, MongoDB, Inc
48
49
50
51
521.17.6                           Jun 03, 2021MONGOC_URI_SET_OPTION_AS_INT64(3)
Impressum