MONGOC_URI_SET_READ_PREFS_T(3)
π MONGOC_URI_SET_READ_PREFS_T β¨
okay so this is one of those lil libmongoc functions, bestie β like the mongoc_uri_set_read_prefs_t one? yeah. she's small. she's iconic. she does exactly one (1) thing and she does it flawlessly. π«Ά
πΈ SYNOPSIS πΈ
void
mongoc_uri_set_read_prefs_t (mongoc_uri_t *uri,
const mongoc_read_prefs_t *prefs);
literally the whole function signature, verbatim, no notes. π
π PARAMETERS π
uriβ amongoc_uri_t. that's the URI, the vibe holder, the main character of this whole situation. πrcβ amongoc_read_prefs_t. yes, the doc saysrc, notprefsβ that's their naming, not mine, and I am not touching it. fr fr. π
π¦ DESCRIPTION π¦
So here's the tea: this function sets a MongoDB URI's read preferences. β¨
But β and this is the part people miss β it does that after the URI has already been parsed from a string. like, the URI's been through the whole "string β mongoc_uri_t" glow-up already, and now you're coming back in with your read prefs and being like "hey bestie, one more thing." π
β AUTHOR β
MongoDB, Inc β the whole entire company. ππ
π COPYRIGHT π
2009-present, MongoDB, Inc. β no cap, that's the real line, don't come for me. π
and that's the page, bestie! π§ββοΈ this little gem comes from libmongoc version 2.5.6, dated Oct 09, 2026 β so go forth and set those read prefs, 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