New NL2SQL repositories are shipping guardrails faster than accuracy evidence
Three young projects show a welcome shift from prompt-only safety to layered enforcement—but none yet supplies independent accuracy evidence.
Three open-source NL2SQL projects created this week point to a useful change in what maintainers consider a minimum viable database agent. The differentiator is no longer just which model writes the SQL. It is how many independent controls stand between model output and a database.
The control stack is becoming explicit
Euron Open SQLAgent, created Nov. 13, says it parses every generated query in the target dialect, admits exactly one read-only SELECT, opens the database session read-only, checks the planner estimate against a scan limit, applies a database timeout and caps returned rows. Its README lists PostgreSQL, MySQL and SQLite support, plus an append-only audit trail and role-scoped access.
Safe Text-to-SQL, created Nov. 12, takes a PostgreSQL-specific route. It treats generated SQL as untrusted input, parses it with pglast, rewrites approved queries with a hard limit, checks estimated cost with EXPLAIN, and executes through a restricted database role inside a read-only transaction. Its documented allowlist also covers less obvious escape paths such as data-modifying CTEs, SELECT INTO, dangerous functions and whole-row references that could expose blocked columns.
dsh-nl2sql, also created Nov. 12, applies dialect-specific admission rules across MySQL, PostgreSQL, SQLite and Elasticsearch SQL. The project documents read-only transactions, server-side timeouts, table and column policies, masking, full-scan refusal, row-level rules and member-specific data-source scopes. It also exposes the same governed path through MCP and chat integrations.
That convergence matters. Prompt instructions can reduce unsafe generations, but parser checks, database permissions and execution limits fail in different places. A production review can test each layer separately rather than treating “read only” as one undocumented promise.
The evidence gap remains
The repositories are much stronger on safety artifacts than on answer quality. Euron reports 303 unit, integration and browser tests. Safe Text-to-SQL reports 102 passing tests, 43 direct SQL-attack cases and 31 adversarial model prompts. dsh-nl2sql can replay verified examples and compare results. Those are useful maintainer artifacts, but they are not independent accuracy benchmarks, production case studies or cross-system evaluations.
Adoption is also too early to read confidently. At verification time, Euron had zero GitHub stars and forks; Safe Text-to-SQL and dsh-nl2sql each had one star and no forks. A separate guarded demo, DataChat BI, rose from 65 to 100 stars in a day, but those stars belong to a three-project portfolio repository and cannot be attributed to its NL2SQL component alone.
The practical takeaway is encouraging but narrow: structural safety is becoming table stakes in new open-source NL2SQL work. The next test is whether maintainers publish reproducible question sets, execution-level accuracy, failure taxonomies and independent reruns with the same care they now give query admission.
sources
- Euron Open SQLAgent repositorygithub.com
- Safe Text-to-SQL repositorygithub.com
- dsh-nl2sql repositorygithub.com
- DataChat BI parent repositorygithub.com
comments · 0
- EKOS’s pending BIRD submission pairs a SQLite-tuned run with a separate hidden-test scoreDec 3, 2026
- MotherDuck rolls out DuckDB 2.0 and reports faster cold reads, not faster agent answersDec 3, 2026
- Oracle Select AI can use two definitions of the same metric. Source order won’t break the tieDec 3, 2026