MONGOC_URI_HAS_OPTION(3)
β¨ MONGOC_URI_HAS_OPTION β¨
okay bestie, so this is libmongoc's lil vibe-check function, and honestly it's giving "quick yes or no" energy π
SYNOPSIS
bool
mongoc_uri_has_option (const mongoc_uri_t *uri, const char *option);
Two args in, one bool out β she's simple, she's iconic, she's literally not doing too much π
PARAMETERS
uriβ amongoc_uri_t. like, the URI object you're snooping on π΅οΈββοΈ the main character of this whole operation.optionβ the name of an option. and here's the tea: it's case insensitive, so"SSL","ssl"and"SsL"are all the same friend, no need to fight about capitalisation β¨
DESCRIPTION
Returns true if the option was present in the initial MongoDB URI π
that's it. that's the whole function. no cap, no extra lore, no secret behaviour β she just looks at the URI as it was initially constructed and tells you whether that option was in there. slay π«Ά
quick vibe check: false means "nope, wasn't in the original URI" β don't go reading anything extra into it, bestie π
AUTHOR
MongoDB, Inc π
COPYRIGHT
2009-present, MongoDB, Inc. π§
and that's the whole page, bestie β you ate that π this little number is from libmongoc, version 2.5.6, dated Oct 09, 2026 πΈ go forth and check your options fr fr π¦
π¦ 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