1MONGOC_DATABASE_COPY(3)        MongoDB C Driver        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);
11

PARAMETERS

13       · database: 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,  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
21       This function does not copy the contents of the database on the MongoDB
22       server; use the copydb command for that purpose.
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.13.1                           Jan 24, 2019          MONGOC_DATABASE_COPY(3)
Impressum