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  mongoc_database_get_collec‐
15       tion() after this call will inherit this write concern.
16
17       The default write concern is MONGOC_WRITE_CONCERN_W_DEFAULT: the driver
18       blocks awaiting basic acknowledgement of write operations from MongoDB.
19       This  is  the  correct write concern for the great majority of applica‐
20       tions.
21

PARAMETERS

23       · database: A mongoc_database_t.
24
25       · write_concern: A mongoc_write_concern_t.
26

AUTHOR

28       MongoDB, Inc
29
31       2017-present, MongoDB, Inc
32
33
34
35
361.16.2                           Feb 25, 20M2O0NGOC_DATABASE_SET_WRITE_CONCERN(3)
Impressum