Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
MONGOC_READ_CONCERN_T(3)	    libmongoc		MONGOC_READ_CONCERN_T(3)

Read Concern abstraction

SYNOPSIS
     New in MongoDB 3.2.

     The mongoc_read_concern_t allows clients to choose a level of isolation for
     their reads. The default, MONGOC_READ_CONCERN_LEVEL_LOCAL, is right for the
     great majority of applications.

     You  can specify a read concern on connection objects, database objects, or
     collection objects.

     See readConcern on the MongoDB website for more information.

     Read Concern is only sent to MongoDB when it has  explicitly  been  set  by
     mongoc_read_concern_set_level() to anything other than NULL.

READ CONCERN LEVELS
       +----------------------+----------------------+----------------------+
       | Macro		      | Description	     | First  MongoDB  ver- |
       |		      | 		     | sion		    |
       +----------------------+----------------------+----------------------+
       | MONGOC_READ_CON-     | Level  "local",  the | 3.2		    |
       | CERN_LEVEL_LOCAL     | default.	     |			    |
       +----------------------+----------------------+----------------------+
       | MONGOC_READ_CON-     | Level "majority".    | 3.2		    |
       | CERN_LEVEL_MAJORITY  | 		     |			    |
       +----------------------+----------------------+----------------------+
       | MONGOC_READ_CON-     | Level	  "lineariz- | 3.4		    |
       | CERN_LEVEL_LINEARIZ- | able".		     |			    |
       | ABLE		      | 		     |			    |
       +----------------------+----------------------+----------------------+
       | MONGOC_READ_CON-     | Level "available".   | 3.6		    |
       | CERN_LEVEL_AVAILABLE | 		     |			    |
       +----------------------+----------------------+----------------------+
       | MONGOC_READ_CON-     | Level "snapshot".    | 4.0		    |
       | CERN_LEVEL_SNAPSHOT  | 		     |			    |
       +----------------------+----------------------+----------------------+

     For  the  sake  of  compatibility	with   future	versions   of	MongoDB,
     mongoc_read_concern_set_level()  allows  any  string, not just this list of
     known read concern levels.

     See Read Concern Levels in the MongoDB manual for	more  information  about
     the individual read concern levels.

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026		MONGOC_READ_CONCERN_T(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_read_concern_t&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help