1MONGOC_CLIENT_NEW(3) libmongoc MONGOC_CLIENT_NEW(3)
2
3
4
6 mongoc_client_t *
7 mongoc_client_new (const char *uri_string) BSON_GNUC_WARN_UNUSED_RESULT;
8
9 Creates a new mongoc_client_t using the URI string provided.
10
12 • uri_string: A string containing the MongoDB connection URI.
13
15 A newly allocated mongoc_client_t that should be freed with
16 mongoc_client_destroy() when no longer in use. On error, NULL is re‐
17 turned and an error or warning will be logged.
18
19 SEE ALSO:
20 mongoc_client_new_from_uri()
21
22
24 MongoDB, Inc
25
27 2017-present, MongoDB, Inc
28
29
30
31
321.25.1 Nov 08, 2023 MONGOC_CLIENT_NEW(3)