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 π
π COPYRIGHT π
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
- 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