-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- SET search_path TO local_ega_download; | ||
|
||
-- Used by EBI | ||
CREATE VIEW local_ega_download.ebi_files AS | ||
SELECT stable_id AS file_id, | ||
CASE | ||
WHEN (vault_file_type = 'S3') THEN 's3://' | ||
ELSE 'file://' -- enum: if not s3, then it's POSIX | ||
END || vault_file_reference AS file_name, | ||
vault_file_size AS file_size, | ||
header AS header, | ||
vault_file_checksum AS unencrypted_checksum, | ||
vault_file_checksum_type AS unencrypted_checksum_type | ||
FROM local_ega.main | ||
WHERE status = 'READY'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters