DOKK / manpages / debian 10 / libmongoc-doc / mongoc_client_new.3.en
MONGOC_CLIENT_NEW(3) MongoDB C Driver MONGOC_CLIENT_NEW(3)

mongoc_client_new - mongoc_client_new()

mongoc_client_t *
mongoc_client_new (const char *uri_string);


Creates a new mongoc_client_t using the URI string provided.

uri_string: A string containing the MongoDB connection URI.

A newly allocated mongoc_client_t if the URI parsed successfully, otherwise NULL.

mongoc_client_new_from_uri()

MongoDB, Inc

2017-present, MongoDB, Inc

February 23, 2019 1.14.0