Function insert_many

Source
pub fn insert_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

Insert a collection of structs.

Skip fields in struct that are auto generated with #[toql(skip_inup)]. Returns the last generated id