News for hackers. Stuff that matters.
Re:Siren Call of SQLite on the Server by sgbeal on Tuesday February 18, 2025 @08:41AM (#43089323)
> What's difficult about schema migration? Not being snarky, genuinely curious :)

SQLite's ALTER TABLE support isn't on par with other dbs. That's primarily (perhaps solely) because it stores table definitions as their raw SQL, rather than in some "idealized form." When SQLite first needs to understand a table's structure, it reads the original SQL which was used to create that table. Retroactively modifying arbitrary string input from the user (in this case SQL code) is a minefield.

Edit: see <https://www.sqlite.org/lang_altertable.html> in particular the final section, currently titled "Why ALTER TABLE is such a problem for SQLite"

Re:Siren Call of SQLite on the Server by cloogshicer on Tuesday February 18, 2025 @10:16AM (#43090461)
Interesting, thanks for sharing! This sounds like a nightmare haha

What kinds of problems does this cause in practice? Do you have any examples? Not questioning you, just curious to learn more.

Re:Siren Call of SQLite on the Server by sgbeal on Monday February 24, 2025 @10:21PM (#43167752)
> Do you have any examples?

Not personally, because i've never been affected by it, but it's a topic now and again in the SQLite forum (where i'm a daily visitor).