jakob / Postico

Public issue tracking for Postico

Home Page:https://eggerapps.at/postico/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support CoPilot or GPT interaction

yepher opened this issue · comments

This is a feature request.

I love CoPilot and GPT to help with various development tasks. It would be great if Postico could support CoPilot to help generate SQL commands and understand a given database schema.

The way I see it working is a text entry box in a side panel where user can enter their "prompt". Postico should transparently include the currently open table schema (or content of SQL query if open) as part of the prompt to help GPT answer the question. (Very similar to how VS Code CoPilot chat works.

Here is a screenshot from VS Code to demonstrate what that looks like in case you do not use it yourself:
copilot_chat

In my mind, it would be something like this:

copilot

Thanks for the suggestion!

I can see the appeal for something like Copilot. I don't think it would work particularly well for generating complex SQL queries, but it would be useful as a replacement for looking up syntax that you don't often use. For example, I always have to look up the syntax of GRANT commands in the documentation -- would be nice if I could just ask a chatbot about that.

However, for now this is not something I want to add to Postico. The current state of generative AI is still pretty fluent, everything is constantly changing, and I want to wait for things to settle down a bit before I jump on the bandwagon.

So I'm not saying that I will never add it, but at the moment I want to focus on other things.