1MONGOC_CLIENT_NEW(3)               libmongoc              MONGOC_CLIENT_NEW(3)
2
3
4

NAME

6       mongoc_client_new - mongoc_client_new()
7

SYNOPSIS

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

PARAMETERS

15uri_string: A string containing the MongoDB connection URI.
16

RETURNS

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

AUTHOR

27       MongoDB, Inc
28
30       2017-present, MongoDB, Inc
31
32
33
34
351.23.1                           Oct 20, 2022             MONGOC_CLIENT_NEW(3)
Impressum