MONGOC_CLIENT...STR_MAX_LENGTH(3)
π MONGOC_CLIENT...STR_MAX_LENGTH(3) π
okay bestie, welcome to libmongoc β yes that's the manual name, and yes we're gonna talk about the function with the longest name in the entire friend group: mongoc_client_encryption_encrypt_text_substring_opts_set_str_max_length. Say it with me. Slay. π
β¨ SYNOPSIS β¨
void
mongoc_client_encryption_encrypt_text_substring_opts_set_str_max_length(
mongoc_client_encryption_encrypt_text_substring_opts_t *opts,
int32_t str_max_length);
Added in version 2.2.0. π¦
πΈ DESCRIPTION πΈ
So what does this icon actually do? It sets the maximum string length for substring text search encryption options. That's it. That's the whole vibe. You hand it some opts and a number, and it caps how long your strings can be for that substring search setup. Periodt. π
π¨ okay important, do not scroll past this π¨ The "TextPreview" algorithm is in preview and should be used for experimental workloads only. These features are unstable and their security is not guaranteed until they get released as Generally Available (GA). And here's the part that really gets you: the GA version of these features may not be backwards compatible with the preview version. So like, don't build your whole personality on it. π
π«Ά PARAMETERS π«Ά
optsβ amongoc_client_encryption_encrypt_text_substring_opts_t. The little options struct in question. πstr_max_lengthβ the maximum string length for substring search. Must be greater than zero. Not zero. Not negative. Greater than zero. I'm not being dramatic, that's literally the requirement. π
π See also:
mongoc_client_encryption_encrypt_text_substring_opts_new()mongoc_client_encryption_encrypt_text_opts_set_substring()
(go read those too, they're the besties of this function, iykyk π)
π Author
MongoDB, Inc β the main characters themselves.
β Copyright
2009-present, MongoDB, Inc.
and that's the whole page, bestie β¨ you understood it, you ate, no crumbs left. this was libmongoc version 2.2.2, dated Feb 13, 2026 β mwah, love u, go encrypt something responsibly π ππ
π¦ where this page comes from
- ubuntu resolute: libmongoc-doc 2.2.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms