pub async fn prune_all(
pool: &Pool,
opts: &PruneOptions,
) -> Result<Vec<PruneReport>, ExecError>Expand description
Walk every registered prunable, deleting matching rows. Honors
PruneOptions::only / except. Returns one PruneReport
per model that actually ran (skipped models produce no entry).
Use prune_pretend for the dry-run variant.
§Errors
Each entry’s prune is awaited sequentially. The FIRST error short-circuits the loop and propagates — every entry up to the failure has already executed (and its rows are deleted); the report Vec contains the successful entries.