MONGOC_COLLECT...T_READ_CONCERN(3)

πŸ’… MONGOC_COLLECT...T_READ_CONCERN(3) πŸ’…

okay bestie so this is a page straight out of the libmongoc manual, and it's honestly a short little icon. like, she's not doing the most, but she's doing exactly what she needs to do πŸŽ€


✨ SYNOPSIS ✨

const mongoc_read_concern_t *
mongoc_collection_get_read_concern (const mongoc_collection_t *collection);

that's the whole thing. one function, in and out, no cap πŸ’–


🌸 PARAMETERS 🌸

  • collection β€” a mongoc_collection_t. that's it, that's the one (1) thing she needs from you 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

so the way this works: this function fetches the default read concern that's gonna be used on read operations originating from collection. literally just hands you the collection's default read concern, no dramatics, no surprises πŸ’…


⭐ RETURNS ⭐

she gives you back a mongoc_read_concern_t β€” and listen, this is the important part, bestie:

you should NOT modify it and you should NOT free it 🚨 like do not touch, do not free, hands off, it's not yours to keep. it's giving borrowed-book energy, iykyk πŸ“š

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” slay, we love a credited author πŸ’œ


2009-present, MongoDB, Inc. β€” iconic run, honestly πŸ™ˆ


and that's the tea πŸ“ this page is from libmongoc, version 2.5.6, dated Oct 09 (the year got a little cut off at the edge of the page, ngl 😭). periodt, go read your collections responsibly πŸ§šπŸ’–

πŸ“¦ where this page comes from