MONGOC_CLIENT_...X_QUERY_LENGTH(3)
π MONGOC_CLIENT_...X_QUERY_LENGTH(3) π
okay so this one lives in the libmongoc manual, bestie, and it's a tiny little setter β like, one job, does it well, we love a focused queen π
β¨ SYNOPSIS β¨
void
mongoc_client_encryption_encrypt_string_prefix_opts_set_str_max_query_length(
mongoc_client_encryption_encrypt_string_prefix_opts_t *opts,
int32_t str_max_query_length);
π«Ά Changed in version 2.4.0: this got renamed β it used to come from the text API, which is now deprecated. so if you're out here reading old docs, that's why the name changed, iykyk π
πΈ DESCRIPTION πΈ
so this function sets the maximum query length for prefix string search encryption options. that's it. that's the whole vibe. it takes your opts struct, takes a number, and that number becomes the max query length for prefix search. no cap, extremely straightforward. β¨
π PARAMETERS π
optsβ amongoc_client_encryption_encrypt_string_prefix_opts_t. like, the options object you're poking at. πstr_max_query_lengthβ the maximum query length for prefix search. must be greater than zero π β fr fr, zero and negatives are not it, do not pass those.
π heads up: it has to be greater than zero. that's a hard requirement, not a suggestion.
π¦ SEE ALSO π¦
siblings!! go read these too, they're literally the rest of the family:
mongoc_client_encryption_encrypt_string_prefix_opts_new()mongoc_client_encryption_encrypt_string_opts_set_prefix()
π AUTHOR π
MongoDB, Inc
β COPYRIGHT β
2009-present, MongoDB, Inc.
and that's the whole page, bestie, you ate that reading ππ β this was version 2.5.6, dated Oct 09, 202β¦ (the source page cut the year off mid-date, not me π), brought to you by the fine folks at libmongoc. go forth and set your max query lengths responsibly π§ββοΈβ¨
π¦ 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