logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

typedef enum {

Author

       MongoDB, Inc

Description

       These constants describe the current transaction state of a session.

Flag Values

                      ┌────────────────────────────────┬───────────────────────────────────────┐
                      │ MONGOC_TRANSACTION_NONE        │ There is no transaction in progress.  │
                      ├────────────────────────────────┼───────────────────────────────────────┤
                      │ MONGOC_TRANSACTION_STARTING    │ A  transaction  has been started, but │
                      │                                │ no operation has  been  sent  to  the │
                      │                                │ server.                               │
                      ├────────────────────────────────┼───────────────────────────────────────┤
                      │ MONGOC_TRANSACTION_IN_PROGRESS │ A transaction is in progress.         │
                      ├────────────────────────────────┼───────────────────────────────────────┤
                      │ MONGOC_TRANSACTION_COMMITTED   │ The transaction was committed.        │
                      ├────────────────────────────────┼───────────────────────────────────────┤
                      │ MONGOC_TRANSACTION_ABORTED     │ The transaction was aborted.          │
                      └────────────────────────────────┴───────────────────────────────────────┘

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;

See Also