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

NAME

6       mongoc_database_set_write_concern - mongoc_database_set_write_concern()
7

SYNOPSIS

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

PARAMETERS

24database: A mongoc_database_t.
25
26write_concern: A mongoc_write_concern_t.
27

AUTHOR

29       MongoDB, Inc
30
32       2017-present, MongoDB, Inc
33
34
35
36
371.24.3                           Aug 17, 20M2O3NGOC_DATABASE_SET_WRITE_CONCERN(3)
Impressum