Open slackline opened 1 week ago
In this instance the third column is id so I wonder if that is the cause of the problem?
Quite likely. It's been a while since I've looked into the code.
What I would typically do is set an edebug breakpoint and step through the code to see what's happening. In this case, you can set a breakpoint in sqlite-mode-extras-edit-row-field
.
The error you're seeing is a safety measure. You may be able to bypass by removing the check (⚠️ do backup your db ⚠️).
If I can provide any more information please do let me know.
Attaching a failing db makes things easier for me to reproduce.
Thanks, I'm working on a copy of the database so I don't cock things up (I've learnt the hard way in the past!).
I had a go at disabling the check as suggested and that allowed me to edit the two fields I needed to.
Now to carefully switch databases!
I'll see if I can make a reproducible example later and attach it.
Thanks so much for your prompt assistance @xenodium very much appreciated :+1:
Thanks so much for your prompt assistance @xenodium very much appreciated 👍
Glad to hear that helped!
If you find my projects useful, consider making the projects and their maintenance/support sustainable by supporting them.
Hi,
Thanks for writing and sharing this really neat way to work with SQLite3 databases.
Context : I've rename a Git repository but Magit Forge is still using the old name and I can't get Issues/Pull Requests updated so I thought I'd just update the names directly in the
.config/emacs/forge-database.sql
The following is the relevant row from the
repository
table...If I move the cursor to
"SLAMSeq"
and hitRET
the mini-buffer pops up with...I can edit this and it changes to...
Hit
RET
...I edit this again to the desired rename...
Hit
RET
...I see the same behaviour if with cursor on
"SLAMSeq"
I try usingsqlite-mode-extras-edit-row-field
.You mentioned on Mastodon that this should read
First column should be id
and have fixed that but needed more context on the schema so I thought adding it here would be appropriate.In this instance the third column is
id
so I wonder if that is the cause of the problem?If I can provide any more information please do let me know.