mongodb-driver v0.6.2 Mongo.BulkWriteResult View Source
The successful result struct of Mongo.BulkWrite.write
. Its fields are:
:acknowledged
- Write-concern:matched_count
- Number of matched documents:modified_count
- Number of modified documents:inserted_count
- Number of inserted documents:deleted_count
- Number of deleted documents:upserted_count
- Number of upserted documents:upserted_ids
- If the operation was an upsert, the upserted ids:inserted_ids
- If the operation was an insert, the inserted ids:errors
- If the operation results in an error, the error is collected
Link to this section Summary
Link to this section Types
Link to this type
t()
View Source
t()
View Source
t() :: %Mongo.BulkWriteResult{
acknowledged: boolean(),
deleted_count: non_neg_integer(),
errors: [Map.t()],
inserted_count: non_neg_integer(),
inserted_ids: [BSON.ObjectId.t()],
matched_count: non_neg_integer(),
modified_count: non_neg_integer(),
upserted_count: non_neg_integer(),
upserted_ids: [BSON.ObjectId.t()]
}
t() :: %Mongo.BulkWriteResult{ acknowledged: boolean(), deleted_count: non_neg_integer(), errors: [Map.t()], inserted_count: non_neg_integer(), inserted_ids: [BSON.ObjectId.t()], matched_count: non_neg_integer(), modified_count: non_neg_integer(), upserted_count: non_neg_integer(), upserted_ids: [BSON.ObjectId.t()] }
Link to this section Functions
Link to this function
add(src, dest) View Source
Link to this function
delete_result(count, errors) View Source
Link to this function
empty() View Source
Link to this function
error(error) View Source
Link to this function
insert_result(count, ids, errors) View Source
Link to this function
reduce(results) View Source
Link to this function
reduce(results, acc) View Source
Link to this function