← all repositories

cloudquery/pg_gpt

A PostgreSQL extension that uses OpenAI's GPT API to generate SQL queries from natural language input.

pg_gpt
Velocity · 7d
+0.4
★ / day
Trend
steady
star history

This experimental PostgreSQL extension integrates OpenAI’s GPT models to enable querying databases using plain English. The extension sends the database schema (without actual data) to GPT, which then generates appropriate SQL based on user queries. It provides two functions: gpt(text) for full-schema queries and gpt_tables(pattern, text) for targeted queries against specific tables. The extension requires pgx for building and is marked experimental with warnings against production use due to schema transmission to OpenAI.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.