MONGOC_CLIENT..._PREFIX_OPTS_T(3)
π 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 π
π COPYRIGHT
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
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms