pub async fn insert_batch(
conn: &mut PgConnection,
events: &[NewCreditRegistrationEvent],
) -> ModelResult<()>Expand description
Appends one event per element, in one statement. The column list is insert’s, so a batch
writes the same rows a loop would.