Running ChatGPT queries on Postgres
The extension works with the chatGPT website. When a ChatGPT user asks about SQL, ChatGPT will generate SQL code as a response. The extension looks for SQL code blocks generated in the in the HTML of a ChatGPT conversation and adds a "Run SQL" button element below it. The user can press the "Run SQL" to test the SQL generated by ChatGPT on a real database.
When a user presses the "Run SQL", the extension sends an HTTP request to the API, that will run the query, then send the result.