[][src]Function toql_mysql::update_many

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

Update a collection of structs.

Optional fields with value None are not updated. See guide for details. The field that is used as key must be attributed with #[toql(delup_key)]. Returns the number of updated rows.