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β Amongoc_bulk_operation_t. This is the bulk operation bestie, the main character.documentβ Abson_t. The one document you're queuing up, literally.errorβ An optional location for abson_error_t, orNULL. 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 desiredbson_validate_flags_t. Set tofalseto 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
πΈ COPYRIGHT πΈ
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
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms