1MONGOC_COLLECTION_ENSURE_INDEX(3)  libmongoc MONGOC_COLLECTION_ENSURE_INDEX(3)
2
3
4

NAME

6       mongoc_collection_ensure_index - mongoc_collection_ensure_index()
7
8       WARNING:
9          Deprecated  since  version  1.8.0:  This  function is deprecated and
10          should not be used in new code. See Manage Collection Indexes.
11
12

SYNOPSIS

14          bool
15          mongoc_collection_ensure_index (mongoc_collection_t *collection,
16                                          const bson_t *keys,
17                                          const mongoc_index_opt_t *opt,
18                                          bson_error_t *error)
19             BSON_GNUC_DEPRECATED;
20

PARAMETERS

22collection: A mongoc_collection_t.
23
24keys: A bson_t.
25
26opt: A mongoc_index_opt_t.
27
28error: An optional location for a bson_error_t or NULL.
29

ERRORS

31       Errors are propagated via the error parameter.
32

AUTHOR

34       MongoDB, Inc
35
37       2017-present, MongoDB, Inc
38
39
40
41
421.24.3                           Aug 17, 2023MONGOC_COLLECTION_ENSURE_INDEX(3)
Impressum