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

SYNOPSIS

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

DEPRECATED

17       This  function  is  deprecated  and should not be used in new code. See
18       create-indexes.
19

PARAMETERS

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

ERRORS

30       Errors are propagated via the error parameter.
31

AUTHOR

33       MongoDB, Inc
34
36       2017-present, MongoDB, Inc
37
38
39
40
411.16.2                           Feb 25, 2020MONGOC_COLLECTION_ENSURE_INDEX(3)
Impressum