1MONGOC_DATABASE_SET_WRITE_CONCERN(3)libmongoMcONGOC_DATABASE_SET_WRITE_CONCERN(3)
2
3
4
6 mongoc_database_set_write_concern - mongoc_database_set_write_concern()
7
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
24 • database: A mongoc_database_t.
25
26 • write_concern: A mongoc_write_concern_t.
27
29 MongoDB, Inc
30
32 2017-present, MongoDB, Inc
33
34
35
36
371.23.1 Oct 20, 20M2O2NGOC_DATABASE_SET_WRITE_CONCERN(3)