1MONGOC_INSERT_FLAGS_T(3)           libmongoc          MONGOC_INSERT_FLAGS_T(3)
2
3
4
5Flags for insert operations
6

SYNOPSIS

8          typedef enum {
9             MONGOC_INSERT_NONE = 0,
10             MONGOC_INSERT_CONTINUE_ON_ERROR = 1 << 0,
11          } mongoc_insert_flags_t;
12
13          #define MONGOC_INSERT_NO_VALIDATE (1U << 31)
14

DESCRIPTION

16       These  flags  correspond to the MongoDB wire protocol. They may be bit‐
17       wise or'd together. They may modify how an insert happens on  the  Mon‐
18       goDB server.
19

FLAG VALUES

21              ┌──────────────────────────┬────────────────────────────┐
22              │MONGOC_INSERT_NONE        │ Specify no insert flags.   │
23              ├──────────────────────────┼────────────────────────────┤
24              │MONGOC_INSERT_CON‐        │ Continue  inserting  docu‐ │
25              │TINUE_ON_ERROR            │ ments  from  the insertion │
26              │                          │ set  even  if  one  insert │
27              │                          │ fails.                     │
28              ├──────────────────────────┼────────────────────────────┤
29              │MONGOC_INSERT_NO_VALIDATE │ Do  not validate insertion │
30              │                          │ documents before  perform‐ │
31              │                          │ ing  an insert. Validation │
32              │                          │ can be expensive, so  this │
33              │                          │ can  save some time if you │
34              │                          │ know  your  documents  are │
35              │                          │ already valid.             │
36              └──────────────────────────┴────────────────────────────┘
37

AUTHOR

39       MongoDB, Inc
40
42       2017-present, MongoDB, Inc
43
44
45
46
471.25.1                           Nov 08, 2023         MONGOC_INSERT_FLAGS_T(3)
Impressum