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
9       WARNING:
10          Deprecated since version 1.9.0:  This  function  is  deprecated  and
11          should not be used in new code.
12
13          Please  use  mongoc_collection_create_bulk_operation_with_opts()  in
14          new code.
15
16

SYNOPSIS

18          mongoc_bulk_operation_t *
19          mongoc_collection_create_bulk_operation (
20             mongoc_collection_t *collection,
21             bool ordered,
22             const mongoc_write_concern_t *write_concern) BSON_GNUC_WARN_UNUSED_RESULT
23             BSON_GNUC_DEPRECATED_FOR (mongoc_collection_create_bulk_operation_with_opts);
24

PARAMETERS

26collection: A mongoc_collection_t.
27
28ordered: If the operations must be performed in order.
29
30write_concern: An optional mongoc_write_concern_t or NULL.
31

DESCRIPTION

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

ERRORS

50       Errors are propagated when executing the bulk operation.
51

RETURNS

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

AUTHOR

67       MongoDB, Inc
68
70       2017-present, MongoDB, Inc
71
72
73
74
751.24.3                           AugM1O7N,GO2C0_2C3OLLECTION_CREATE_BULK_OPERATION(3)
Impressum