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