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β amongoc_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 π§
π COPYRIGHT π
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
- 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