MONGOC_BULK_OP...CLIENT_SESSION(3)

πŸ’… MONGOC_BULK_OP...CLIENT_SESSION(3) πŸ’…

okay so bestie, welcome to the libmongoc page for MONGOC_BULK_OP...CLIENT_SESSION(3) β€” yes the title is a whole mouthful, but it's literally just the function that hands a bulk operation its own client session. no cap, it's giving "short but crucial." 🫢


✨ SYNOPSIS ✨

void
mongoc_bulk_operation_set_client_session (
  mongoc_bulk_operation_t *bulk,
  mongoc_client_session_t *client_session);

So what does this icon do? It sets an explicit client session to use for the bulk operation. That's the whole vibe. πŸ’…

🚨 It is an error to use a session for unacknowledged writes. Like, don't do it β€” the docs said error, and we listen. periodt.

πŸŽ€ PARAMETERS πŸŽ€

  • bulk β€” A mongoc_bulk_operation_t. The bulk operation in question, the main character of this whole function. πŸ‘‘
  • client_session β€” A mongoc_client_session_t. It must be derived from the same mongoc_client_t as bulk. No mixing clients, bestie β€” keep it in the same family tree. 🌳

πŸ”— SEE ALSO πŸ”—

  • mongoc_client_start_session() β€” if you need to start a session first, that's the one to peek at. iykyk.

πŸ‘‘ AUTHOR πŸ‘‘

MongoDB, Inc


2009-present, MongoDB, Inc.


and that's the whole page, fr fr. this lil beauty is from version 2.5.6, dated Oct 09 β€” mwah, slay, bye πŸ’‹βœ¨

πŸ“¦ where this page comes from