MONGOC_BULKWRITEOPTS_SET_EXTRA(3)
π MONGOC_BULKWRITEOPTS_SET_EXTRA(3) π
ok so bestie, welcome to libmongoc β the C driver for MongoDB β and this lil page is all about mongoc_bulkwriteopts_set_extra, a function with a long name and a very specific job π
β¨ SYNOPSIS β¨
void
mongoc_bulkwriteopts_set_extra (mongoc_bulkwriteopts_t *self, const bson_t *extra);
that's it. that's the whole signature. no return value, no drama, void and vibes π
πΈ DESCRIPTION πΈ
okay so here's what it does, fr fr: it appends all fields in extra to the outgoing bulkWrite command. every single field, straight onto the command, no cap π
it's intended to support future server options β like, the driver peeps built this little door in the wall so that when the server gets new shiny options later, you're not stuck. iykyk π¦
β οΈ but bestie listen β prefer othermongoc_bulkwriteopts_set_*helpers so you avoid unexpected option conflicts. this one is the wildcard slot; theset_*helpers are the curated ones. use the dedicated ones when they exist, ok? don't come for me if your options start beefing with each other π
π AUTHOR π
MongoDB, Inc β the icon, the legend, the whole organization π
β COPYRIGHT β
2009-present, MongoDB, Inc. β yes the copyright range is literally older than some of us and honestly, respect π
and that's the whole page, no filler, no fluff π«Ά stay slay, go write a bulk write, and remember: the set_* helpers are your besties, _set_extra is the plus-one you bring only when there's no better option πβ¨
π libmongoc version 2.5.6 Β· Oct 09, 2026 Β· Mongo gang forever π
π¦ 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