MONGOC_CLIENT_...PT_TEXT_OPTS_T(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

πŸ’… mongoc_client_encryption_encrypt_text_opts_t πŸ’…

ok so bestie, welcome to the libmongoc manual, section 3 β€” this one's a whole struct and it's giving Queryable Encryption energy. sit down, hydrate, let's go πŸ“


✨ SYNOPSIS ✨

typedef struct _mongoc_client_encryption_encrypt_text_opts_t mongoc_client_encryption_encrypt_text_opts_t;

Added in version 2.2.0. yes she's new, yes she's cute, no she is not done cooking (more on that in a sec 😭).


πŸ“– what even is TextOpts

TextOpts specifies index options for a Queryable Encryption field supporting "textPreview" queries. Basically it's the lil' settings bag you hand over when you wanna set options for mongoc_client_encryption_encrypt() 🫢.

Some rules, no cap, and you cannot skip them:

  • Case sensitive and diacritic sensitive must be set.
  • If prefix or suffix are set, substring must not be set.
🚨 okay this part is important and I need you to actually read 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). The GA version of these features may not be backwards compatible with the preview version. So like… play with it, don't ship your whole vibe on it yet, bestie πŸ’€

πŸ‘€ See also

  • mongoc_client_encryption_encrypt()
  • mongoc_client_encryption_encrypt_opts_t

🫢 Author

MongoDB, Inc β€” they ate, fr fr πŸ‘‘

2009-present, MongoDB, Inc.


and that's the whole page, periodt ✨ thanks for reading the libmongoc mongoc_client_encryption_encrypt_text_opts_t(3) page, version 2.2.2, dated Feb 13, 2025 πŸŽ€ go encrypt something (responsibly, it's still preview) πŸ¦‹πŸ’–

πŸ“¦ where this page comes from