1MONGOC_TRANSACTION_STATE_T(3)      libmongoc     MONGOC_TRANSACTION_STATE_T(3)
2
3
4

NAME

6       mongoc_transaction_state_t - mongoc_transaction_state_t
7
8       Constants for transaction states
9

SYNOPSIS

11          typedef enum {
12            MONGOC_TRANSACTION_NONE = 0,
13            MONGOC_TRANSACTION_STARTING = 1,
14            MONGOC_TRANSACTION_IN_PROGRESS = 2,
15            MONGOC_TRANSACTION_COMMITTED = 3,
16            MONGOC_TRANSACTION_ABORTED = 4,
17          } mongoc_transaction_state_t;
18

DESCRIPTION

20       These constants describe the current transaction state of a session.
21

FLAG VALUES

23              ┌───────────────────────────┬────────────────────────────┐
24              │MONGOC_TRANSACTION_NONE    │ There is no transaction in │
25              │                           │ progress.                  │
26              ├───────────────────────────┼────────────────────────────┤
27              │MONGOC_TRANSACTION_START‐  │ A   transaction  has  been │
28              │ING                        │ started, but no  operation │
29              │                           │ has   been   sent  to  the │
30              │                           │ server.                    │
31              ├───────────────────────────┼────────────────────────────┤
32              │MONGOC_TRANSAC‐            │ A    transaction   is   in │
33              │TION_IN_PROGRESS           │ progress.                  │
34              ├───────────────────────────┼────────────────────────────┤
35              │MONGOC_TRANSACTION_COMMIT‐ │ The  transaction  was com‐ │
36              │TED                        │ mitted.                    │
37              ├───────────────────────────┼────────────────────────────┤
38              │MONGOC_TRANSACTION_ABORTED │ The    transaction     was │
39              │                           │ aborted.                   │
40              └───────────────────────────┴────────────────────────────┘
41

AUTHOR

43       MongoDB, Inc
44
46       2017-present, MongoDB, Inc
47
48
49
50
511.17.6                           Jun 03, 2021    MONGOC_TRANSACTION_STATE_T(3)
Impressum