3 ms·
Related note: in the last year I started using SQLite with my Clojure scripts instead of using a remote database, and I'm storing everything in git. Works like
by kimi 8y ago
Related note: in the last year I started using SQLite with my Clojure scripts instead of using a remote database, and I'm storing everything in git. Works like a charm for single-user tasks.
- kozhevnikov 8y agoDo you store the binary .sqlite in Git or source .sql and build the .sqlite?
- bachmeier 8y agoWouldn't tracking the binary with Git make a new copy on every commit?
- aphx 8y agoThe .db file can change, even if the data/records don't. One approach is to dump the sql to text and store that in git. (e.g. https://stackoverflow.com/a/846665 https://stackoverflow.com/a/846665)
- kimi 8y agoI store the binary; it's small. But of course you could use a filter, e.g. https://github.com/DataWraith/gitfilters https://github.com/DataWraith/gitfilters