1MONGOC_COLLECTION_ENSURE_INDEX(3) libmongoc MONGOC_COLLECTION_ENSURE_INDEX(3)
2
3
4
6 Deprecated since version 1.8.0: This function is deprecated and
7 should not be used in new code. See Manage Collection Indexes.
8
9
11 bool
12 mongoc_collection_ensure_index (mongoc_collection_t *collection,
13 const bson_t *keys,
14 const mongoc_index_opt_t *opt,
15 bson_error_t *error)
16 BSON_GNUC_DEPRECATED;
17
19 • collection: A mongoc_collection_t.
20
21 • keys: A bson_t.
22
23 • opt: A mongoc_index_opt_t.
24
25 • error: An optional location for a bson_error_t or NULL.
26
28 Errors are propagated via the error parameter.
29
31 MongoDB, Inc
32
34 2017-present, MongoDB, Inc
35
36
37
38
391.25.1 Nov 08, 2023MONGOC_COLLECTION_ENSURE_INDEX(3)