MONGOC_INSERT_FLAGS_T(3)

πŸ’– MONGOC_INSERT_FLAGS_T πŸ’–

okay bestie, this is the libmongoc (3) page for Flags for insert operations β€” the little enum crew plus one define that tells an insert how to behave. πŸ‘‘


✨ SYNOPSIS ✨

          typedef enum {
             MONGOC_INSERT_NONE = 0,
             MONGOC_INSERT_CONTINUE_ON_ERROR = 1 << 0,
          } mongoc_insert_flags_t;

          #define MONGOC_INSERT_NO_VALIDATE (1U << 31)

πŸ¦‹ DESCRIPTION πŸ¦‹

These flags correspond to the MongoDB wire protocol. No cap. πŸ’…

They may be bitwise or'd together β€” yes, stack 'em with | like the icon you are. They may modify how an insert happens on the MongoDB server. πŸ”₯

πŸŽ€ FLAG VALUES πŸŽ€

  • MONGOC_INSERT_NONE β€” Specify no insert flags. The "I'm just vibing, no extras" option. = 0.
  • MONGOC_INSERT_CONTINUE_ON_ERROR β€” Continue inserting documents from the insertion set even if one insert fails. Like, one bad apple does not have to end the whole group chat. = 1 << 0.
  • MONGOC_INSERT_NO_VALIDATE β€” Do not validate insertion documents before performing an insert. Validation can be expensive, so this can save some time if you know your documents are already valid. It's the #define one: (1U << 31). Use with knowledge, bestie. πŸ’–

🌸 AUTHOR 🌸

MongoDB, Inc

2009-present, MongoDB, Inc.

Signing off with the official footer energy: this is libmongoc version 2.5.6, dated Oct 09, 2026, and the page tag is MONGOC_INSERT_FLAGS_T(3). mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from