MONGOC_CLIENT_...TRING_OPTS_NEW(3)

πŸ“¦ version 2.2.2, in ubuntu resolute

✨ MONGOC_CLIENT_...TRING_OPTS_NEW ✨

okay bestie, welcome to the libmongoc section of the manual, and today's main character is mongoc_client_encryption_encrypt_text_substring_opts_new. yes the name is a whole paragraph, no we are not okay, but she's iconic and she's here. πŸ’…

this one is the lil constructor that hands you a shiny new options struct for text substring encryption. it's giving builder pattern energy. πŸŽ€


🌸 SYNOPSIS 🌸

mongoc_client_encryption_encrypt_text_substring_opts_t *
mongoc_client_encryption_encrypt_text_substring_opts_new(void);

Added in version 2.2.0. so she's not ancient, she's fresh. πŸ¦‹


πŸ’– RETURNS πŸ’–

she gives you back a brand new mongoc_client_encryption_encrypt_text_substring_opts_t. and listen β€” this is the important part, don't ghost her:

you MUST free it with mongoc_client_encryption_encrypt_text_substring_opts_destroy()

like, fr fr, if you don't destroy it, that's a leak, and leaks are not the vibe. clean up after yourself, queen. 🫢

See also:

  • mongoc_client_encryption_encrypt_text_substring_opts_destroy()
  • mongoc_client_encryption_encrypt_text_opts_set_substring()

those two are her besties, go say hi. 🌈


πŸ‘‘ Author πŸ‘‘

MongoDB, Inc β€” yeah, the MongoDB girlies wrote her. πŸ’œ

2009-present, MongoDB, Inc.


and that's the whole page, bestie!! this edition was version 2.2.2, dated Feb 13, 202… (the footer literally cuts off mid-date, πŸ’€, not my fault, i just work here). go forth, allocate, and remember to destroy. mwah. πŸ’–βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from