MONGOC_CLIENT_..._TEXT_OPTS_NEW(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

✨ MONGOC_CLIENT_..._TEXT_OPTS_NEW ✨

okay bestie, welcome to the libmongoc manual, section 3 πŸ’… this one is all about the little constructor that spins up your encrypt-text options for client-side encryption. pull up a chair πŸͺ‘


🌸 SYNOPSIS 🌸

mongoc_client_encryption_encrypt_text_opts_t *
mongoc_client_encryption_encrypt_text_opts_new(void);

that's it. that's the whole thing. no args, no drama, just vibes ✨

Added in version 2.2.0.

⚠️ BESTIE. HEAR ME OUT. 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 β€” plot twist β€” the GA version of these features may not be backwards compatible with the preview version. so like… lowkey do not ship this to prod, iykyk 😭

πŸ’– RETURNS πŸ’–

a brand new mongoc_client_encryption_encrypt_text_opts_t that must be freed with mongoc_client_encryption_encrypt_text_opts_destroy() 🫢

like, genuinely must. it's giving "you break it, you bought it" energy. free your memory, queen πŸ‘‘

See also:

  • mongoc_client_encryption_encrypt_text_opts_destroy()
  • mongoc_client_encryption_encrypt_text_opts_set_prefix()
  • mongoc_client_encryption_encrypt_text_opts_set_suffix()
  • mongoc_client_encryption_encrypt_text_opts_set_substring()

these are your besties fr fr β€” go read them next πŸ¦‹


🫢 AUTHOR

MongoDB, Inc


2009-present, MongoDB, Inc.


and that's the tea β˜• this was libmongoc version 2.2.2, dated Feb 13, 2025 β€” thanks for reading, ily, go free your pointers πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from