News for hackers. Stuff that matters.
Re:What If OpenDocument Used SQLite? by nojvek on Monday September 18, 2023 @10:08AM (#37556314)
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.

https://www.sqlite.org/fileformat.html

Re:What If OpenDocument Used SQLite? by avinassh on Monday September 18, 2023 @01:22PM (#37559099)
> 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?

Re:What If OpenDocument Used SQLite? by dunham on Monday September 18, 2023 @02:10PM (#37559752)
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.

https://github.com/dunhamsteve/sqljs