SQLite as an Application File Format
31–40 of 108 posts
Re: SQLite as an Application File Format
#32Bit unrelated rant but I'm still not sure why ZIP has been adopted as an Application File Format rather than anything else. It is a remanent of a DOS era with questionable choices, why would you pick it over anything else?
- archiver format to stow multiple files in one; your actual files (in your choice of format(s)) go inside - files can be individually extracted, in any order, from the archive - thousands of implementations available, in every language and every architecture. no more than 32KiB RAM needed for decompression - absolutely no possibility of patent challenges
Any multi-file archive format would do, but ZIP is very portable and random access.
Re: SQLite as an Application File Format
#33Somehow my first thought from the title was using sqlite as a format for applications. So like a replacement for ELF. I think this idea is both fascinating and horrifying.
Re: SQLite as an Application File Format
#34Earlier quoted context omitted.
I think most format use "gzip" instead of "zip".
gzip is not an archive container. You're thinking of .tar.gz which is a "tape archive" format which is compressed using gzip. Zip is by itself both a compression and an archive format, and is what documents like epub or docx use
Re: SQLite as an Application File Format
#35Somehow my first thought from the title was using sqlite as a format for applications. So like a replacement for ELF. I think this idea is both fascinating and horrifying.
wonder if this would make hot-swap functions easier, if every function had its own section and every section was in the db
Re: SQLite as an Application File Format
#36Bit unrelated rant but I'm still not sure why ZIP has been adopted as an Application File Format rather than anything else. It is a remanent of a DOS era with questionable choices, why would you pick it over anything else?
If you don't need any table/relational data and are always happy to rewrite the entire file on every save, ZIP is a perfectly fine choice.
It's easier than e.g. a SQLite file with a bunch of individually gzipped blobs.
Re: SQLite as an Application File Format
#37Re: SQLite as an Application File Format
#38Re: SQLite as an Application File Format
#39Something to consider when using SQLite as a file format is compression (correct me if I'm wrong!). You might end up with a large file unless you consider this, and can't/won't just gz the entire db. Nothing is compressed by default.
Re: SQLite as an Application File Format
#40Also, another usecase is to export data from production to uat for testing some scenarios, it can be easily encoded in a sqlite file.