1MONGOC_BULK_OPERATION_INSERT_WITH_OPlTiSbM(mO3oN)nGgOoCc_BULK_OPERATION_INSERT_WITH_OPTS(3)
2
3
4
6 bool
7 mongoc_bulk_operation_insert_with_opts (mongoc_bulk_operation_t *bulk,
8 const bson_t *document,
9 const bson_t *opts,
10 bson_error_t *error); /* OUT */
11
12 Queue an insert of a single document into a bulk operation. The insert
13 is not performed until mongoc_bulk_operation_execute() is called.
14
16 • bulk: A mongoc_bulk_operation_t.
17
18 • document: A bson_t.
19
20 • error: An optional location for a bson_error_t or NULL.
21
22 opts may be NULL or a BSON document with additional command options:
23
24 • validate: Construct a bitwise-or of all desired
25 bson_validate_flags_t. Set to false to skip client-side validation of
26 the provided BSON documents.
27
29 Operation errors are propagated via mongoc_bulk_operation_execute(),
30 while argument validation errors are reported by the error argument.
31
33 Returns true on success, and false if passed invalid arguments.
34
36 MongoDB, Inc
37
39 2017-present, MongoDB, Inc
40
41
42
43
441.25.1 Nov 0M8O,NG2O0C2_3BULK_OPERATION_INSERT_WITH_OPTS(3)