MONGOC_AUTO_E...LT_CLIENT_POOL(3)
π MONGOC_AUTO_ENCRYPTION_OPTS_SET_KEYVAULT_CLIENT_POOL β¨
okay bestie so this is a page from libmongoc (we love her) and it's all about telling your auto-encryption setup which client pool to use when it goes key-shopping. no cap, it's giving "optional but important." π
SYNOPSIS
void
mongoc_auto_encryption_opts_set_keyvault_client_pool (
mongoc_auto_encryption_opts_t *opts, mongoc_client_pool_t *pool);
DESCRIPTION
so like, this function sets an optional separate mongoc_client_pool_t that gets used during key lookup for automatic encryption and decryption. that's it, that's the whole vibe. π
but listen β it only applies to automatic encryption on a mongoc_client_pool_t. and here's the important part: it is invalid to set this for automatic encryption on a single-threaded mongoc_client_t. literally do not do it, it's not that kind of party. π
PARAMETERS
optsβ amongoc_auto_encryption_opts_t. your options object, your main character. β¨poolβ amongoc_client_pool_tto use for key queries. bestie, listen closely: this client pool should not have automatic encryption enabled, because it will only executefindcommands against the key vault collection to retrieve keys for automatic encryption and decryption. it's like a little key-fetching errand runner, nothing more. πββοΈπ¨
π¨ also this pool MUST outlive anymongoc_client_pool_twhich has been enabled to use it throughmongoc_client_pool_enable_auto_encryption(). like, the pool stays alive longer than its users, periodt. otherwise you're asking for chaos energy and we don't do that here. π
SEE ALSO
mongoc_client_pool_enable_auto_encryption()mongoc_auto_encryption_opts_set_keyvault_client()- In-Use Encryption
AUTHOR
MongoDB, Inc π
COPYRIGHT
2009-present, MongoDB, Inc. πΈ
k byeee, this has been libmongoc version 2.5.6, dated Oct 09, 2026 β go forth and pool responsibly π«Άπ
π¦ 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