MONGOC_WRITE_CONCERN_IS_DEFAULT(3)

πŸ’– MONGOC_WRITE_CONCERN_IS_DEFAULT(3) πŸ’–

okay bestie, welcome to the libmongoc page for mongoc_write_concern_is_default β€” yes, the whole MONGOC_WRITE_CONCERN_IS_DEFAULT(3) moment. it's giving β€œis this write concern still factory-default or not?” and honestly it's kinda iconic. 🫢


πŸ“œ SYNOPSIS

bool
mongoc_write_concern_is_default (mongoc_write_concern_t *write_concern);

πŸŽ€ PARAMETERS

  • write_concern β€” a pointer to a mongoc_write_concern_t. that's the whole parameter, bestie, no secret extra args. πŸ’…

🧠 DESCRIPTION

Returns true if write_concern has not been modified from the default. lowkey the vibe check is: untouched = true.

For example, if no "w" option is set in the MongoDB URI and you have not called mongoc_client_set_write_concern(), then mongoc_write_concern_is_default() is true for the write concern returned by mongoc_client_get_write_concern(). fr fr, that's the exact scenario. ✨


✨ AUTHOR

MongoDB, Inc πŸ‘‘


2009-present, MongoDB, Inc. 🫢


cute sign-off: source/version 2.5.6, dated Oct 09, 202 β€” mwah, bye bestie πŸ’‹πŸ’…

πŸ“¦ where this page comes from