MONGOC_READ_PREFS_GET_MODE(3)

πŸ’… MONGOC_READ_PREFS_GET_MODE πŸ’…

okay bestie, welcome to the libmongoc manual page for MONGOC_READ_PREFS_GET_MODE(3) β€” yes the title is screaming at you in all caps, that's just how man pages are, they're dramatic like that πŸŽ€


✨ SYNOPSIS ✨

mongoc_read_mode_t
mongoc_read_prefs_get_mode (const mongoc_read_prefs_t *read_prefs);

like, that's the whole thing. one function. she's small but she's important 🫢


🌸 PARAMETERS 🌸

  • read_prefs β€” a mongoc_read_prefs_t. that's it. that's the whole parameter list. she takes one (1) read prefs struct and she takes it with const energy so don't even think about mutating her πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she actually do? she fetches the mongoc_read_mode_t for the read preference. that's the vibe. you hand her your read prefs, she hands back the mode. lowkey the simplest little getter in the whole library and honestly? iconic πŸ’–


⭐ RETURNS ⭐

she returns the read preference mode. that's the mongoc_read_mode_t, in case you were wondering, which you probably were because we literally just said it. no cap πŸ”₯


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” the main characters themselves 🧚


2009-present, MongoDB, Inc. β€” protect the copyright, periodt πŸ’…


and that's the page bestie!! 🌈 version 2.5.6, dated Oct 09, 2026, straight from the libmongoc girlies. mwah, go get that read mode πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from