1MONGOC_COLLECTION_DESTROY(3) libmongoc MONGOC_COLLECTION_DESTROY(3)
2
3
4
6 mongoc_collection_destroy - mongoc_collection_destroy()
7
9 void
10 mongoc_collection_destroy (mongoc_collection_t *collection);
11
13 • collection: A mongoc_collection_t.
14
16 This function shall destroy a mongoc_collection_t and its associated
17 resources. Does nothing if collection is NULL.
18
19 WARNING:
20 Always destroy a mongoc_cursor_t created from a collection before
21 destroying the collection.
22
24 MongoDB, Inc
25
27 2017-present, MongoDB, Inc
28
29
30
31
321.20.0 Nov 18, 2021 MONGOC_COLLECTION_DESTROY(3)