components
Schema reference for the components and components_latest SQL views — time series of tracked components with merged collector metadata per commit.
Last updated
SELECT *
FROM components_latest
WHERE component_id = 'github.com/foo/bar/buz'
AND pr IS NULL;SELECT timestamp,
component_json->'codecov'->'report'->'result'->'coverage'->>'total' AS coverage
FROM components
WHERE component_id = 'github.com/foo/bar/buz'
AND pr IS NULL
AND jsonb_path_exists(component_json, '$.codecov.report.result.coverage.total')
ORDER BY timestamp ASC;SELECT component_json->'go'->>'version' AS go_version,
COUNT(*) AS count
FROM components_latest
WHERE jsonb_path_exists(component_json, '$.go.version')
AND (domain = 'analytics' OR domain LIKE 'analytics.%')
AND pr IS NULL
GROUP BY go_version
ORDER BY count DESC;