MONGOC_SESSION...ANSACTION_OPTS(3)

πŸ’… MONGOC_SESSION...ANSACTION_OPTS(3) πŸŽ€

okay so bestie, welcome to libmongoc β€” yes that's the manual we're in, and yes this page is a whole little moment πŸ’–


✨ SYNOPSIS ✨

const mongoc_transaction_opt_t *
mongoc_session_opts_get_default_transaction_opts (const mongoc_session_opt_t *opts);

So like, this one gives you the default options for transactions that get started with this session. That's it, that's the vibe πŸ¦‹

And go peek at mongoc_session_opts_set_default_transaction_opts() if you wanna be the one setting them instead of just getting them, iykyk πŸ’…


🌸 PARAMETERS 🌸

  • opts β€” a mongoc_session_opt_t. literally just hand it your session opts and you're golden 🫢

⭐ RETURNS ⭐

A mongoc_transaction_opt_t πŸ’– β€” and hear me out, because this part is important: it's valid only for the lifetime of opts 😭 like please do not go holding onto it after opts dips, that's giving undefined behaviour and we don't do that here πŸ™ˆ


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” iconic, no cap 🧚


2009-present, MongoDB, Inc. β€” periodt πŸ’œ


and that's the whole page, bestie!! mwah πŸ“

sign-off szn ✨ this lil masterpiece is from libmongoc 2.5.6, dated Oct 09, and no I will not be elaborating further on that date πŸ’€πŸ’–

πŸ“¦ where this page comes from