1MONGOC_COLLECTION_RENAME(3)        libmongoc       MONGOC_COLLECTION_RENAME(3)
2
3
4

NAME

6       mongoc_collection_rename - mongoc_collection_rename()
7

SYNOPSIS

9          bool
10          mongoc_collection_rename (mongoc_collection_t *collection,
11                                    const char *new_db,
12                                    const char *new_name,
13                                    bool drop_target_before_rename,
14                                    bson_error_t *error);
15

PARAMETERS

17collection: A mongoc_collection_t.
18
19new_db: The name of the new database.
20
21new_name: The new name for the collection.
22
23drop_target_before_rename:  If an existing collection matches the new
24         name, drop it before the rename.
25
26error: An optional location for a bson_error_t or NULL.
27

DESCRIPTION

29       For more information,  see  mongoc_collection_rename_with_opts().  This
30       function is a thin wrapper, passing NULL in as bson_t parameter.
31

AUTHOR

33       MongoDB, Inc
34
36       2017-present, MongoDB, Inc
37
38
39
40
411.20.0                           Nov 18, 2021      MONGOC_COLLECTION_RENAME(3)
Impressum