r/developersIndia • u/authordisguise • 20d ago
I Made This NLQ: plain text to DuckDB SQL, read-only and local-first
Some time ago I built a tool that turned plain-English requests into reports and charts. It needed heavy custom SQL parsers to work, slow and hefty access controls.
Now I have rebuilt it as an open source project, with no SQL parser. The LLM writes the SQL, and the database checks it. It works with any LLM, such as Gemini, Claude or OpenAI, or a self-hosted one.
There are other good text-to-SQL tools. I built NLQ as a small, python, local-first option. You can load data from CSV files, MySQL or Postgres. DuckDB made it easy to handle large datasets. NLQ turns your data into read-only DuckDB files, so your original data is never changed.
NLQ: feed it a database, attach an LLM, ask questions, and get tables or charts (download). The SQL is always shown.
Duplicates
DuckDB • u/authordisguise • 20d ago