1MONGOC_CLIENT_GET_DATABASE(3)      libmongoc     MONGOC_CLIENT_GET_DATABASE(3)
2
3
4

SYNOPSIS

6          mongoc_database_t *
7          mongoc_client_get_database (mongoc_client_t *client,
8                                      const char *name) BSON_GNUC_WARN_UNUSED_RESULT;
9
10       Get a newly allocated mongoc_database_t for the database named name.
11
12       TIP:
13          Databases  are  automatically created on the MongoDB server upon in‐
14          sertion of the first document into a collection. There is no need to
15          create a database manually.
16

PARAMETERS

18client: A mongoc_client_t.
19
20name: The name of the database.
21

RETURNS

23       A   newly   allocated  mongoc_database_t  that  should  be  freed  with
24       mongoc_database_destroy() when no longer in use.
25

AUTHOR

27       MongoDB, Inc
28
30       2017-present, MongoDB, Inc
31
32
33
34
351.25.1                           Nov 08, 2023    MONGOC_CLIENT_GET_DATABASE(3)
Impressum