Skip to main content

bulk_delete

Function bulk_delete 

Source
pub async fn bulk_delete(
    db: &Db,
    table: &str,
    ids: &[String],
) -> Result<(), Error>
Expand description

DELETE FROM table WHERE "id" IN (?, ?, …). Same parameter-only guarantees as bulk_update. Empty ids → no-op.