| SQLite should have (Rust-style) editions(mort.coffee) | |
| 302 points by gnyeki 13 hours ago | 135 comments | |
tl;dr: SQLite ships with several problematic defaults: foreign key constraints are ignored, columns don't enforce their declared types, concurrent writers immediately get SQLITE_BUSY errors instead of waiting, and performance-critical settings like WAL mode are off. The author proposes borrowing Rust's edition system: a single `PRAGMA edition = 2026` would opt into a modern set of sane defaults (strict tables, foreign keys, busy timeout, WAL) without breaking backwards compatibility for existing databases. | |
HN Discussion:
| |