Ubuntu Manpages

  • client: A mongoc_client_t.
  • db: The database name.
  • prefix: Optional prefix for gridfs collection names or NULL.
  • error: An optional location for a bson_error_t or NULL.

Errors are propagated via the error parameter.

On success, returns a mongoc_gridfs_t you must free with mongoc_gridfs_destroy(). Returns NULL upon failure and sets error.

MongoDB, Inc

2017-present, MongoDB, Inc