1MONGOC_TRANSACTION_STATE_T(3) libmongoc MONGOC_TRANSACTION_STATE_T(3)
2
3
4
5Constants for transaction states
6
8 typedef enum {
9 MONGOC_TRANSACTION_NONE = 0,
10 MONGOC_TRANSACTION_STARTING = 1,
11 MONGOC_TRANSACTION_IN_PROGRESS = 2,
12 MONGOC_TRANSACTION_COMMITTED = 3,
13 MONGOC_TRANSACTION_ABORTED = 4,
14 } mongoc_transaction_state_t;
15
17 These constants describe the current transaction state of a session.
18
20 ┌───────────────────────────┬────────────────────────────┐
21 │MONGOC_TRANSACTION_NONE │ There is no transaction in │
22 │ │ progress. │
23 ├───────────────────────────┼────────────────────────────┤
24 │MONGOC_TRANSACTION_START‐ │ A transaction has been │
25 │ING │ started, but no operation │
26 │ │ has been sent to the │
27 │ │ server. │
28 ├───────────────────────────┼────────────────────────────┤
29 │MONGOC_TRANSAC‐ │ A transaction is in │
30 │TION_IN_PROGRESS │ progress. │
31 ├───────────────────────────┼────────────────────────────┤
32 │MONGOC_TRANSACTION_COMMIT‐ │ The transaction was com‐ │
33 │TED │ mitted. │
34 ├───────────────────────────┼────────────────────────────┤
35 │MONGOC_TRANSACTION_ABORTED │ The transaction was │
36 │ │ aborted. │
37 └───────────────────────────┴────────────────────────────┘
38
40 MongoDB, Inc
41
43 2017-present, MongoDB, Inc
44
45
46
47
481.25.1 Nov 08, 2023 MONGOC_TRANSACTION_STATE_T(3)