Sorry for the bad title
I have an Electron app that is powered by rust where the user can create/open her “projects” which right now is just folders which has an SQL lite database, some json files and attachments.
Now I would like to save these projects under a new extension, as a single file instead of folders similar to how you would open say a PowerPoint file.
My initial thought was to zip the project directory and basically create a zip file with the data and just rename it to a new extension.
Anyone has similar experiences? Any common gotchas? I’m a bit afraid of latency because the SQLite file would be called a lot (on pretty much every user click) but that could perhaps be compared by storing it as a zip but without actual compression (to make it faster to read). It would still need to scan the zip file and get the underlying SQLite though.
Does that makes sense at all? Should I do something completely different?