1MONGOC_DATABASE_COPY(3)            libmongoc           MONGOC_DATABASE_COPY(3)
2
3
4

NAME

6       mongoc_database_copy - mongoc_database_copy()
7

SYNOPSIS

9          mongoc_database_t *
10          mongoc_database_copy (mongoc_database_t *database) BSON_GNUC_WARN_UNUSED_RESULT;
11

PARAMETERS

13database: A mongoc_database_t.
14

DESCRIPTION

16       Performs a deep copy of the database struct and its configuration. Use‐
17       ful  if  you  intend   to   call   mongoc_database_set_write_concern(),
18       mongoc_database_set_read_prefs(),                                    or
19       mongoc_database_set_read_concern(), and want to preserve  an  unaltered
20       copy of the struct.
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.24.3                           Aug 17, 2023          MONGOC_DATABASE_COPY(3)
Impressum