1MONGOC_READ_CONCERN_T(3)       MongoDB C Driver       MONGOC_READ_CONCERN_T(3)
2
3
4

NAME

6       mongoc_read_concern_t - mongoc_read_concern_t
7
8       Read Concern abstraction
9

SYNOPSIS

11       New in MongoDB 3.2.
12
13       The mongoc_read_concern_t allows clients to choose a level of isolation
14       for their reads. The default, MONGOC_READ_CONCERN_LEVEL_LOCAL, is right
15       for the great majority of applications.
16
17       You can specify a read concern on connection objects, database objects,
18       or collection objects.
19
20       See readConcern on the MongoDB website for more information.
21
22       Read Concern is only sent to MongoDB when it has explicitly been set by
23       mongoc_read_concern_set_level to anything other than NULL.
24

READ CONCERN LEVELS

26          ┌────────────────────┬─────────────────────┬─────────────────────┐
27          │Macro               │ Description         │ First  MongoDB ver‐ │
28          │                    │                     │ sion                │
29          ├────────────────────┼─────────────────────┼─────────────────────┤
30          │MONGOC_READ_CON‐    │ Level  "local", the │ 3.2                 │
31          │CERN_LEVEL_LOCAL    │ default.            │                     │
32          ├────────────────────┼─────────────────────┼─────────────────────┤
33          │MONGOC_READ_CON‐    │ Level "majority".   │ 3.2                 │
34          │CERN_LEVEL_MAJORITY │                     │                     │
35          ├────────────────────┼─────────────────────┼─────────────────────┤
36          │MONGOC_READ_CON‐    │ Level    "lineariz‐ │ 3.4                 │
37          │CERN_LEVEL_LIN‐     │ able".              │                     │
38          │EARIZABLE           │                     │                     │
39          ├────────────────────┼─────────────────────┼─────────────────────┤
40          │MONGOC_READ_CON‐    │ Level "available".  │ 3.6                 │
41          │CERN_LEVEL_AVAIL‐   │                     │                     │
42          │ABLE                │                     │                     │
43          ├────────────────────┼─────────────────────┼─────────────────────┤
44          │MONGOC_READ_CON‐    │ Level "snapshot".   │ 4.0                 │
45          │CERN_LEVEL_SNAPSHOT │                     │                     │
46          └────────────────────┴─────────────────────┴─────────────────────┘
47
48       For  the  sake  of  compatibility with future versions of MongoDB, mon‐
49       goc_read_concern_set_level allows any string, not  just  this  list  of
50       known read concern levels.
51
52       See  Read  Concern  Levels  in  the MongoDB manual for more information
53       about the individual read concern levels.
54

AUTHOR

56       MongoDB, Inc
57
59       2017-present, MongoDB, Inc
60
61
62
63
641.13.1                           Jan 24, 2019         MONGOC_READ_CONCERN_T(3)
Impressum