1MONGOC_COLLECTION_CREATE_BULK_OPERATlIiMObONmN(oG3nO)gCo_cCOLLECTION_CREATE_BULK_OPERATION(3)
2
3
4

WARNING:

6          Deprecated  since  version  1.9.0:  This  function is deprecated and
7          should not be used in new code.
8
9          Please  use  mongoc_collection_create_bulk_operation_with_opts()  in
10          new code.
11
12

SYNOPSIS

14          mongoc_bulk_operation_t *
15          mongoc_collection_create_bulk_operation (
16             mongoc_collection_t *collection,
17             bool ordered,
18             const mongoc_write_concern_t *write_concern) BSON_GNUC_WARN_UNUSED_RESULT
19             BSON_GNUC_DEPRECATED_FOR (mongoc_collection_create_bulk_operation_with_opts);
20

PARAMETERS

22collection: A mongoc_collection_t.
23
24ordered: If the operations must be performed in order.
25
26write_concern: An optional mongoc_write_concern_t or NULL.
27

DESCRIPTION

29       This function shall begin a new bulk operation. After creating this you
30       may call  various  functions  such  as  mongoc_bulk_operation_update(),
31       mongoc_bulk_operation_insert() and others.
32
33       After calling mongoc_bulk_operation_execute() the commands will be exe‐
34       cuted in as large as batches as reasonable by the client.
35
36       If ordered is true, then processing will stop at the first error.
37
38       If ordered is not true, then the bulk operation will  attempt  to  con‐
39       tinue processing even after the first failure.
40
41       write_concern contains the write concern for all operations in the bulk
42       operation. If NULL, the collection's write concern is used. The  global
43       default is acknowledged writes: MONGOC_WRITE_CONCERN_W_DEFAULT.
44

ERRORS

46       Errors are propagated when executing the bulk operation.
47

RETURNS

49       A  newly  allocated  mongoc_bulk_operation_t  that should be freed with
50       mongoc_bulk_operation_destroy() when no longer in use.
51
52       WARNING:
53          Failure to handle the result of this function is a  programming  er‐
54          ror.
55
56       SEE ALSO:
57          Bulk Write Operations
58
59
60          mongoc_bulk_operation_t
61

AUTHOR

63       MongoDB, Inc
64
66       2017-present, MongoDB, Inc
67
68
69
70
711.25.1                           NovM0O8N,GO2C0_2C3OLLECTION_CREATE_BULK_OPERATION(3)
Impressum