MONGOC_TRANSAC...GET_READ_PREFS(3)

πŸ¦‹ MONGOC_TRANSAC...GET_READ_PREFS(3) β€” a libmongoc moment πŸ¦‹

okay so bestie, welcome to the libmongoc page for MONGOC_TRANSAC...GET_READ_PREFS(3) β€” yes, the name is a whole keyboard smash, but the function itself is a tiny getter with main character energy. It pulls the read prefs out of transaction options and hands them back to you. Let’s get into it πŸ’…βœ¨


🌸 SYNOPSIS 🌸

const mongoc_read_prefs_t *
mongoc_transaction_opts_get_read_prefs (const mongoc_transaction_opt_t *opts);

Return the transaction options’ mongoc_read_prefs_t. See mongoc_transaction_opts_set_read_prefs() for the setter twin, iykyk 🫢

πŸ’– PARAMETERS πŸ’–

  • opts β€” a mongoc_transaction_opt_t. That’s the transaction options you’re getting the read prefs from, bestie.

✨ RETURNS ✨

A mongoc_read_prefs_t that is valid only for the lifetime of opts. Like, literally only while opts is alive β€” do not let this pointer outlive its parent, no cap πŸ˜­πŸ’€

🫢 AUTHOR 🫢

MongoDB, Inc. periodt.

2009-present, MongoDB, Inc.


that’s the whole vibe, bestie πŸ«ΆπŸ’– this page is from libmongoc version 2.5.6, dated Oct 09, 2024 β€” and the footer is packed tight enough that it runs straight into the manual name, so yes, it’s giving cramped layout πŸ˜­πŸ’…

πŸ“¦ where this page comes from