News for hackers. Stuff that matters.
Re:What If OpenDocument Used SQLite? by coliveira on Monday September 18, 2023 @09:45AM (#37556037)
But you don't need a standard, because all interaction between applications and the document is made through SQL. And SQL is standardized (at least the parts that matter). If you have concerns about compatibility, make sure that the document can also be accessed through other databases (like mysql).
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...
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

Re:What If OpenDocument Used SQLite? by bane on Monday September 18, 2023 @09:58AM (#37556202)
Re:What If OpenDocument Used SQLite? by orra on Monday September 18, 2023 @02:04PM (#37559658)
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.
Re:What If OpenDocument Used SQLite? by hot_gril on Monday September 18, 2023 @05:20PM (#37562233)
They can if they want to, using the standard SQLite lib or their own implementation.
Re:What If OpenDocument Used SQLite? by marcinzm on Monday September 18, 2023 @01:57PM (#37559557)
>at least the parts that matter

In my experience every part matters in non-trivial use cases since someone somewhere will use that part.