MONGOC_BULK_OP...SERT_WITH_OPTS(3)

πŸ’… MONGOC_BULK_OP...SERT_WITH_OPTS(3) β€” a libmongoc bestie moment ✨

okay so bestie, welcome to the libmongoc page for mongoc_bulk_operation_insert_with_opts. It's giving β€œqueue up one document for a bulk insert” energy, and no cap: the insert is not performed until mongoc_bulk_operation_execute() is called. Periodt. πŸ’…

✨ SYNOPSIS ✨

          bool
          mongoc_bulk_operation_insert_with_opts (mongoc_bulk_operation_t *bulk,
                                                  const bson_t *document,
                                                  const bson_t *opts,
                                                  bson_error_t *error); /* OUT */

Queue an insert of a single document into a bulk operation. The insert is not performed until mongoc_bulk_operation_execute() is called.

πŸŽ€ PARAMETERS πŸŽ€

  • bulk β€” A mongoc_bulk_operation_t. This is the bulk operation bestie, the main character.
  • document β€” A bson_t. The one document you're queuing up, literally.
  • error β€” An optional location for a bson_error_t, or NULL. Lowkey your spot to catch the argument-validation drama.

opts may be NULL or a BSON document with additional command options:

  • validate β€” Construct a bitwise-or of all desired bson_validate_flags_t. Set to false to skip client-side validation of the provided BSON documents.

πŸ’€ ERRORS πŸ’€

Operation errors are propagated via mongoc_bulk_operation_execute(), while argument validation errors are reported by the error argument.

πŸ”₯ RETURNS πŸ”₯

Returns true on success, and false if passed invalid arguments.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc

2009-present, MongoDB, Inc.


okay that's the whole page, bestie πŸ’– β€” source/version 2.5.6, footer date Oct 09, 202 (yes, exactly like that in the footer 😭), and it ate. 🫢✨

πŸ“¦ where this page comes from