[][src]Function toql_mysql::delete_many

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>, 

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.