1MONGOC_COLLECTION_INSERT_BULK(3)   libmongoc  MONGOC_COLLECTION_INSERT_BULK(3)
2
3
4

NAME

6       mongoc_collection_insert_bulk - mongoc_collection_insert_bulk()
7

SYNOPSIS

9          bool
10          mongoc_collection_insert_bulk (mongoc_collection_t *collection,
11                                         mongoc_insert_flags_t flags,
12                                         const bson_t **documents,
13                                         uint32_t n_documents,
14                                         const mongoc_write_concern_t *write_concern,
15                                         bson_error_t *error)
16             BSON_GNUC_DEPRECATED_FOR (mongoc_collection_insert_many);
17

DEPRECATED

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

PARAMETERS

24       · collection: A mongoc_collection_t.
25
26       · flags: A bitwise or of mongoc_insert_flags_t.
27
28       · documents: An array of bson_t.
29
30       · n_documents: The number of documents in documents.
31
32       · write_concern: A mongoc_write_concern_t or NULL.
33
34       · error: An optional location for a bson_error_t or NULL.
35

DESCRIPTION

37       This  function  performs a bulk insert of all of the documents in docu‐
38       ments. This function is deprecated as it cannot accurately return which
39       documents may have failed during the bulk insert.
40

ERRORS

42       Errors are propagated via the error parameter.
43
44       A write concern timeout or write concern error is considered a failure.
45

RETURNS

47       Returns  true  if successful. Returns false and sets error if there are
48       invalid arguments or a server or network error.
49

AUTHOR

51       MongoDB, Inc
52
54       2017-present, MongoDB, Inc
55
56
57
58
591.16.2                           Feb 25, 2020 MONGOC_COLLECTION_INSERT_BULK(3)
Impressum