1MONGOC_COLLECTION_CREATE_INDEX(3) libmongoc MONGOC_COLLECTION_CREATE_INDEX(3)
2
3
4
6 mongoc_collection_create_index - mongoc_collection_create_index()
7
9 bool
10 mongoc_collection_create_index (mongoc_collection_t *collection,
11 const bson_t *keys,
12 const mongoc_index_opt_t *opt,
13 bson_error_t *error);
14
16 This function is deprecated and should not be used in new code. See
17 create-indexes.
18
20 • collection: A mongoc_collection_t.
21
22 • keys: A bson_t.
23
24 • opt: A mongoc_index_opt_t.
25
26 • error: An optional location for a bson_error_t or NULL.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.20.0 Nov 18, 2021MONGOC_COLLECTION_CREATE_INDEX(3)