Silence a reviewed finding with -- noqa: QD004, or a bare -- noqa, in your SQL.
Can't compare yet
Functionally identical
These two queries have the same structure. No meaningful differences found.
Too complex for a detailed diff
CTEs, several statements or non-SELECT queries aren't broken down clause by clause yet. Slide between them to compare by eye.
What changed
Why this isn't another linter
It proves its rewrites
Most optimizers hand you a faster query and let production find out whether it returns the same rows. QueryDoctor runs both against generated data first, and drops any rewrite that disagrees.
No AI, no invented answers
Every finding comes from walking the parsed syntax tree, not from a model guessing. The same query always gets the same verdict, so it's safe to block a merge on it.
It says "I don't know"
Where it can't be sure, like CTEs in Compare or guessing your dialect, it tells you it's out of scope instead of asserting something plausible and wrong.
Only the safe fixes
Apply safe fixes is limited to rewrites that provably can't change your results. Anything that takes judgement stays a suggestion for you.
For teams
Block merges in CI, not just comment
The GitHub Action is free forever for PR comments. An API key also unlocks fail-on-severity, which actually blocks the merge.
Only the key is checked over the network. In CI your SQL is checked inside your own runner.
Copy this now. It will never be shown again. We don't keep it in a form we can show or recover later.
Payment verified. Add it as a repo secret and pass it to the Action as api-key.