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