Skip to main content

insert_batch

Function insert_batch 

Source
pub async fn insert_batch(
    conn: &mut PgConnection,
    ids: &[Uuid],
    news: &[NewStudentNumberVerificationToken],
) -> ModelResult<()>
Expand description

Batch form of insert: mints one token per row in a single INSERT, at the caller-chosen ids, in order. Each row still gets its own random plaintext token.