MONGOC_TRANSA..._WRITE_CONCERN(3)

✨ MONGOC_TRANSA..._WRITE_CONCERN ✨

okay bestie, welcome to libmongoc β€” yes that's the manual we're in, and yes this page is gonna be quick but it's lowkey important so pay attention πŸ’…


🌸 SYNOPSIS 🌸

void
mongoc_transaction_opts_set_write_concern (mongoc_transaction_opt_t *opts,
                                           const mongoc_write_concern_t *write_concern);

So here's the tea β˜• β€” this little function configures the transaction's write concern. That's it. That's the whole vibe.

And here's the part that makes me feral: the argument is copied into the struct, so you can go ahead and free it right after you call this function. no cap, she takes her own copy, she's independent, main character energy 🫢✨ not me being obsessed with a function that doesn't steal your pointers 😭


πŸ¦‹ PARAMETERS πŸ¦‹

  • opts β€” a mongoc_transaction_opt_t. the transaction options struct you're poking at πŸ’–
  • write_concern β€” a mongoc_write_concern_t. the write concern you want her to hold onto (and remember, she copies it, so it's yours to free after) πŸŽ€

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the icons themselves 🌈⭐


2009-present, MongoDB, Inc. β€” all theirs, bestie, we're just reading the docs πŸ™ˆ


okay that's the whole page, you ate that πŸ“ go forth and configure your transactions with confidence, iykyk πŸ’…

libmongoc 2.5.6 Β· Oct 09, 2026 β€” mwah, see you in the next manpage bestie πŸ§šβ€β™€οΈπŸ’–

πŸ“¦ where this page comes from