MONGOC_CLIENT_...X_QUERY_LENGTH(3)

πŸ“¦
version 2.5.6 Β· 2 versions
, in epel 10

πŸŽ€ 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 β€” a mongoc_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


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