mongoc_collection_destroy man page

mongoc_collection_destroy — mongoc_collection_destroy()

Synopsis

void
mongoc_collection_destroy (mongoc_collection_t *collection);

Parameters

  • collection: A mongoc_collection_t.

Description

This function shall destroy a mongoc_collection_t and its associated resources.

WARNING:

Always destroy a mongoc_cursor_t created from a collection before destroying the collection.

Author

MongoDB, Inc

Info

Mar 28, 2017 1.6.2 MongoDB C Driver