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