1MONGOC_DATABASE_COPY(3) libmongoc MONGOC_DATABASE_COPY(3)
2
3
4
6 mongoc_database_copy - mongoc_database_copy()
7
9 mongoc_database_t *
10 mongoc_database_copy (mongoc_database_t *database);
11
13 • database: A mongoc_database_t.
14
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, mon‐
18 goc_database_set_read_prefs, or mongoc_database_set_read_concern, and
19 want to preserve an unaltered copy of the struct.
20
22 A newly allocated mongoc_database_t that should be freed with mon‐
23 goc_database_destroy() when no longer in use.
24
26 MongoDB, Inc
27
29 2017-present, MongoDB, Inc
30
31
32
33
341.17.6 Jun 03, 2021 MONGOC_DATABASE_COPY(3)