1MONGOC_CLIENT_NEW_FROM_URI(3) libmongoc MONGOC_CLIENT_NEW_FROM_URI(3)
2
3
4
6 mongoc_client_new_from_uri - mongoc_client_new_from_uri()
7
9 mongoc_client_t *
10 mongoc_client_new_from_uri (const mongoc_uri_t *uri)
11 BSON_GNUC_WARN_UNUSED_RESULT;
12
13 Creates a new mongoc_client_t using the mongoc_uri_t provided.
14
16 • uri: A mongoc_uri_t.
17
19 A newly allocated mongoc_client_t that should be freed with mon‐
20 goc_client_destroy() when no longer in use. On error, NULL is returned
21 and an error will be logged.
22
23 SEE ALSO:
24 mongoc_client_new_from_uri_with_error()
25
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.21.1 Mar 02, 2022 MONGOC_CLIENT_NEW_FROM_URI(3)