pub async fn insert_many_copy_from_pool(
pool: &PgPool,
jobs: &[InsertParams],
) -> Result<Vec<JobRow>, AwaError>Expand description
Convenience wrapper that acquires a connection from the pool.
Wraps the operation in a transaction so the staging rows are cleaned up at commit time even if the caller does not reuse the connection afterward.