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 β€” a mongoc_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 πŸ‘‘

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