mongoc_collection_create_index man page

mongoc_collection_create_index() — For more information, see mongoc_collection_create_index_with_opts(). This function is a thin wrapper, passing NULL in as mongoc_write_concern_t parameter. This function also creates a local bson_t to pass in as reply parameter, destroying it afterward.

Synopsis

bool
mongoc_collection_create_index (mongoc_collection_t      *collection,
                                const bson_t             *keys,
                                const mongoc_index_opt_t *opt,
                                bson_error_t             *error);

Parameters

collection
A mongoc_collection_t
keys
A bson_t
opt
A mongoc_index_opt_t.
error
An optional location for a bson_error_t or NULL

Description

For more information, see mongoc_collection_create_index_with_opts(3) NULL in as mongoc_write_concern_t parameter. This function also creates a local bson_t to pass in as reply parameter, destroying it afterward.

Colophon

This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.

Referenced By

mongoc_collection_ensure_index(3), mongoc_collection_keys_to_index_string(3).

2016‐11‐07 MongoDB C Driver