←back to thread

115 points graderjs | 1 comments | | HN request time: 0.216s | source
Show context
codenesium ◴[] No.25004913[source]
Is sqlite not diffable?
replies(3): >>25005043 #>>25005217 #>>25005391 #
Jakob ◴[] No.25005217[source]
I would export the DB and use that for your diff/version control:

  sqlite3 yourdb.sqlite .dump
If you really want to track the binary e.g. inside git, but still see textual diffs you would put that into your .gitconfig:

  [diff "sqlite3"]
    textconv = sqlite3 $1 .dump
replies(1): >>25005630 #
1. djeiasbsbo ◴[] No.25005630[source]
To expand on this, you can now even export to markdown and basically have a nice overview of the database. I use this in my notes which are all written in markdown because markdown tables are painful to organise per hand.