MONGOC_AUTO_ENCRYPTION_OPTS_NEW(3)

πŸ’… MONGOC_AUTO_ENCRYPTION_OPTS_NEW(3) πŸ’…

okay bestie, this is the libmongoc manual page for MONGOC_AUTO_ENCRYPTION_OPTS_NEW(3) β€” and it's giving β€œtiny constructor, big main-character energy” ✨. We're making a brand-new options struct, so let's get into it 🫢.

✨ SYNOPSIS ✨

mongoc_auto_encryption_opts_t *
mongoc_auto_encryption_opts_new (void);

Create a new mongoc_auto_encryption_opts_t. That's literally the whole function, no cap πŸ’–.

Caller must set the required options:

  • mongoc_auto_encryption_opts_set_keyvault_namespace() β€” required, bestie; you gotta call it πŸ‘‘
  • mongoc_auto_encryption_opts_set_kms_providers() β€” also required, periodt πŸ”₯

Caller may optionally set the following:

  • mongoc_auto_encryption_opts_set_keyvault_client() β€” optional πŸŽ€
  • mongoc_auto_encryption_opts_set_schema_map() β€” optional 🌸
  • mongoc_auto_encryption_opts_set_bypass_auto_encryption() β€” optional πŸ¦‹
  • mongoc_auto_encryption_opts_set_extra() β€” optional πŸ’œ

This options struct is used to enable auto encryption with mongoc_client_enable_auto_encryption(). iykyk 😌

🎁 RETURNS 🎁

A new mongoc_auto_encryption_opts_t, which must be destroyed with mongoc_auto_encryption_opts_destroy(). Don't ghost the destroy call, fr fr 😭

πŸ‘€ SEE ALSO πŸ‘€

  • mongoc_auto_encryption_opts_destroy()
  • mongoc_client_enable_auto_encryption()
  • In-Use Encryption

πŸ’– AUTHOR πŸ’–

MongoDB, Inc

2009-present, MongoDB, Inc.


okay bye bestie β€” this lil page is from libmongoc 2.5.6, dated Oct 09, 202, and that's the footer sign-off, periodt πŸ’…βœ¨

πŸ“¦ where this page comes from