Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On SQL query page do something useful if the query has an error #4

Open
simonw opened this issue Mar 28, 2024 · 1 comment
Open

On SQL query page do something useful if the query has an error #4

simonw opened this issue Mar 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@simonw
Copy link
Contributor

simonw commented Mar 28, 2024

This would likely have to be a pure JavaScript feature. Any time we display an error on that page e.g. https://datasette.io/content?sql=select+*+from+assts we could provide a button for "Help from the AI assistant" which runs a prompt with the SQL and the error to try and suggest a fix.

CleanShot 2024-03-27 at 22 31 46@2x

@simonw simonw added the enhancement New feature or request label Mar 28, 2024
@simonw
Copy link
Contributor Author

simonw commented Mar 28, 2024

This could include quite a bit of prose, and every ```sql...``` block could have a little "try this" button that copies the SQL out into the textarea and submits the form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant