1MONGOC_COLLECTION_INSERT_BULK(3)   libmongoc  MONGOC_COLLECTION_INSERT_BULK(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_insert_many() in new code.
10
11

SYNOPSIS

13          bool
14          mongoc_collection_insert_bulk (mongoc_collection_t *collection,
15                                         mongoc_insert_flags_t flags,
16                                         const bson_t **documents,
17                                         uint32_t n_documents,
18                                         const mongoc_write_concern_t *write_concern,
19                                         bson_error_t *error)
20             BSON_GNUC_DEPRECATED_FOR (mongoc_collection_insert_many);
21

PARAMETERS

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

DESCRIPTION

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

ERRORS

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

RETURNS

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

AUTHOR

50       MongoDB, Inc
51
53       2017-present, MongoDB, Inc
54
55
56
57
581.25.1                           Nov 08, 2023 MONGOC_COLLECTION_INSERT_BULK(3)
Impressum