1MONGOC_INSERT_FLAGS_T(3) libmongoc MONGOC_INSERT_FLAGS_T(3)
2
3
4
6 mongoc_insert_flags_t - mongoc_insert_flags_t
7
8 Flags for insert operations
9
11 typedef enum {
12 MONGOC_INSERT_NONE = 0,
13 MONGOC_INSERT_CONTINUE_ON_ERROR = 1 << 0,
14 } mongoc_insert_flags_t;
15
16 #define MONGOC_INSERT_NO_VALIDATE (1U << 31)
17
19 These flags correspond to the MongoDB wire protocol. They may be bit‐
20 wise or'd together. They may modify how an insert happens on the Mon‐
21 goDB server.
22
24 ┌──────────────────────────┬────────────────────────────┐
25 │MONGOC_INSERT_NONE │ Specify no insert flags. │
26 ├──────────────────────────┼────────────────────────────┤
27 │MONGOC_INSERT_CON‐ │ Continue inserting docu‐ │
28 │TINUE_ON_ERROR │ ments from the insertion │
29 │ │ set even if one insert │
30 │ │ fails. │
31 ├──────────────────────────┼────────────────────────────┤
32 │MONGOC_INSERT_NO_VALIDATE │ Do not validate insertion │
33 │ │ documents before perform‐ │
34 │ │ ing an insert. Validation │
35 │ │ can be expensive, so this │
36 │ │ can save some time if you │
37 │ │ know your documents are │
38 │ │ already valid. │
39 └──────────────────────────┴────────────────────────────┘
40
42 MongoDB, Inc
43
45 2017-present, MongoDB, Inc
46
47
48
49
501.17.4 Feb 04, 2021 MONGOC_INSERT_FLAGS_T(3)