Skip to main content

Module bulk

Module bulk 

Source
Expand description

Generic bulk operations — create, update, delete multiple entities in one call.

Generated code emits a type alias:

ⓘ
// Generated:
pub type StoredFileBulkService = GenericBulkService<
    StoredFile,
    CreateStoredFileDto,
    StoredFileService,
>;

Bulk operations run as individual transactions (one per item) by default. Override BulkStrategy to wrap all items in a single transaction.

Structs§

BulkItemResult
Per-item outcome in a bulk operation.
BulkOperationConfig
Configuration for a bulk operation.
BulkOperationProgress
Tracks live progress of an in-flight bulk operation.
BulkOperationResult
Aggregated result of a completed bulk operation.
GenericBulkService
Generic bulk service over any entity+DTO+service triple.

Enums§

BulkFailureMode
Controls how bulk operations behave on partial failure.

Traits§

BulkCapableService
The minimal contract needed from a service to power bulk operations.