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

NAME

6       mongoc_uri_get_option_as_int64 - mongoc_uri_get_option_as_int64()
7

SYNOPSIS

9          int64_t
10          mongoc_uri_get_option_as_int64 (const mongoc_uri_t *uri,
11                                          const char *option,
12                                          int64_t fallback);
13

PARAMETERS

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

DESCRIPTION

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

AUTHOR

39       MongoDB, Inc
40
42       2017-present, MongoDB, Inc
43
44
45
46
471.23.1                           Oct 20, 2022MONGOC_URI_GET_OPTION_AS_INT64(3)
Impressum