mongoc_collection_ensure_index man page

mongoc_collection_ensure_index ā€” mongoc_collection_ensure_index()

Synopsis

bool
mongoc_collection_ensure_index (mongoc_collection_t *collection,
                                const bson_t *keys,
                                const mongoc_index_opt_t *opt,
                                bson_error_t *error)
   BSON_GNUC_DEPRECATED_FOR (mongoc_collection_create_index);

Deprecated

WARNING:

This function is deprecated and should not be used in new code.

Please use mongoc_collection_create_index() instead.

Parameters

Errors

Errors are propagated via the error parameter.

Author

MongoDB, Inc

Info

Aug 10, 2017 1.7.0 MongoDB C Driver