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

NAME

6       mongoc_collection_create_bulk_operation     -    mongoc_collection_cre‐
7       ate_bulk_operation()
8

SYNOPSIS

10          mongoc_bulk_operation_t *
11          mongoc_collection_create_bulk_operation (
12             mongoc_collection_t *collection,
13             bool ordered,
14             const mongoc_write_concern_t *write_concern) BSON_GNUC_WARN_UNUSED_RESULT
15             BSON_GNUC_DEPRECATED_FOR (mongoc_collection_create_bulk_operation_with_opts);
16

DEPRECATED

18       This function is deprecated and should not be used in new code.
19
20       Please use mongoc_collection_create_bulk_operation_with_opts() instead.
21

PARAMETERS

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

DESCRIPTION

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

SEE ALSO

47       Bulk Write Operations
48
49       mongoc_bulk_operation_t
50

ERRORS

52       Errors are propagated when executing the bulk operation.
53

RETURNS

55       A newly allocated mongoc_bulk_operation_t that  should  be  freed  with
56       mongoc_bulk_operation_destroy() when no longer in use.
57
58       WARNING:
59          Failure  to  handle  the  result  of  this function is a programming
60          error.
61

AUTHOR

63       MongoDB, Inc
64
66       2017-present, MongoDB, Inc
67
68
69
70
711.16.2                           FebM2O5N,GO2C0_2C0OLLECTION_CREATE_BULK_OPERATION(3)
Impressum