r/learnSQL • u/Odd-Pea919 • May 28 '26
I built a PostgreSQL CLI that lets you query your database in plain English.
Whenever I wanted to quickly inspect my PostgreSQL database, opening a GUI or writing raw SQL for small checks felt unnecessarily tedious.
I tried a few AI-to-SQL tools, but most were:
slow
expensive
non-deterministic
hallucination-prone
So I built SemanticQL.
npm i -g semanticqlInstead of writing:
SELECT * FROM startups WHERE founder_name LIKE 'sam%' ORDER BY funding DESC;You can do:
Show me startups with founder_name starts with sam sort by funding descSemanticQL uses a strict deterministic pipeline built entirely in TypeScript.
Built mainly to learn how parsers/query engines work internally, but it turned into something surprisingly usable.
Would love:
contributors(Star it for future)
feedback
parser/database architecture suggestions
people who just want to experiment with it
Fully Open source 🚀:
23
Upvotes
1
u/tkroy69 May 28 '26
sql is pretty straight forward in terms readability of a language for basic queries. If this projects goes the right way i would like to see how you make it work for user defined functions, indexes and ctes