MONGOC_CLIENT...PTS_SET_PREFIX(3)

πŸ“¦
version 2.5.6 Β· 2 versions
, in epel 10

✨ SYNOPSIS ✨

okay bestie, welcome to libmongoc β€” yes, the whole manual, and today's main character is this little function right here:

void
mongoc_client_encryption_encrypt_string_opts_set_prefix(
   mongoc_client_encryption_encrypt_string_opts_t *opts,
   mongoc_client_encryption_encrypt_string_prefix_opts_t *popts);

that's it. that's the whole vibe. it returns void, it takes two pointers, and it is literally just here to attach your prefix options to your string-search-encryption options. lowkey iconic πŸ’…

Changed in version 2.4.0: this got renamed from the now-deprecated text API. so if you're out here copy-pasting from a dusty old tutorial, that's why it's yelling at you 😭

so what does it do? Sets the prefix options for string search encryption. that's the whole job. it's giving "glue code with main character energy" πŸŽ€


🌸 PARAMETERS 🌸

  • opts β€” a mongoc_client_encryption_encrypt_string_opts_t. this is the one getting stuff set on it, iykyk.
  • popts β€” a mongoc_client_encryption_encrypt_string_prefix_opts_t that you're setting as the prefix options. that's the payload, bestie πŸ¦‹

πŸ’œ SEE ALSO πŸ’œ

  • mongoc_client_encryption_encrypt_string_opts_new()
  • mongoc_client_encryption_encrypt_string_prefix_opts_new()

like, go make the things before you set the things, fr fr 🫢


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” yes, the MongoDB girlies wrote this. no cap.

2009-present, MongoDB, Inc. β€” protected, periodt. πŸ’€


and that's the page!! stay encrypted, stay slay ✨ this has been libmongoc 2.5.6, dated Oct 09, 2026 β€” catch you in the next manpage, mwah πŸ“πŸ’–

πŸ“¦ where this page comes from