logoalt Hacker News

inigyoutoday at 1:50 PM2 repliesview on HN

At first I thought it was still for a word document to be saved in SQL but then I thought about embedded images and it makes complete sense. Makes more sense for a Publisher/Impress app though as they have more self-contained objects. In Word/Writer the main text is one huge run of characters, how would you sqlize that effectively?


Replies

garbagepatchtoday at 5:47 PM

Current ooxml/odt formats use a zip file with xml files inside (plus other files like images). I'd guess one way would be to store the xml itself as a blob and another to use a json field, which Sqlite stores in a more efficient format called jsonb: https://sqlite.org/json1.html#jsonb

inigyoutoday at 4:24 PM

Typo correction: At first I thought it was silly