Gi

GitHub Copilot for SQL

Hacker News

GitHub Copilot for SQL

Copilot has proven quite handy as a "smarter Intellisense" tool for me. It often accurately predicts the arguments I need for functions, including their types. Occasionally, when I start typing `a.map(`, it automatically fills in the transformation code I intended to write. The key enabler is the ability to ignore most suggestion. They don't get in my way. The simpler the task I'm working on, the higher the likelihood it gets it right. This is where I get the most benefit from Copilot, as I already understand what I'm coding, why I'm coding it, and how it should appear. Copilot sometimes saves me the 5-30 seconds it would take to write it manually. Over the course of a day, these saved moments add up. But I always found myself turning to ChatGPT for help writing SQL. I would 1) run a query to get the schema. 2) Feed schema to ChatGPT. 3) Ask GPT to write my query. 4) Paste query into client. Solid results, but the workflow was not great with lots of copy and paste and multiple apps. I work at Hoopdev, an infrastructure access gateway and we happen to have a build-in web client. Therefore our language server has a REST API that we could hook to GPT4. But our first attempt failed. We tried the Ask AI box UX, which only solved half the problem: providing the schema as context. Not getting the way was still missing. The bad suggestions required another prompt to get fixed. Therefore we went on to build the copilot experience [0], but the opposite of Github copilot happened: most suggestions are good. This is because the only context for writing SQL is the database schema and what you want to do, all the model has to do is translate your english query to another language (SQL) using a small context (schema), as opposed to full codebases. Hoopdev's client is web-based, because of that you can try it in 15 seconds. After signing up you get a demo Postgres ready to be queried in the web [1]. If you don't wanna sign up, run it yourself and use your own OpenAI keys [2]. Please let me know what you think. any feedback is welcome. Is this helpful? Do you know/use a better alternative for SQL? 0. https://hoop.dev/blog/introducing-an-ai-powered-query-builde... 1. https://hoop.dev/start 2. https://hoop.dev/docs/deploy/AWS

Share card

Actual performance

7points
3comments
Made the leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: model, apps, context · Missing: mac, agents, macos
96%96% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Strong signals: including · Missing: supports, reddit linkedin, podcasting
75%75% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: io, including · Missing: https docs, excited, just released
60%60% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: apps, way · Missing: mobile apps, ios, personal
33%33% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Strong signals: occasional · Missing: plus, platform, intuitive
28%28% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat, smart · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Gi
GitHub Copilot in JupyterLab47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GitHub Copilot in JupyterLab

Hacker News2
Vox
Vox79%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Voice in, voice out — with GitHub Copilot

Product Hunt+154Developer Tools
Le
Level Up Coding – Flying with GitHub Copilot59%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Level Up Coding – Flying with GitHub Copilot

Hacker News1
Gi
GitHub Copilot Is Helping Me Learn RxJS52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GitHub Copilot Is Helping Me Learn RxJS

Hacker News1
Bu
Built JSONLogic in Rust in 5hrs with GitHub Copilot as pair programmer47%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Built JSONLogic in Rust in 5hrs with GitHub Copilot as pair programmer

Hacker News1
Ca
Captain Stack – a parody version GitHub Copilot52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Captain Stack – a parody version GitHub Copilot

Hacker News49
Py
Python Pandas and Excel and GitHub Copilot64%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Python Pandas and Excel and GitHub Copilot

Hacker News1
Th
The No-AI 3-Clause License (explicitly prohibits, e.g., GitHub Copilot)44%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

The No-AI 3-Clause License (explicitly prohibits, e.g., GitHub Copilot)

Hacker News2
Fr
Free GitHub Copilot CLI with your own model or API51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Free GitHub Copilot CLI with your own model or API

Hacker News5
Gi
GitHub Copilot Can Help with Shell Scripting55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

GitHub Copilot Can Help with Shell Scripting

Hacker News5