1MONGOC_URI_GET_OPTION_AS_INT64(3)  libmongoc MONGOC_URI_GET_OPTION_AS_INT64(3)
2
3
4

SYNOPSIS

6          int64_t
7          mongoc_uri_get_option_as_int64 (const mongoc_uri_t *uri,
8                                          const char *option,
9                                          int64_t fallback);
10

PARAMETERS

12uri: A mongoc_uri_t.
13
14option: The name of an option, case insensitive.
15
16fallback: A default value to return.
17

DESCRIPTION

19       Returns  the  value  of  the URI option if it is set and of the correct
20       type (integer). Returns fallback if the option is not set,  set  to  an
21       invalid type, or zero.
22
23       Zero  is  considered  "unset",  so URIs can be constructed like so, and
24       still accept default values:
25
26          bson_strdup_printf ("mongodb://localhost/?wTimeoutMS=%" PRId64, myvalue)
27
28       If myvalue is non-zero it is the write concern timeout; if it  is  zero
29       the driver uses the default timeout.
30
31       SEE ALSO:
32          mongoc_uri_get_option_as_int32()
33
34

AUTHOR

36       MongoDB, Inc
37
39       2017-present, MongoDB, Inc
40
41
42
43
441.25.1                           Nov 08, 2023MONGOC_URI_GET_OPTION_AS_INT64(3)
Impressum