MONGOC_URI_OPTION_IS_INT32(3)

πŸ’… MONGOC_URI_OPTION_IS_INT32(3)

okay so bestie, welcome to the libmongoc docs ✨ this one's a tiny little function from the libmongoc manual and it's literally so simple you're gonna eat it up πŸ“


✨ SYNOPSIS ✨

bool
mongoc_uri_option_is_int32 (const char *option);

that's it. that's the whole vibe check πŸ‘‘


πŸŽ€ PARAMETERS πŸŽ€

  • option β€” the name of an option, and ngl it's case insensitive so don't stress about your caps lock era πŸ™ˆ

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea β˜• this function returns true if option is a known MongoDB URI option of integer type. that's the whole assignment, no cap πŸ’―

like, for example: "zlibCompressionLevel=5" is a valid integer MongoDB URI option, so mongoc_uri_option_is_int32 ("zlibCompressionLevel") is true. iconic behaviour honestly 🌟

and also β€” she's generous β€” this will also return true for all 64-bit integer options too. yes bestie, all of them. equal rights for int64 options fr fr 🫢

heads up: it's checking whether the option name is a known int32-typed option, not whether some random string is a number. don't get it twisted πŸ’€

🌸 SEE ALSO 🌸

  • mongoc_uri_option_is_int64() β€” go give her a read too, she's right there πŸ’–

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” yeah, the MongoDB girlies wrote this one 🌈


2009-present, MongoDB, Inc. β€” protected and thriving, periodt πŸ’…


aaaand that's a wrap, bestie πŸŽ€ this page was serving version 2.5.6, dated Oct 09, 2026, and yeah she's still out here being MONGOC_URI_OPTION_IS_INT32(3) in the libmongoc manual πŸ’–βœ¨ go forth and check those int32 options, i'm obsessed with you πŸ«ΆπŸ¦‹

πŸ“¦ where this page comes from