зеркало из https://github.com/mozilla/treeherder.git
95 строки
2.9 KiB
JSON
95 строки
2.9 KiB
JSON
{
|
|
"selects": {
|
|
"get_jobs_for_cycling": {
|
|
|
|
"sql": "SELECT id FROM `job` WHERE `result_set_id` IN (
|
|
SELECT id FROM result_set WHERE push_timestamp >= ?
|
|
)",
|
|
"host": "master_host"
|
|
},
|
|
"get_result_set_jobs":{
|
|
|
|
"sql":"SELECT j.id, j.job_guid
|
|
FROM result_set AS r
|
|
INNER JOIN job AS j
|
|
ON r.id = j.result_set_id
|
|
WHERE r.id = ?",
|
|
|
|
"host": "master_host"
|
|
},
|
|
"job": {
|
|
"sql": "SELECT * FROM `job` WHERE id = ?",
|
|
"host": "master_host"
|
|
},
|
|
"jobs": {
|
|
"sql": "SELECT * FROM `job`",
|
|
"host": "master_host"
|
|
},
|
|
"job_artifact": {
|
|
"sql": "SELECT * FROM `job_artifact` WHERE job_id = ?",
|
|
"host": "master_host"
|
|
},
|
|
"job_log_urls": {
|
|
"sql": "SELECT * FROM `job_log_url` WHERE job_id = ?",
|
|
"host": "master_host"
|
|
},
|
|
"job_source": {
|
|
"sql": "SELECT rev.commit_timestamp,
|
|
res.push_timestamp,
|
|
rev.comments,
|
|
rev.repository_id,
|
|
rev.revision
|
|
FROM `revision` as rev
|
|
LEFT JOIN `revision_map` as revmap
|
|
ON rev.id = revmap.revision_id
|
|
LEFT JOIN `result_set` as res
|
|
ON revmap.result_set_id = res.id
|
|
LEFT JOIN `job`
|
|
ON job.result_set_id = res.id
|
|
WHERE job.id = ?
|
|
",
|
|
"host": "master_host"
|
|
},
|
|
"row_by_guid": {
|
|
"sql": "SELECT * FROM `job` WHERE `job_guid` = ?",
|
|
"host": "master_host"
|
|
},
|
|
"resultset_by_rev_hash": {
|
|
"sql": "SELECT * FROM `result_set` WHERE `revision_hash` = ?",
|
|
"host": "master_host"
|
|
},
|
|
"revision_ids": {
|
|
"sql": "SELECT `id`, `revision` FROM `revision`",
|
|
"host": "master_host"
|
|
},
|
|
"revision_map": {
|
|
"sql": "SELECT * FROM `revision_map`",
|
|
"host": "master_host"
|
|
},
|
|
"result_set_ids": {
|
|
"sql": "SELECT `id`, `push_timestamp`, `revision_hash` FROM `result_set`",
|
|
"host": "master_host"
|
|
}
|
|
},
|
|
"updates": {
|
|
"set_state_any":{
|
|
|
|
"sql":"UPDATE `job`
|
|
SET `state` = ?
|
|
WHERE `id` = ?",
|
|
|
|
"host":"master_host"
|
|
},
|
|
"set_result_sets_push_timestamp":{
|
|
"sql":"UPDATE `result_set` SET `push_timestamp` = ?",
|
|
|
|
"host":"master_host"
|
|
},
|
|
"set_one_result_set_push_timestamp":{
|
|
"sql":"UPDATE `result_set` SET `push_timestamp` = ? WHERE id = 1",
|
|
|
|
"host":"master_host"
|
|
}
|
|
}
|
|
}
|