MONGOC_URI_SET_OPTION_AS_INT32(3)

πŸ’– MONGOC_URI_SET_OPTION_AS_INT32 πŸ’–

okay bestie, welcome to the libmongoc page for mongoc_uri_set_option_as_int32() β€” it's giving β€œset one URI option after parsing” energy, and honestly? iconic. πŸŽ€

✨ SYNOPSIS ✨

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

πŸŽ€ PARAMETERS πŸŽ€

  • uri β€” a mongoc_uri_t. the main character URI itself πŸ’…
  • option β€” the name of an option, case insensitive. yes, it does not care about your capitalization choices 🫢
  • value β€” the new value. the fresh little number you're setting 🌸

πŸ¦‹ DESCRIPTION πŸ¦‹

so this function sets an individual URI option, after the URI has already been parsed from a string. lowkey surgical, highkey useful ✨

Only known options of type integer can be set. Some integer options, such as minHeartbeatFrequencyMS, have additional constraints β€” so like, not every integer option is just gonna let you do whatever, bestie. read the room 😭

It updates the option in-place if it's already set. otherwise, it appends it to the URI's bson_t of options. no cap, that's the whole vibe 🌈

πŸ’… RETURNS πŸ’…

True if successfully set β€” meaning the named option is a known option of type int32 or int64. slay βœ…

🌸 SEE ALSO 🌸

  • mongoc_uri_set_option_as_int64() β€” the sibling function, same family, bigger number energy πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc 🫢

2009-present, MongoDB, Inc. πŸ’œ


this little gem is from libmongoc 2.5.6, dated Oct 09, 2026. bye bestie, go set some options πŸ’…βœ¨πŸ“

πŸ“¦ where this page comes from