woodpecker/store/datastore/sql/mysql/files/files.sql

58 lines
790 B
MySQL
Raw Normal View History

2017-07-15 16:51:02 +00:00
-- name: files-find-build
SELECT
file_id
,file_build_id
,file_proc_id
2017-07-27 17:06:24 +00:00
,file_pid
2017-07-15 16:51:02 +00:00
,file_name
,file_mime
,file_size
,file_time
2017-08-02 20:04:00 +00:00
,file_meta_passed
,file_meta_failed
,file_meta_skipped
2017-07-15 16:51:02 +00:00
FROM files
WHERE file_build_id = ?
-- name: files-find-proc-name
SELECT
file_id
,file_build_id
,file_proc_id
2017-07-27 17:06:24 +00:00
,file_pid
2017-07-15 16:51:02 +00:00
,file_name
,file_mime
,file_size
,file_time
2017-08-02 20:04:00 +00:00
,file_meta_passed
,file_meta_failed
,file_meta_skipped
2017-07-15 16:51:02 +00:00
FROM files
WHERE file_proc_id = ?
AND file_name = ?
-- name: files-find-proc-name-data
SELECT
file_id
,file_build_id
,file_proc_id
2017-07-27 17:06:24 +00:00
,file_pid
2017-07-15 16:51:02 +00:00
,file_name
,file_mime
,file_size
,file_time
2017-08-02 20:04:00 +00:00
,file_meta_passed
,file_meta_failed
,file_meta_skipped
2017-07-15 16:51:02 +00:00
,file_data
FROM files
WHERE file_proc_id = ?
AND file_name = ?
-- name: files-delete-build
DELETE FROM files WHERE file_build_id = ?