MONGOC_CLIENT...PTION_GET_KEYS(3)
β¨ MONGOC_CLIENT_ENCRYPTION_GET_KEYS(3) β¨
okay so bestie, this one lives in the libmongoc manual, and it's literally the cutest little getter you ever did see π
it's called mongoc_client_encryption_get_keys and no cap, it just... gets the keys. all of them. π
πΈ SYNOPSIS πΈ
mongoc_cursor_t *
mongoc_client_encryption_get_keys (mongoc_client_encryption_t *client_encryption,
bson_error_t *error);
Get all the key documents in the key vault collection. that's it, that's the function π«Ά
π¦ PARAMETERS π¦
client_encryptionβ amongoc_client_encryption_t. your main character struct, the one doing the key-vaulting ποΈerrorβ optional. abson_error_t. you can pass it, or you can lowkey ignore it (but like, don't say I didn't warn you π)
π RETURNS π
Returns the result of the internal find command if it's successful. and if it's not successful? returns NULL and sets error instead. so like, vibe check your error before you go celebrating, fr fr π
the way that this is just "works β cursor, breaks βNULL+error" is so simple and yet so iconic of it honestly π
π SEE ALSO π
mongoc_client_encryption_t
π AUTHOR π
MongoDB, Inc β the whole entire icon themselves π
π COPYRIGHT π
2009-present, MongoDB, Inc.
and that's the whole page, bestie β¨ nothing hidden, nothing skipped, we ate and left absolutely no crumbs π§
sign-off time: this lil gem comes from libmongoc, version 2.5.6, dated Oct 09, 2026 β screenshot it, cite it, love it π
ππ
π¦ 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