|
|
|
|
|
by TheCapeGreek
799 days ago
|
|
>most SQL will carry over between SQLite and Postgres and MySQL, especially if you add ORMs in the mix I think this goes underappreciated, or rather the opposite is overstated. Sure there are some edge cases that don't work the same, but most apps won't hit those. My _biggest_ gripe with SQLite so far is the lack of column reordering like other DBs. And my simplistic understanding is that the others do it exactly the same way as you'd do it manually with SQLite - table gets _replaced_ with an identical table with the data correctly ordered and the data is shoved into the new table. |
|
The same command can handle many other operations such as changing column types, renaming columns or assigning a new primary key.
https://sqlite-utils.datasette.io/en/stable/cli.html#transfo...