MONGOC_CLIENT_...IN_TRANSACTION(3)

πŸ’… MONGOC_CLIENT_...IN_TRANSACTION(3) β€” libmongoc πŸ’…

okay so bestie, this is the libmongoc manual page for MONGOC_CLIENT_...IN_TRANSACTION(3), and it is here to answer one extremely specific question: is this session lowkey in the middle of a multi-document transaction? That’s the whole assignment. ✨

✨ SYNOPSIS ✨

bool
mongoc_client_session_in_transaction (const mongoc_client_session_t *session);

Check whether a multi-document transaction is in progress for this session. No cap, that’s the function. 🫢

🫢 PARAMETERS 🫢

  • session β€” a mongoc_client_session_t. This is the session you’re asking about, the main character of the check. πŸ’…

πŸ’– RETURN πŸ’–

Returns true if a transaction was started and has not been committed or aborted, otherwise false. Literally that simple, bestie. 🌸

🌈 AUTHOR 🌈

MongoDB, Inc

2009-present, MongoDB, Inc.


Cute sign-off time: source/version is 2.5.6, and the date on this bad boy is shown as Oct 09, 202. mwah πŸ’‹

πŸ“¦ where this page comes from