MONGOC_CLIENT...E_OPTS_SET_MIN(3)
π MONGOC_CLIENT...E_OPTS_SET_MIN(3) π
okay so bestie, welcome to the libmongoc corner of the universe β this one's a lil function that sets the minimum value on a range-encryption options struct, and honestly? it's giving "small but mighty" β¨
πΈ SYNOPSIS πΈ
void
mongoc_client_encryption_encrypt_range_opts_set_min (
mongoc_client_encryption_encrypt_range_opts_t *range_opts,
const bson_value_t *min);
New in version 1.24.0. π (yes, she's got a birthday, note it down)
π¦ DESCRIPTION π¦
so like, this is the function that sets the minimum value of the range for explicit encryption. that's the whole vibe π«Ά
lowkey important: it only applies when the algorithm set by mongoc_client_encryption_encrypt_opts_set_algorithm() is "Range". and listen β it is literally an error to set minimum when the algorithm is not "Range". not a vibe, not a warning, an error π
also, the minimum must match the value set in the encryptedFields of the destination collection. setting a different value? that's an error too. no cap, the math has to math π₯
and for double and decimal128 fields, min/max/precision must all be set, or all be unset. it's all of them or none of them, bestie β no in-between situationship energy π
π PARAMETERS π
range_optsβ amongoc_client_encryption_encrypt_range_opts_tπ (the lil options struct you're decorating)minβ the minimumbsonvalue of the range. that's the whole point π
β SEE ALSO β
like, go read these too, iykyk π
mongoc_client_encryption_encrypt_range_opts_set_precision()mongoc_client_encryption_encrypt_range_opts_set_max()mongoc_client_encryption_encrypt_range_opts_t
π§ AUTHOR π§
MongoDB, Inc β iconic, we stan π«Ά
π COPYRIGHT π
2009-present, MongoDB, Inc. π
okay that's the whole page, periodt π version 2.5.6, dated Oct 09, 2026 β go forth and set those minimums correctly, bestie πΈπ¦β¨
π¦ 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