1MONGOC_URI_SET_DATABASE(3)         libmongoc        MONGOC_URI_SET_DATABASE(3)
2
3
4

NAME

6       mongoc_uri_set_database - mongoc_uri_set_database()
7

SYNOPSIS

9          bool
10          mongoc_uri_set_database (mongoc_uri_t *uri, const char *database);
11

PARAMETERS

13uri: A mongoc_uri_t.
14
15database: The new database name.
16

DESCRIPTION

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 in‐
21       cludes authentication credentials. This database  is  also  the  return
22       value of mongoc_client_get_default_database.
23

RETURNS

25       Returns  false  if the option cannot be set, for example if database is
26       not valid UTF-8.
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.17.6                           Jun 03, 2021       MONGOC_URI_SET_DATABASE(3)
Impressum