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β amongoc_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 π«Ά
π COPYRIGHT π
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
- 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