by otabdeveloper4 · 5y ago · 0 comments
(E.g., lack of a standard is why alternative Python implementations never went anywhere, even though the original cPython is, frankly, dreck from a software quality point of view.)
It's not even that exotic: a bunch of rows in a simple binary format stored in a btree. The rollback journal / WAL are trickier, but aren't strictly necessary.
Implementing arbitrary SQL queries on top of the file format is obviously _much_ harder.
Here's an example project doing this-- a pure Go sqlite reader: https://github.com/alicebob/sqlittle
Would it be as robust? Absolutely not, unless all the OS interaction code were transcribed directly.
But Rust has no compiler that targets anywhere near the number of platforms SQLite is deployed on, and never will. The best that could be hoped for is that most such platforms would no longer be used, by the time the transcription is done.