MONGOC_CLIENT...AULT_NAMESPACE(3)
β¨ mongoc_client_encryption_opts_set_keyvault_namespace() β the libmongoc glow-up β¨
okay bestie, so this page is from libmongoc (that's the MongoDB C driver, iconic of them) and it's all about one tiny little function with a very long name: mongoc_client_encryption_opts_set_keyvault_namespace. say it three times fast, i dare you π
It's the one that tells your encryption opts where your key vault lives. main character energy for In-Use Encryption, fr fr.
π SYNOPSIS π
void
mongoc_client_encryption_opts_set_keyvault_namespace (
mongoc_client_encryption_opts_t *opts, const char *db, const char *coll);
so like, here's the whole vibe: this function sets the database and collection name of the key vault. and what even is the key vault, you ask? it's the specially designated collection that holds the encrypted data keys for In-Use Encryption. that's it, that's the whole thing, no cap π
think of it as pointing at the exact drawer where the key stuff lives β you give it a database and a collection, and it's like "yes bestie, that one" β¨
πΈ PARAMETERS πΈ
one bullet per bestie, let's go:
optsβ themongoc_client_encryption_opts_t. your options struct, the main character of this whole operation πdbβ the database name of the key vault collection. like, theconst char *of where things live ποΈcollβ the collection name of the key vault collection. the actual drawer inside that database π
π«Ά and yes, db and coll are const char * and opts is that big long mongoc_client_encryption_opts_t * type β i did not make those up, they're right there in the synopsis, iykyk.
π¦ SEE ALSO π¦
mongoc_client_encryption_new()β go read this one next, it's giving sibling energy π«- In-Use Encryption β the whole big picture, the lore, the backstory π
π AUTHOR π
MongoDB, Inc β yeah, that MongoDB π
π COPYRIGHT π
2009-present, MongoDB, Inc. β iconic run, honestly π
okay that's the whole page!! no skipped options, no missing params, we ate and left zero crumbs πβ¨
mwah, love u, go encrypt responsibly π§ββοΈπ
β libmongoc 2.5.6, dated Oct 09, 2026, signing off like the little manpage footer i am ππ«Ά
π¦ 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