Live data from Hacker News

Prompt2Query – talk to your PostgreSQL database in plain English

github.com

1–2 of 2 posts

Re: Prompt2Query – talk to your PostgreSQL database in plain English

#2
I built a small command-line tool that lets you query a PostgreSQL database using natural language instead of SQL.

It's nothing revolutionary - just a simple CLI wrapper around the OpenAI API with PostgreSQL integration, but it's been incredibly useful for my own work. The code analyzes your database schema to provide context to the LLM, which helps generate more accurate queries.