Skip to content

Set a field to null #151

Answered by kkharji
jghauser asked this question in Q&A
Sep 27, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

Oh that's a tricky use case I did not consider, or might've but overlooked the usage of null as removing something 🤔. I don't think it's possible with high level api. You would need to use sqlite.db methods, like sqlite.db:eval or sqlite.db:execute.

If you can update the whole row, then it might work.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@jghauser
Comment options

Answer selected by jghauser
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants