Skip to main content

Module command

Module command 

Source
Expand description

crud/crud.md §§ Read/Write Operations, Write Models and Results. Builders retain capacity. Inputs and options are borrowed raw BSON; IDs and wall-clock ObjectId timestamps are supplied by the host (no ObjectId::new()). Inserted documents need an _id before sending; see ObjectIdGenerator and the crate’s host entropy obligations.

Structs§

BulkBatch
BulkBatcher
Splits a write sequence against all three negotiated size limits without copying documents. Accumulate results with BulkResult and this batch’s offset.
BulkResult
Aggregates split batches with original indices preserved. Allocation is solely owned result/error representation; success counters do not allocate.
Command
Cursor
CursorBatch
No per-row allocation: documents borrow the raw response buffer.
ObjectIdGenerator
ObjectId generator with host-supplied process entropy and wall-clock seconds. BSON ObjectId specification § Generation: 4 timestamp, 5 random, 3 counter bytes.
WriteModel
A write sequence entry (updateOne/updateMany/replaceOne, deleteOne/deleteMany).
WriteResult
Counts and error detail of an insert/update/delete reply.