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