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

SYNOPSIS

6          mongoc_database_t *
7          mongoc_database_copy (mongoc_database_t *database) BSON_GNUC_WARN_UNUSED_RESULT;
8

PARAMETERS

10database: A mongoc_database_t.
11

DESCRIPTION

13       Performs a deep copy of the database struct and its configuration. Use‐
14       ful  if  you  intend   to   call   mongoc_database_set_write_concern(),
15       mongoc_database_set_read_prefs(),                                    or
16       mongoc_database_set_read_concern(), and want to preserve  an  unaltered
17       copy of the struct.
18

RETURNS

20       A   newly   allocated  mongoc_database_t  that  should  be  freed  with
21       mongoc_database_destroy() when no longer in use.
22

AUTHOR

24       MongoDB, Inc
25
27       2017-present, MongoDB, Inc
28
29
30
31
321.25.1                           Nov 08, 2023          MONGOC_DATABASE_COPY(3)
Impressum