1MONGOC_URI_SET_DATABASE(3) MongoDB C Driver MONGOC_URI_SET_DATABASE(3)
2
3
4
6 mongoc_uri_set_database - mongoc_uri_set_database()
7
9 bool
10 mongoc_uri_set_database (mongoc_uri_t *uri, const char *database);
11
13 · uri: A mongoc_uri_t.
14
15 · database: The new database name.
16
18 Sets the URI's database, after the URI has been parsed from a string.
19
20 The driver authenticates to this database if the connection string
21 includes authentication credentials. This database is also the return
22 value of mongoc_client_get_default_database.
23
25 Returns false if the option cannot be set, for example if database is
26 not valid UTF-8.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.13.1 Jan 24, 2019 MONGOC_URI_SET_DATABASE(3)