Files
reliquary/plugins/orbit/skills/orbit/scripts/sql/hunk-to-defs.sql
T
2026-11-01 17:40:01 +01:00

9 lines
473 B
SQL

-- Innermost definitions covering a changed line range (one hunk). Replace FILE/START/END.
-- Run: orbit sql --repo <tip-worktree> --db <db> -f hunk-to-defs.sql
SELECT definition_type, fqn, start_line, end_line
FROM gl_definition
WHERE file_path = 'crates/dirigent_archivist/src/storage/backup.rs'
AND start_line <= 450 AND end_line >= 438 -- hunk END / START
AND definition_type NOT IN ('Module', 'Field', 'Variant')
ORDER BY end_line - start_line LIMIT 3;