MONGOC_DATABASE_GET_READ_PREFS(3)

πŸ’… MONGOC_DATABASE_GET_READ_PREFS(3) πŸ’…

okay so bestie, this one is from libmongoc, and it's giving β€œgrab the default read prefs for this database” energy. iconic little getter, no cap.


✨ SYNOPSIS ✨

const mongoc_read_prefs_t *
mongoc_database_get_read_prefs (const mongoc_database_t *database);

Literally fetches the default read preferences to use with database. slay.


πŸŽ€ PARAMETERS πŸŽ€

  • database β€” A mongoc_database_t. that's the vibe check right there 🫢

🌸 RETURNS 🌸

A mongoc_write_concern_t that should not be modified or freed.

bestie, read that again: not modified, not freed. hands off the return value, okay? πŸ˜­πŸ’…

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


mwah πŸ’‹ β€” from libmongoc 2.5.6, dated Oct 09, 2026. periodt πŸ¦‹βœ¨

πŸ“¦ where this page comes from