BotGauge
Freemium
Startups and fast-moving engineering teams
A query runs clean, returns a number, and that number is wrong — revenue double-counted by a bad join, an average where a sum was needed, a patient identifier silently exposed. sqlsure is the static check that catches those errors before the query executes.
sqlsure inspects SQL for semantic violations — fan-out double-counting, additivity errors, wrong join keys, policy breaches — none of which a database engine will flag because the SQL is syntactically valid. It installs via pip, exposes an API, and is licensed Apache-2.0, so it drops into a CI pipeline or a text-to-SQL agent without negotiating with a vendor. The maintainers report finding real bugs in the BIRD and Spider benchmarks, which means the checks are specific enough to catch what polished evaluation suites missed. The tool performs one-shot deterministic checks — it is not an agent and does not plan or self-correct, so the intelligence is in your schema modeling, not the tool's reasoning.
Bottom line: Pull this into your dbt CI gate or text-to-SQL agent to stop silent numeric errors before they reach a dashboard — but if your SQL generation failures are ambiguity problems rather than join-key or additivity problems, sqlsure's deterministic checks will miss them and you will need an LLM-as-judge eval layer instead.
Find your fit
More options in Test Generation. Compare pricing, platforms, and features side by side.
Freemium
Startups and fast-moving engineering teams
Freemium
QA engineers and teams shipping software
Text-to-SQL pipelines fail in a specific, painful way: the generated query is valid SQL, the database executes it without complaint, and the returned number is wrong. sqlsure addresses this by running semantic inspection on a query before execution — checking for fan-out double-counting from incorrect joins, additivity violations where a non-additive measure is being summed, wrong join keys that silently multiply or filter rows, and policy breaches where restricted identifiers appear in output. The workflow is a one-shot check: pass in a query and a schema model, get back a pass or a structured list of violations. No query runs until the check clears.
The differentiating claim — and the one worth stress-testing — is that the vendor found real bugs in the BIRD and Spider text-to-SQL benchmarks using these checks. Those benchmarks are the standard by which text-to-SQL systems are evaluated, so catching issues there suggests the semantic rules are not superficial pattern matching. For teams running NL2SQL agents against production schemas, this positions sqlsure as an eval metric for output quality rather than just a linting pass.
The tool fits tightest in three scenarios: blocking merges in CI when a dbt model change introduces a semantically invalid query, running as a pre-execution guard inside a text-to-SQL agent, and auditing existing dbt repositories for latent semantic issues. Where it breaks: the checks are deterministic and schema-aware, which means violations the tool is not programmed to detect pass through silently. Teams dealing with hallucinated table references, ambiguous business logic, or novel query patterns not covered by the rule set will find the checks necessary but not sufficient — and will add an LLM-based evaluation layer alongside it. The project is early-stage by commit count, so the rule library is not yet broad.
Installation is via pip. The repository includes an API, an integrations directory, and a skills layer suggesting structured extension points for agents. A model.example.json file describes the schema model format the tool expects, which is the artifact teams will spend real time constructing and maintaining for production use. Self-hosting is the only deployment mode — the vendor states no paid or hosted offering.
Sign in to rate this tool or suggest an edit.