MONGOC_CLIENT..._SET_TEXT_OPTS(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

πŸ’– MONGOC_CLIENT_ENCRYPTION_ENCRYPT_OPTS_SET_TEXT_OPTS πŸ’–

okay bestie, so this page is from the libmongoc manual, and it's all about one lil function: mongoc_client_encryption_encrypt_opts_set_text_opts(3). she's a setter, she's here to make your text-search encryption dreams come true, and she's been around since 2.2.0. let's get into it πŸ’…


✨ SYNOPSIS ✨

void
mongoc_client_encryption_encrypt_opts_set_text_opts(
   mongoc_client_encryption_encrypt_opts_t *opts,
   const mongoc_client_encryption_encrypt_text_opts_t *text_opts);

Added in version 2.2.0.


πŸ¦‹ DESCRIPTION πŸ¦‹

She sets the text search encryption options for explicit encryption. that's the whole job. no notes. 🫢

🚨 okay so hear me out, this next part matters A LOT: 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). The GA version of these features may not be backwards compatible with the preview version. so like… play with it, but don't put your whole life in it, fr fr. 😭

πŸ’… PARAMETERS πŸ’…

  • opts β€” a mongoc_client_encryption_encrypt_opts_t. she's the one getting the glow-up ✨
  • text_opts β€” a mongoc_client_encryption_encrypt_text_opts_t that's specifying the text search options. the inspo, the blueprint, the moment πŸŽ€

See also:

  • mongoc_client_encryption_encrypt_text_opts_t
  • mongoc_client_encryption_encrypt_text_opts_new()
  • mongoc_client_encryption_encrypt_text_opts_set_prefix()
  • mongoc_client_encryption_encrypt_text_opts_set_suffix()
  • mongoc_client_encryption_encrypt_text_opts_set_substring()

like go read those too, they're the rest of the friend group 🌸


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the icons themselves πŸ’œ


2009-present, MongoDB, Inc.


okay that's the whole vibe check, bestie. this was libmongoc version 2.2.2, dated Feb 13, 2026, and honestly? iconic. go encrypt something (carefully, preview edition πŸ™ˆ). mwah πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from