MONGOC_TRANSACTION_OPTS_CLONE(3)

πŸ’… MONGOC_TRANSACTION_OPTS_CLONE(3) πŸ’…

okay so bestie, welcome to the libmongoc girlies club β€” this is the page for mongoc_transaction_opts_clone, and honestly? it's giving "small but mighty." πŸŽ€


✨ SYNOPSIS ✨

mongoc_transaction_opt_t *
mongoc_transaction_opts_clone (const mongoc_transaction_opt_t *opts);

Create a copy of a transaction options struct. literally that's it. it clones. she duplicates. iconic behavior only. πŸ’–


🌸 PARAMETERS 🌸

  • opts β€” A mongoc_transaction_opt_t. that's the one you're copying, bestie, hand her over 🫢

πŸ¦‹ RETURNS πŸ¦‹

A new mongoc_transaction_opt_t that must be freed with mongoc_transaction_opts_destroy().

🚨 okay this part is NOT a vibe to skip: the shiny new struct you get back is yours to clean up. call mongoc_transaction_opts_destroy() on it when you're done or you're lowkey leaking. no cap. 😭

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


<nice>βœ¨πŸ’œβœ¨</nice>

and that's the whole page, bestie β€” short, sweet, ate and left absolutely no crumbs πŸ“βœ¨

<nice>signing off from libmongoc version 2.5.6, dated Oct 09, 2026 β€” mwah πŸ’‹πŸ’…</nice>

πŸ“¦ where this page comes from