summaryrefslogtreecommitdiff
path: root/src/sql.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sql.rs')
-rw-r--r--src/sql.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/sql.rs b/src/sql.rs
index 2096e9d..2620a58 100644
--- a/src/sql.rs
+++ b/src/sql.rs
@@ -100,6 +100,9 @@ pub const PENDING_JOBS: &'static str = "\
pub const LAST_ARTIFACTS_FOR_JOB: &'static str = "\
select * from artifacts where job_id=?1 and (name like \"%(stderr)%\" or name like \"%(stdout)%\") order by id desc limit ?2;";
+pub const JOB_BY_COMMIT_ID: &'static str = "\
+ select * from jobs where commit_id=?1;";
+
pub const ARTIFACT_BY_ID: &'static str = "\
select * from artifacts where id=?1 and job_id=?2;";