Skip to main content

insert_many

Function insert_many 

Source
pub async fn insert_many<'e, E>(
    executor: E,
    jobs: &[InsertParams],
) -> Result<Vec<JobRow>, AwaError>
where E: PgExecutor<'e>,
Expand description

Insert multiple jobs in a single statement.

Supports uniqueness constraints — jobs with unique opts will have their unique_key and unique_states computed and included.