MONGOC_CLIENT..._PREFIX_OPTS_T(3)

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

πŸ’… MONGOC_CLIENT..._PREFIX_OPTS_T(3)

okay bestie, buckle up β€” this one's from libmongoc, and it's honestly a little baby of a page but it's important, so let's give it the attention it deserves 🫢


✨ SYNOPSIS ✨

typedef struct _mongoc_client_encryption_encrypt_string_prefix_opts_t mongoc_client_encryption_encrypt_string_prefix_opts_t;

that's it, that's the whole synopsis. yes the name is stupid long. yes we're still gonna type it out every single time because that's the assignment πŸ’€

πŸŽ€ Changed in version 2.4.0: this got renamed from the text API β€” which is now deprecated. so if you're out here still rocking the old name, no cap, it's time to move on. the glow-up already happened.

🌸 so what even IS this thing

StringPrefixOpts is the struct that holds options for a Queryable Encryption field that supports "prefix" queries. (the quotes are part of it, babes β€” that's literally how the docs write it ✨)

basically: if you're setting up encrypted fields and you want prefix-style queries to work, this is the little options bag you reach for πŸ’–

and here's the tea β€” you use it to set options for:

mongoc_client_encryption_encrypt_string_opts_set_prefix()

that's the function. that's the whole relationship. it's giving "these two are a package deal" πŸ‘‘

lowkey it's the supporting character that makes the main character look good, iykyk 🌟


πŸ¦‹ SEE ALSO

  • mongoc_client_encryption_encrypt() 🌈
  • mongoc_client_encryption_encrypt_opts_t ⭐

go read those if you want the full picture β€” this page is like, the one specific corner of a much bigger function family, fr fr


🧚 AUTHOR

MongoDB, Inc β€” ily for maintaining this πŸ’œ

2009-present, MongoDB, Inc. β€” iconic longevity honestly, they've been at this since 2009 and the beam has not dropped 😭πŸ”₯


and that's the whole page bestie, you ate that πŸ’…βœ¨

signing off from libmongoc version 2.5.6, dated Oct 09, 2026 β€” go forth and encrypt your prefixes πŸ¦‹πŸ’–

πŸ“¦ where this page comes from