MONGOC_BULKWRI...END_REPLACEONE(3)

🌸 MONGOC_BULKWRI...END_REPLACEONE ✨

okay bestie so this one is a libmongoc page β€” a whole manual page, yes, we're in manpage territory, but it's actually one little function and it's giving "niche but iconic" πŸŽ€ so let's get into it.


✨ SYNOPSIS ✨

bool
mongoc_bulkwrite_append_replaceone (mongoc_bulkwrite_t *self,
                                    const char *ns,
                                    const bson_t *filter,
                                    const bson_t *replacement,
                                    const mongoc_bulkwrite_replaceoneopts_t *opts /* May be NULL */,
                                    bson_error_t *error);

like, look at that signature. six args. lowkey a lot but we're built different πŸ’… and yes, opts literally has /* May be NULL */ written right there in the code, bestie, that comment is canon.


πŸ’– DESCRIPTION πŸ’–

so what does it do? it adds a replace operation for the namespace ns. that's the whole vibe. πŸ¦‹

  • returns true on success β€” slay, we love a true πŸ’œ
  • returns false and sets error if an error occurred β€” so like, check your error bestie, it's not decorative 😭

fr fr that's it, that's the function. no secrets, no hidden defaults, no surprise behaviour. periodt.


πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc β€” yeah, the MongoDB girlies wrote this one 🫢


2009-present, MongoDB, Inc. β€” iconic run honestly, 2009 to present is main character energy ⭐


ok that's the whole page!! go forth and replace your documents responsibly, bestie πŸ’–βœ¨

version 2.5.6, dated Oct 09 β€” mwah, thanks for reading, ily, bye πŸ§šβ€β™€οΈπŸ’…

πŸ“¦ where this page comes from