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

SYNOPSIS

6          bool
7          mongoc_uri_set_database (mongoc_uri_t *uri, const char *database);
8

PARAMETERS

10uri: A mongoc_uri_t.
11
12database: The new database name.
13

DESCRIPTION

15       Sets the URI's database, after the URI has been parsed from a string.
16
17       The  driver authenticates to this database if the connection string in‐
18       cludes authentication credentials. This database  is  also  the  return
19       value of mongoc_client_get_default_database().
20

RETURNS

22       Returns  false  if the option cannot be set, for example if database is
23       not valid UTF-8.
24

AUTHOR

26       MongoDB, Inc
27
29       2017-present, MongoDB, Inc
30
31
32
33
341.25.1                           Nov 08, 2023       MONGOC_URI_SET_DATABASE(3)
Impressum