mongoc_gridfs_bucket_new
mongoc_gridfs_bucket_new()
- Provided by: libmongoc-doc (Version: 1.16.1-1build2)
- Source: mongo-c-driver
- Report a bug
mongoc_gridfs_bucket_new()
mongoc_gridfs_bucket_t *
mongoc_gridfs_bucket_new (mongoc_database_t *db,
const bson_t *opts,
const mongoc_read_prefs_t *read_prefs,
bson_error_t* error);
opts may be NULL or a BSON document with additional command options:
Creates a new mongoc_gridfs_bucket_t. Use this handle to perform GridFS operations.
A newly allocated mongoc_gridfs_bucket_t that should be freed with mongoc_gridfs_bucket_destroy() or NULL on failure.
MongoDB, Inc
2017-present, MongoDB, Inc