MONGOC_CLIENT_...N_QUERY_LENGTH(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

✨ MONGOC_CLIENT_...N_QUERY_LENGTH(3) ✨

okay bestie, gather round πŸ’– this one lives in the libmongoc manual, section 3, and it's the little setter that tells your prefix-search encryption options how short a query is allowed to be. Let's get into it 🫢


πŸ’… SYNOPSIS πŸ’…

          void
          mongoc_client_encryption_encrypt_text_prefix_opts_set_str_min_query_length(
             mongoc_client_encryption_encrypt_text_prefix_opts_t *opts,
             int32_t str_min_query_length);

Added in version 2.2.0. ✨

So basically this sets the minimum query length for prefix text search encryption options. That's the whole vibe πŸ’…

🚨 GIRL. LISTEN. 🚨 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're released as Generally Available (GA). And 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 yet, fr fr 😭

πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” a mongoc_client_encryption_encrypt_text_prefix_opts_t. That's your options struct, your main character πŸ‘‘
  • str_min_query_length β€” the minimum query length for prefix search. Must be greater than zero. No zeros, no negatives, periodt. πŸ™…β™€οΈ

πŸ” 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.


k bye bestie, that's the whole page πŸ’– 🌸 this was libmongoc version 2.2.2, dated Feb 13, 2024 β€” slay, go encrypt something (experimentally!) πŸ¦‹ ✨ πŸŽ€

πŸ“¦ where this page comes from