MONGOC_CLIENT_...TRING_OPTS_NEW(3)
β¨ 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. π
π Copyright π
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
- ubuntu resolute: libmongoc-doc 2.2.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms