Re:What If OpenDocument Used SQLite?
by orra on Monday September 18, 2023 @09:48AM
(#37556073)
But other databases cannot access sqlite databases, because the file format is internal...
[ Parent
| on HN ]
SQL file format is very well documented. In some universities it is an assignment to directly read and write sqllite files from disk and understand the paged and blocks structure.
You don’t need sql for any of it.
> In some universities it is an assignment to directly read and write sqllite files from disk and understand the paged and blocks structure.
do you have any links?
It's interesting that this is a classroom assignment, like the sibling comment, I'd curious which university / class this was. I did the read part (+ query planning) on my own as an exercise, but I haven't gotten around to implementing writing yet.
You do need to parse DDL to get the column names, they're stored as a "CREATE TABLE" string. But you don't have to if you want to dump the file without names.
I'll admit, that's a fantastic third party effort. But there definitely isn't the same level of first party support as there is for zip files.