# Sqlsure: AI生成SQL的确定性语义检查器

Original title: Show HN: Sqlsure – deterministic semantic checks for AI-generated SQL

> Hacker News story 48875342 · language: zh · submitted 2026-07-11
> Web version: https://zeli.app/zh/story/48875342
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 7 · by [tejusarora](<https://news.ycombinator.com/user?id=tejusarora>) · 💬 0
[original](<https://github.com/sqlsure/sqlsure>) · [HN discussion](<https://news.ycombinator.com/item?id=48875342>)

## Summary

当AI生成的SQL查询看似完美却返回错误数据时，Sqlsure能在执行前0.1毫秒内精准拦截。它利用团队已有的dbt测试或数据库元数据，自动检测扇出重复计数、聚合违规及敏感信息泄露等深层语义错误。不同于传统Lint工具，Sqlsure提供确定性结果与机器可执行的修复建议，支持CI门禁、MCP服务器及AI Agent自修复闭环，已在BIRD和Spider基准测试中成功发现专家编写的真实Bug。

## Key quote

> 我们不只是给出承诺，而是用证据说话：在2568条专家编写的基准查询中，Sqlsure精准标记了45个错误且零误报，甚至发现了BIRD开发集中一个被证明有8倍偏差的金标准答案。

---

## Cite

- Page: https://zeli.app/zh/story/48875342
- Date: 2026-07-11
- Source: github.com (https://github.com/sqlsure/sqlsure)
- Hacker News: https://news.ycombinator.com/item?id=48875342

## Other languages

- en: https://zeli.app/story/48875342 · markdown: https://zeli.app/story/48875342.md
- ja: https://zeli.app/ja/story/48875342 · markdown: https://zeli.app/ja/story/48875342.md
- ko: https://zeli.app/ko/story/48875342 · markdown: https://zeli.app/ko/story/48875342.md
- de: https://zeli.app/de/story/48875342 · markdown: https://zeli.app/de/story/48875342.md
- es: https://zeli.app/es/story/48875342 · markdown: https://zeli.app/es/story/48875342.md
