|
SYNOPSISmongoc_collection_t * mongoc_database_create_collection (mongoc_database_t *database, PARAMETERS
DESCRIPTIONThis function creates a mongoc_collection_t from the given mongoc_database_t. If no write concern is provided in opts, the database's write concern is used. The encryptedFields document in opts may be used to create a collection used for Queryable Encryption. For a list of all options, see the MongoDB Manual entry on the create command. ERRORSErrors are propagated via the error parameter. RETURNSThis function returns a newly allocated mongoc_collection_t upon success, NULL upon failure and error is set. AUTHORMongoDB, Inc COPYRIGHT2009-present, MongoDB, Inc.
|