MONGOC_URI_SET_OPTION_AS_BOOL(3)

πŸ’– MONGOC_URI_SET_OPTION_AS_BOOL(3) πŸ’–

okay bestie, welcome to the MONGOC_URI_SET_OPTION_AS_BOOL(3) page β€” this is the libmongoc glow-up where you set one lil URI option to a bool after the URI has already been parsed from a string. no cap, it's giving "small but mighty". ✨


🌸 SYNOPSIS 🌸

bool
mongoc_uri_set_option_as_bool (const mongoc_uri_t *uri,
                               const char *option,
                               bool value);

πŸŽ€ PARAMETERS πŸŽ€

  • uri β€” a mongoc_uri_t. your main character. πŸ’…
  • option β€” the name of an option, case insensitive. say it however you want, she'll understand. 😌
  • value β€” the new value. the bool of the hour. πŸ¦‹

πŸ’œ DESCRIPTION πŸ’œ

so like, this function sets an individual URI option after the URI has been parsed from a string. timing is everything, bestie. ⏰

only known options of type bool can be set β€” that's the vibe check, and not every option passes it. 🫢

if the option is already set, it updates it in-place. if it's not, it appends it to the URI's bson_t of options. either way, she's getting in there. πŸ’«


🌈 RETURNS 🌈

True if successfully set β€” meaning the named option is a known option of type bool. that's the whole win condition. slay. πŸ‘‘


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


and that's the page, bestie β€” brought to you by libmongoc, version 2.5.6, dated Oct 09, 2026, and yes the whole manual name is MONGOC_URI_SET_OPTION_AS_BOOL(3). periodt. πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from