You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: job.rs
    path of file: ./repos/tabby/ee/tabby-webserver/src/service
    
    the code of the file until where you have to start completion: use async_trait::async_trait;
use juniper::ID;
use tabby_db::DbConn;

use super::{graphql_pagination_to_filter, AsID, AsRowid};
use crate::schema::{
    job::{JobRun, JobService},
    Result,
};

#[async_trait]
impl JobService for DbConn {
    async fn create_job_run(&self, name: String) -> Result<ID> {
        Ok(self.create_job_run(name).await.map(|x| x.as_id())?)
    }

    async fn update_job_stdout(&self, id: &ID, stdout: String) -> Result<()> {
        self.update_job_stdout(id.as_rowid()?, stdout).await?;
        Ok(())
    }

    asy
    
    async fn test_job_service() {
        let svc: Box<dyn JobService> = Box::new(DbConn::new_in_memory().await.unwrap());

        let id = svc.create_job_run("test-job".to_owned()).await.unwrap();
        svc.update_job_stdout(&id, "stdout".to_owned())
            .await
            .unwrap();
        svc.update_job_stderr(&id, "stderr".to_owned())
            .await
            .unwrap();
        svc.complete_job_run(&id, 0).await.unwrap();

        let job = svc
            .list_job_runs(None, None, None, None, None)
            .await
            .unwrap();
        let job = job.first().unwrap();
        assert_eq!(job.job, "test-job");
        assert_eq!(job.stdout, "stdout");
        assert_eq!(job.stderr, "stderr");
        assert_eq!(job.exit_code, Some(0));

        let job = svc
            .list_job_runs(Some(vec![id]), None, None, None, None)
            .await
            .unwrap();
        assert_eq!(job.len(), 1)
    }