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

NAME

6       mongoc_client_get_database - mongoc_client_get_database()
7

SYNOPSIS

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

PARAMETERS

20client: A mongoc_client_t.
21
22name: The name of the database.
23

RETURNS

25       A  newly  allocated  mongoc_database_t  that  should be freed with mon‐
26       goc_database_destroy() when no longer in use.
27

AUTHOR

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