MONGOC_READ_CONCERN_T(3)
π Read Concern abstraction π
welcome to the MONGOC_READ_CONCERN_T(3) page from the libmongoc manual, bestie. this is the whole read-concern situation, and yes it slays.
π SYNOPSIS π
β¨ New in MongoDB 3.2.
mongoc_read_concern_t lets clients choose a level of isolation for their reads β think of it as setting the vibe for how much consistency you want. The default, MONGOC_READ_CONCERN_LEVEL_LOCAL, is right for the great majority of applications. no cap.
You can specify a read concern on connection objects, database objects, or collection objects. all three, your choice.
See readConcern on the MongoDB website for more info.
π¨ Read Concern is only sent to MongoDB when it has explicitly been set bymongoc_read_concern_set_level()to anything other thanNULL. If it'sNULL, it does not get sent. periodt.
π READ CONCERN LEVELS π
okay so here's the level menu β macro, what it means, and the first MongoDB version it showed up in:
MONGOC_READ_CONCERN_LEVEL_LOCALβ level"local", and it's the default. first MongoDB version:3.2.MONGOC_READ_CONCERN_LEVEL_MAJORITYβ level"majority". first MongoDB version:3.2.MONGOC_READ_CONCERN_LEVEL_LINEARIZABLEβ level"linearizable". first MongoDB version:3.4.MONGOC_READ_CONCERN_LEVEL_AVAILABLEβ level"available". first MongoDB version:3.6.MONGOC_READ_CONCERN_LEVEL_SNAPSHOTβ level"snapshot". first MongoDB version:4.0.
For the sake of compatibility with future versions of MongoDB, mongoc_read_concern_set_level() allows any string, not just the known read concern levels in that list. she's flexible like that.
See Read Concern Levels in the MongoDB manual for more about the individual read concern levels.
π AUTHOR π
MongoDB, Inc
π«Ά COPYRIGHT π«Ά
2009-present, MongoDB, Inc.
that's the page, bestie π source/version: libmongoc 2.5.6, dated Oct 09, 2026. bye, go read with concern π¦π
π¦ 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