MONGOC_COLLECT...GET_READ_PREFS(3)

πŸ’… MONGOC_COLLECT...GET_READ_PREFS(3) β€” a libmongoc bestie moment πŸ’…

okay so this is the libmongoc manual page for mongoc_collection_get_read_prefs, and it’s giving β€œtiny function, very important default vibes” ✨

πŸ“œ SYNOPSIS

const mongoc_read_prefs_t *
mongoc_collection_get_read_prefs (const mongoc_collection_t *collection);

πŸŽ€ PARAMETERS

  • collection β€” a mongoc_collection_t. That’s the collection bestie we’re asking about 🫢

🌸 DESCRIPTION

Fetches the default read preferences to use for collection. Operations that don’t have specified read-preferences will default to this one. No cap, it’s the fallback vibe-setter πŸ‘‘

πŸ’– RETURNS

A mongoc_read_prefs_t that should not be modified or freed. Like, look at it, love it, but do not modify it and do not free it β€” that’s the rule, bestie 🚨

✨ AUTHOR

MongoDB, Inc β€” iconic, honestly πŸ‘‘

2009-present, MongoDB, Inc. β€” that’s the whole copyright line, periodt πŸ’…


Signing off from libmongoc 2.5.6, dated Oct 09, 202... (the footer’s last digit is doing a little vanishing act, RIP 😭) β€” stay read-prefs-pilled, besties πŸ’œπŸ¦‹

πŸ“¦ where this page comes from