2017-03-28 11:13:13 +02:00
|
|
|
-- name: files-find-build
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
file_id
|
|
|
|
,file_build_id
|
|
|
|
,file_proc_id
|
2017-07-27 19:06:24 +02:00
|
|
|
,file_pid
|
2017-03-28 11:13:13 +02:00
|
|
|
,file_name
|
|
|
|
,file_mime
|
|
|
|
,file_size
|
|
|
|
,file_time
|
2017-08-02 22:04:00 +02:00
|
|
|
,file_meta_passed
|
|
|
|
,file_meta_failed
|
|
|
|
,file_meta_skipped
|
2017-03-28 11:13:13 +02:00
|
|
|
FROM files
|
|
|
|
WHERE file_build_id = $1
|
|
|
|
|
|
|
|
-- name: files-find-proc-name
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
file_id
|
|
|
|
,file_build_id
|
|
|
|
,file_proc_id
|
2017-07-27 19:06:24 +02:00
|
|
|
,file_pid
|
2017-03-28 11:13:13 +02:00
|
|
|
,file_name
|
|
|
|
,file_mime
|
|
|
|
,file_size
|
|
|
|
,file_time
|
2017-08-02 22:04:00 +02:00
|
|
|
,file_meta_passed
|
|
|
|
,file_meta_failed
|
|
|
|
,file_meta_skipped
|
2017-03-28 11:13:13 +02:00
|
|
|
FROM files
|
|
|
|
WHERE file_proc_id = $1
|
|
|
|
AND file_name = $2
|
|
|
|
|
|
|
|
-- name: files-find-proc-name-data
|
|
|
|
|
|
|
|
SELECT
|
|
|
|
file_id
|
|
|
|
,file_build_id
|
|
|
|
,file_proc_id
|
2017-07-27 19:06:24 +02:00
|
|
|
,file_pid
|
2017-03-28 11:13:13 +02:00
|
|
|
,file_name
|
|
|
|
,file_mime
|
|
|
|
,file_size
|
|
|
|
,file_time
|
2017-08-02 22:04:00 +02:00
|
|
|
,file_meta_passed
|
|
|
|
,file_meta_failed
|
|
|
|
,file_meta_skipped
|
2017-03-28 11:13:13 +02:00
|
|
|
,file_data
|
|
|
|
FROM files
|
|
|
|
WHERE file_proc_id = $1
|
|
|
|
AND file_name = $2
|
2017-04-04 12:50:15 +02:00
|
|
|
|
|
|
|
-- name: files-delete-build
|
|
|
|
|
|
|
|
DELETE FROM files WHERE file_build_id = $1
|