MONGOC_TRANSAC...SET_READ_PREFS(3)

✨ SYNOPSIS ✨

okay so this is the libmongoc manual page, section 3, for mongoc_transaction_opts_set_read_prefs β€” and it's literally the function that sets your transaction's read preference. here's the whole call, bestie:

void
mongoc_transaction_opts_set_read_prefs (mongoc_transaction_opt_t *opts,
                                        const mongoc_read_prefs_t *read_prefs);

what it does: it configures the transaction's read preference. the argument gets copied into the struct, so after you call this function you can free it β€” yes, you can let it go πŸ’…βœ¨.

🫢 PARAMETERS 🫢

  • opts β€” a mongoc_transaction_opt_t. that's the transaction options struct you're editing, main character energy.
  • read_prefs β€” a mongoc_read_prefs_t. this is the read preference that gets copied in.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc. periodt.

2009-present, MongoDB, Inc. β€” yup, that's the copyright line, preserved exactly, no cap.


and that's the whole page, bestie 🫢 the footer says libmongoc 2.5.6, dated Oct 09, 2024. mwah πŸ’‹

πŸ“¦ where this page comes from