1MONGOC_DATABASE_COPY(3) libmongoc MONGOC_DATABASE_COPY(3)
2
3
4
6 mongoc_database_t *
7 mongoc_database_copy (mongoc_database_t *database) BSON_GNUC_WARN_UNUSED_RESULT;
8
10 • database: A mongoc_database_t.
11
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
20 A newly allocated mongoc_database_t that should be freed with
21 mongoc_database_destroy() when no longer in use.
22
24 MongoDB, Inc
25
27 2017-present, MongoDB, Inc
28
29
30
31
321.25.1 Nov 08, 2023 MONGOC_DATABASE_COPY(3)