[−][src]Function toql_mysql::insert_many
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>,
Insert a collection of structs.
Skip fields in struct that are auto generated with #[toql(skip_inup)]
.
Returns the last generated id