mongoc_client_get_uri()

Synopsis

const mongoc_uri_t *
mongoc_client_get_uri (const mongoc_client_t *client);

Fetches the mongoc_uri_t used to create the client.

Parameters

client

A mongoc_client_t.

Returns

A mongoc_uri_t that should not be modified or freed.