pub async fn complete_with_transaction(
        &mut self,
        mut tx: sqlx::Transaction<'_, Postgres>,
    ) -> Result<(), sqlx::Error> {
        self.delete(&mut tx).await?;
        tx.commit().await?;
        self.stop_keep_alive().await;
        Ok(())
    }
/// Complete this job and commit the provided transaction at the same time.
/// If the transaction cannot be committed, the job will not be completed.
Complete this job and commit the provided transaction at the same time.
If the transaction cannot be committed, the job will not be completed.
Complete this job and commit the provided transaction at the same time . If the transaction cannot be committed the job will not be completed .
pub async fn complete_with_transaction(
        &mut self,
        mut tx: sqlx::Transaction<'_, Postgres>,
    ) -> Result<(), sqlx::Error> {
        self.delete(&mut tx).await?;
        tx.commit().await?;
        self.stop_keep_alive().await;
        Ok(())
    }
pub async fn complete_with_transaction ( & mut self , mut tx : sqlx :: Transaction < ' _ , Postgres > , ) -> Result < ( ) , sqlx :: Error > { self . delete ( & mut tx ) . await ? ; tx . commit ( ) . await ? ; self . stop_keep_alive ( ) . await ; Ok ( ( ) ) }
Complete this job and commit the provided transaction at the same time.
Complete this job and commit the provided transaction at the same time .
&mut self
tx
sqlx::Transaction<'_, Postgres>
&mut self
tx
sqlx::Transaction<'_, Postgres>