logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Deprecated since version 1.8.0: See Manage Collection Indexes for alternatives.

Author

       MongoDB, Inc

Errors

       Errors are propagated via the error parameter.

Parameters

collection: A mongoc_collection_t.

       • keys: A bson_t.

       • opt: A mongoc_index_opt_t.

       • error: An optional location for a bson_error_t or NULL.

Synopsis

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

Warning:

          Deprecated since version 1.8.0: See ManageCollectionIndexes for alternatives.

See Also