2017-04-01 13:17:04 +02:00
|
|
|
-- name: procs-find-id
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
proc_id
|
|
|
|
,proc_build_id
|
|
|
|
,proc_pid
|
|
|
|
,proc_ppid
|
|
|
|
,proc_pgid
|
|
|
|
,proc_name
|
|
|
|
,proc_state
|
|
|
|
,proc_error
|
|
|
|
,proc_exit_code
|
|
|
|
,proc_started
|
|
|
|
,proc_stopped
|
|
|
|
,proc_machine
|
|
|
|
,proc_platform
|
|
|
|
,proc_environ
|
|
|
|
FROM procs
|
|
|
|
WHERE proc_id = $1
|
|
|
|
|
2017-03-28 11:13:13 +02:00
|
|
|
-- name: procs-find-build
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
proc_id
|
|
|
|
,proc_build_id
|
|
|
|
,proc_pid
|
|
|
|
,proc_ppid
|
|
|
|
,proc_pgid
|
|
|
|
,proc_name
|
|
|
|
,proc_state
|
|
|
|
,proc_error
|
|
|
|
,proc_exit_code
|
|
|
|
,proc_started
|
|
|
|
,proc_stopped
|
|
|
|
,proc_machine
|
|
|
|
,proc_platform
|
|
|
|
,proc_environ
|
|
|
|
FROM procs
|
|
|
|
WHERE proc_build_id = $1
|
2017-05-09 21:20:33 +02:00
|
|
|
ORDER BY proc_pid ASC
|
2017-03-28 11:13:13 +02:00
|
|
|
|
|
|
|
-- name: procs-find-build-pid
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
proc_id
|
|
|
|
,proc_build_id
|
|
|
|
,proc_pid
|
|
|
|
,proc_ppid
|
|
|
|
,proc_pgid
|
|
|
|
,proc_name
|
|
|
|
,proc_state
|
|
|
|
,proc_error
|
|
|
|
,proc_exit_code
|
|
|
|
,proc_started
|
|
|
|
,proc_stopped
|
|
|
|
,proc_machine
|
|
|
|
,proc_platform
|
|
|
|
,proc_environ
|
|
|
|
FROM procs
|
|
|
|
WHERE proc_build_id = $1
|
|
|
|
AND proc_pid = $2
|
|
|
|
|
|
|
|
-- name: procs-find-build-ppid
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
proc_id
|
|
|
|
,proc_build_id
|
|
|
|
,proc_pid
|
|
|
|
,proc_ppid
|
|
|
|
,proc_pgid
|
|
|
|
,proc_name
|
|
|
|
,proc_state
|
|
|
|
,proc_error
|
|
|
|
,proc_exit_code
|
|
|
|
,proc_started
|
|
|
|
,proc_stopped
|
|
|
|
,proc_machine
|
|
|
|
,proc_platform
|
|
|
|
,proc_environ
|
|
|
|
FROM procs
|
|
|
|
WHERE proc_build_id = $1
|
|
|
|
AND proc_ppid = $2
|
|
|
|
AND proc_name = $3
|
2017-04-04 12:50:15 +02:00
|
|
|
|
|
|
|
-- name: procs-delete-build
|
|
|
|
|
|
|
|
DELETE FROM procs WHERE proc_build_id = $1
|