Function delete_many

Source
pub fn delete_many<'a, I, T>(
    entities: I,
    conn: &mut Conn,
) -> Result<u64, ToqlError>
where I: Iterator<Item = &'a T> + 'a, T: 'a + Indelup<'a, T>,
Expand description

Delete a collection of structs.

The field that is used as key must be attributed with #[toql(delup_key)]. Returns the number of deleted rows.