MONGOC_TRANSACTION_OPTS_NEW(3)

okay so bestie πŸ’– welcome to the libmongoc manual β€” today's main character is mongoc_transaction_opts_new, and honestly? she's a little baby function with a big job. no cap.

✨ SYNOPSIS ✨

mongoc_transaction_opt_t *
mongoc_transaction_opts_new (void);

so what does she do? she makes you a mongoc_transaction_opt_t β€” that's the little config object you use to set up multi-document transactions. think of it as the outfit-planning clipboard before the actual transaction goes out. iconic behavior honestly πŸŽ€

🫢 RETURNS 🫢

she hands you back a brand-new mongoc_transaction_opt_t, and bestie listen to me β€” you must free it with mongoc_transaction_opts_destroy(). no leaving her on read, no leaks, we don't do that here πŸ’…

fr fr, that object is yours now. clean up after yourself or the memory goblins will come 😭

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the ones who brought you here. periodt.

2009-present, MongoDB, Inc.


and that's the whole page, you ate it up πŸ’œ this lil beauty is from libmongoc version 2.5.6, dated Oct 09, 2026 β€” go forth and configure those transactions, iykyk πŸ¦‹βœ¨

πŸ“¦ where this page comes from