-
-
Notifications
You must be signed in to change notification settings - Fork 1
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
Add a --write
option that enables insert/update/etc
#6
Comments
I don't think this is as simple as just enabling a non-read-only connection and telling the model it can run insert/update/etc. If it was I could do that mostly here and in an alternative system prompt: sqlite-utils-ask/sqlite_utils_ask.py Lines 126 to 132 in 91277ee
But I need to consider a few other things:
|
Honestly write support feels to me like it makes more sense in a bit of a ChatGPT Code Interpreter style chat loop as opposed to a single CLI invocation. |
I put together an initial prototype. Here's a transcript (after I first got it to drop the
That Still needs a bunch more thought. |
The code that loops through multiple |
This could default to showing the SQL it's going to run and asking for confirmation.
A
-y/--yes
option could skip that confirmation step for people who are super confident.The text was updated successfully, but these errors were encountered: