QueryDoctor
orders_report.sql PostgreSQL

    Why this isn't another linter

    1. 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.

    2. 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.

    3. 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.

    4. 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.

    Monthly₹99930 days of access
    Annual 2 months free₹9,990365 days of access

    Only the key is checked over the network. In CI your SQL is checked inside your own runner.