MONGOC_CLIENT_...X_QUERY_LENGTH(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

πŸŽ€ MONGOC_CLIENT_...X_QUERY_LENGTH(3) πŸŽ€

okay bestie, so this page lives in the libmongoc manual, section 3 (yes the title is lowkey truncated, the real function name is a whole paragraph long, we move πŸ’…).


✨ SYNOPSIS ✨

void
mongoc_client_encryption_encrypt_text_prefix_opts_set_str_max_query_length(
   mongoc_client_encryption_encrypt_text_prefix_opts_t *opts,
   int32_t str_max_query_length);

Added in version 2.2.0.

This one sets the maximum query length for prefix text search encryption options. Short king behavior: it just sets a number, no drama.

🚨 okay this is the important part, do NOT skip it: 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 released as Generally Available (GA). And the GA version of these features may not be backwards compatible with the preview version. so like… do not ship this to prod, i am begging πŸ™ˆ

πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” a mongoc_client_encryption_encrypt_text_prefix_opts_t. the lil options struct you're decorating ✨
  • str_max_query_length β€” the maximum query length for prefix search. must be greater than zero fr fr, zero and negatives are not the vibe.

πŸ¦‹ See also πŸ¦‹

  • mongoc_client_encryption_encrypt_text_prefix_opts_new()
  • mongoc_client_encryption_encrypt_text_opts_set_prefix()

πŸ’– Author πŸ’–

MongoDB, Inc

2009-present, MongoDB, Inc.


and that's the whole page, bestie 🫢 this was manual libmongoc, version 2.2.2, dated Feb 13, 2025 β€” slay, no cap, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from