mongoc_gridfs_file_set_id(3)

mongoc_gridfs_file_set_id3

Usage

bool
mongoc_gridfs_file_set_id (mongoc_gridfs_file_t *file,
                           const bson_value_t *id,
                           bson_error_t error);

Parameters

•

file: A :symbol:` mongoc_gridfs_file_t <mongoc_gridfs_file_t>`.

•

id: A bson_value_t.

•

error: A bson_error_t.

Overview

Sets the id of file to any BSON type.

If an error occurred, false is returned.

Returns

Returns true on success. If any arguments are invalid, returns false and logs an error.

Releases

5 releases since Debian 9 (Stretch); the text changed 4 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13

Author

MongoDB, Inc

From libmongoc-doc 1.30.4-1+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.