MONGOC_URI_GET_READ_PREFS_T(3)

πŸ¦‹ mongoc_uri_get_read_prefs_t β€” a libmongoc moment πŸ¦‹

okay so bestie, this is libmongoc's mongoc_uri_get_read_prefs_t(3) and it's literally the chillest little getter you'll ever meet πŸ’… no cap.


✨ SYNOPSIS ✨

const mongoc_read_prefs_t *
mongoc_uri_get_read_prefs_t (const mongoc_uri_t *uri);

πŸŽ€ PARAMETERS πŸŽ€

  • uri β€” a mongoc_uri_t. that's it. that's the whole vibe check. 🫢

πŸ’– DESCRIPTION πŸ’–

so this one fetches a read preference that is owned by the URI instance πŸ‘‘ like, the URI already has it, you're just borrowing it for a sec β€” the way that it's not yours to keep, yk?

this read preference concern is configured based on URI parameters, so whatever you shoved into the URI is what you're getting back πŸ”₯


🌸 RETURNS 🌸

it returns a mongoc_read_prefs_t β€” but hear me out: if uri has read preferences, that thing is not to be modified or freed πŸ™ˆ like do not touch it, do not free it, hands off bestie. otherwise it's NULL πŸ’€

fr fr: don't modify it, don't free it. that's the whole rule. respect the ownership. 🧚

⭐ AUTHOR ⭐

MongoDB, Inc β€” icons only πŸ‘‘


2009-present, MongoDB, Inc.


and that's the tea πŸ“ this was version 2.5.6, dated Oct 09, 2026, brought to you by the libmongoc girlies β€” mwah, slay, see u in the next manpage πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from