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β amongoc_transaction_opt_t. that's the transaction options struct you're editing, main character energy.read_prefsβ amongoc_read_prefs_t. this is the read preference that gets copied in.
π AUTHOR π
MongoDB, Inc. periodt.
π COPYRIGHT π
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
- 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