MONGOC_CLIENT_ENCRYPTION_NEW(3)

✨ MONGOC_CLIENT_ENCRYPTION_NEW ✨

okay bestie, welcome to the libmongoc glow-up corner 🫢 this one lives in section 3 of the manual (the library-call section, iykyk), and honestly? it's giving "just make me one of these please" energy πŸ’…

🌸 SYNOPSIS 🌸

mongoc_client_encryption_t *
mongoc_client_encryption_new (mongoc_client_encryption_opts_t *opts,
                              bson_error_t *error);

literally what it says on the tin: create a new mongoc_client_encryption_t πŸ’– brand new, fresh out of the box, main character energy.


πŸŽ€ PARAMETERS πŸŽ€

  • opts β€” a mongoc_client_encryption_opts_t. that's the options object, she's got the settings, the vibe check happens here ✨
  • error β€” a bson_error_t. this is where the tea gets spilled if something goes wrong 😭

πŸ¦‹ RETURNS πŸ¦‹

a new mongoc_client_encryption_t that must be freed with mongoc_client_encryption_destroy() if it worked β€” no cap, don't just leave her hanging, that's so not slay πŸ’€

and if it didn't work? returns NULL and sets error instead. so check your error, bestie, always 🌸

πŸ’œ SEE ALSO:

  • mongoc_client_encryption_t
  • mongoc_client_encryption_opts_t

(go read those next, they're iconic, i promise πŸ‘‘)


🌈 AUTHOR 🌈

MongoDB, Inc β€” the whole squad 🫢

2009-present, MongoDB, Inc. β€” like, decades of service, periodt πŸ’…


and that's the whole page diva πŸŽ€ this was libmongoc version 2.5.6, dated Oct 09, 2026 β€” screenshot it, cite it, live by it πŸ¦‹βœ¨

πŸ“¦ where this page comes from