MONGOC_READ_CONCERN_IS_DEFAULT(3)
π MONGOC_READ_CONCERN_IS_DEFAULT(3) π
okay so like β welcome to the libmongoc manual, bestie π«Ά this one's a little function that tells you whether your read concern is still factory-fresh or if somebody's been messing with it. it's giving "vibe check for your read concern" and honestly? iconic.
β¨ SYNOPSIS β¨
bool
mongoc_read_concern_is_default (mongoc_read_concern_t *read_concern);
that's the whole thing. one function, one argument, returns a bool. short and slay π
π PARAMETERS π
read_concernβ a pointer to amongoc_read_concern_t. yeah. that's the one you're checking. π¦
πΈ DESCRIPTION πΈ
Returns true if read_concern has not been modified from the default. like, untouched. pristine. no notes. π₯
so for example β say you never set a "readConcern" option in the MongoDB URI, and you also never called mongoc_client_set_read_concern(). in that case, mongoc_read_concern_is_default() returns true for the read concern you get back from mongoc_client_get_read_concern(). it's just sitting there being default, living its best life πβ¨
lowkey the whole point: this is how you find out if a read concern is still the plain ol' default or if something custom got applied to it. no cap. π§
π AUTHOR π
MongoDB, Inc β the authors, the icons, the moment. π
π COPYRIGHT π
2009-present, MongoDB, Inc.
k that's the whole page, bestie β go forth and check your read concerns, fr fr πβ¨π
β with love from libmongoc version 2.5.6, dated Oct 09, 2026 π¦π
π¦ 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