mongoc_database_create_collection (3) Linux Manual Page
mongoc_database_create_collection() – None
Synopsis
mongoc_collection_t * mongoc_database_create_collection (mongoc_database_t *database, const char *name, const bson_t *options, bson_error_t *error);
Parameters
database- A
mongoc_database_t\&.
name- The name of the new collection.
options- An optional
bson_tfor options to thecreateDatabasecommand.
error- A location for a
bson_error_torNULL\&.
Errors
Errors are propagated via the error parameter.
Returns
This function returns a newly allocated mongoc_collection_t upon success, NULL upon failure and error is set.
Colophon
This page is part of MongoDB C Driver. Please report any bugs at https://jira.mongodb.org/browse/CDRIVER.
