beacon_api.utils.data_query¶
Query DB and prepare data for response.
Functions
fetch_dataset_metadata (db_pool[, datasets, …]) |
Execute query for returning dataset metadata. |
fetch_datasets_access (db_pool, datasets) |
Retrieve CONTROLLED datasets. |
fetch_filtered_dataset (db_pool, assembly_id, …) |
Execute filter datasets. |
filter_exists (include_dataset, datasets) |
Return those datasets responses that the includeDatasetResponses parameter decides. |
find_datasets (db_pool, assembly_id, …) |
Find datasets based on filter parameters. |
handle_wildcard (sequence) |
Construct PostgreSQL friendly wildcard string. |
transform_metadata (record) |
Format the metadata record we got from the database to adhere to the response schema. |
transform_misses (record) |
Format the missed datasets record we got from the database to adhere to the response schema. |
transform_record (record) |
Format the record we got from the database to adhere to the response schema. |