1MONGOC_DATABASE_SET_WRITE_CONCERN(3)libmongoMcONGOC_DATABASE_SET_WRITE_CONCERN(3)
2
3
4

SYNOPSIS

6          void
7          mongoc_database_set_write_concern (mongoc_database_t *database,
8                                             const mongoc_write_concern_t *write_concern);
9
10       This  function  sets  the  write concern to use on operations performed
11       with         database.         Collections         created         with
12       mongoc_database_get_collection()  after  this  call  will  inherit this
13       write concern.
14
15       The default write concern is MONGOC_WRITE_CONCERN_W_DEFAULT: the driver
16       blocks awaiting basic acknowledgement of write operations from MongoDB.
17       This is the correct write concern for the great  majority  of  applica‐
18       tions.
19

PARAMETERS

21database: A mongoc_database_t.
22
23write_concern: A mongoc_write_concern_t.
24

AUTHOR

26       MongoDB, Inc
27
29       2017-present, MongoDB, Inc
30
31
32
33
341.25.1                           Nov 08, 20M2O3NGOC_DATABASE_SET_WRITE_CONCERN(3)
Impressum