r/developersIndia • u/authordisguise • 15d 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.
•
u/AutoModerator 15d ago
It's possible your query is not unique, use
site:reddit.com/r/developersindia KEYWORDSon search engines to search posts from developersIndia. You can also use reddit search directly.I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/AutoModerator 15d ago
Thanks for sharing something that you have built with the community. We recommend participating and sharing about your projects on our monthly Showcase Sunday Mega-threads. Keep an eye out on our events calendar to see when is the next mega-thread scheduled.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.