MONGOC_TRANSACTION_STATE_T(3)

Constants for transaction states πŸ’…

okay bestie, welcome to MONGOC_TRANSACTION_STATE_T(3) from libmongoc β€” it's literally the constants for transaction states, and the enum is giving main character energy ✨


🌸 SYNOPSIS 🌸

          typedef enum {
            MONGOC_TRANSACTION_NONE = 0,
            MONGOC_TRANSACTION_STARTING = 1,
            MONGOC_TRANSACTION_IN_PROGRESS = 2,
            MONGOC_TRANSACTION_COMMITTED = 3,
            MONGOC_TRANSACTION_ABORTED = 4,
          } mongoc_transaction_state_t;

πŸ’– DESCRIPTION πŸ’–

These constants describe the current transaction state of a session. That's the whole vibe check: they tell you where a transaction is at, no cap 🫢


✨ FLAG VALUES ✨

  • MONGOC_TRANSACTION_NONE β€” there is no transaction in progress. Nothing happening, empty calendar, iconic quiet life πŸ’…
  • MONGOC_TRANSACTION_STARTING β€” a transaction has been started, but no operation has been sent to the server. It's in its "getting ready" era πŸŽ€
  • MONGOC_TRANSACTION_IN_PROGRESS β€” a transaction is in progress. We're in it, bestie πŸ”₯
  • MONGOC_TRANSACTION_COMMITTED β€” the transaction was committed. Slay, it's official βœ…
  • MONGOC_TRANSACTION_ABORTED β€” the transaction was aborted. Not every era ends in a commit, and that's okay 😭

🫢 AUTHOR 🫢

MongoDB, Inc


2009-present, MongoDB, Inc.


that's the whole page, bestie β€” MONGOC_TRANSACTION_STATE_T(3), libmongoc 2.5.6, dated Oct 09, 2026. bye and stay enum-pilled πŸ’œπŸ¦‹

πŸ“¦ where this page comes from