1MONGOC_COLLECTION_ENSURE_INDEX(3) libmongoc MONGOC_COLLECTION_ENSURE_INDEX(3)
2
3
4
6 mongoc_collection_ensure_index - mongoc_collection_ensure_index()
7
9 bool
10 mongoc_collection_ensure_index (mongoc_collection_t *collection,
11 const bson_t *keys,
12 const mongoc_index_opt_t *opt,
13 bson_error_t *error)
14 BSON_GNUC_DEPRECATED;
15
17 This function is deprecated and should not be used in new code. See
18 create-indexes.
19
21 • collection: A mongoc_collection_t.
22
23 • keys: A bson_t.
24
25 • opt: A mongoc_index_opt_t.
26
27 • error: An optional location for a bson_error_t or NULL.
28
30 Errors are propagated via the error parameter.
31
33 MongoDB, Inc
34
36 2017-present, MongoDB, Inc
37
38
39
40
411.17.6 Jun 03, 2021MONGOC_COLLECTION_ENSURE_INDEX(3)