4 ms·
I have a small blog (using Ghost) that uses sqlite as the main database and it's incredibly easy to maintain. It's just a single file. For example if you want t
by throwaway_bad 7y ago
I have a small blog (using Ghost) that uses sqlite as the main database and it's incredibly easy to maintain. It's just a single file. For example if you want to back up, you just copy the file or add it to git. If you want to do a diff you just do sqldiff on two files. It is as easy as working with json or csv files, except with atomic writes and better querying.
From their site: https://www.sqlite.org/whentouse.html https://www.sqlite.org/whentouse.html
>SQLite does not compete with client/server databases. SQLite competes with fopen().
- majewsky 7y ago> For example if you want to back up, you just copy the file or add it to git. If you want to do a diff you just do sqldiff on two files. With Postgres, you run pg_dump on the database (which is a shell one-liner, only with slightly more arguments than cp) and that's even better for putting into git because it's a text file that git can diff natively and store efficiently with delta compression.