MONGOC_DATABAS...T_READ_CONCERN(3)
π¦ MONGOC_DATABASE_SET_READ_CONCERN π¦
okay bestie, so this one's from libmongoc (yes, the MongoDB C driver, we love a C library moment) β and the full function name is mongoc_database_set_read_concern, the manpage header just got chopped up by the terminal gremlins π (that's the MONGOC_DATABAS...T_READ_CONCERN(3) thing, section 3 of the manual, iykyk).
β¨ SYNOPSIS β¨
void
mongoc_database_set_read_concern (mongoc_database_t *database,
const mongoc_read_concern_t *read_concern);
literally that's the whole signature, she's not complicated π
πΈ DESCRIPTION πΈ
So this function sets the read concern to use on operations performed with database. Simple as that π«Ά
And here's the cute part β any collections you create with mongoc_database_get_collection() after this call will inherit this read concern. like, generational wealth but for read concerns πβ¨
β οΈ important vibe check: the default read concern is empty β meaning no readConcern is sent to the server unless you explicitly configure it. so if you want one, you gotta ask for it, no cap. π
π PARAMETERS π
- database β a
mongoc_database_t. the database in question, the main character of this operation π - read_concern β a
mongoc_read_concern_t. the read concern you're bestowing upon it β¨
π AUTHOR π
MongoDB, Inc β yes, the MongoDB, Inc π«Ά
β COPYRIGHT β
2009-present, MongoDB, Inc.
that's the whole page, bestie!! π no options, no environment variables, no exit statuses, no lurking bug notes β just a clean little setter doing its thing. slay. π§
and for the cute sign-off: this gorgeousness is from libmongoc version 2.5.6, dated Oct 09, 2025 β go forth and configure your read concerns 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