3 ms·
I find the "in 1 file" message confusing. Does it mean sqlite, so just 1 file which is the database?
by ianpurton 2y ago
I find the "in 1 file" message confusing.
Does it mean sqlite, so just 1 file which is the database?
- cess11 2y agoIt means the application compiles down to one binary.
- Retr0id 2y agoI wonder if they're using appendvfs, too https://www.sqlite.org/src/file/ext/misc/appendvfs.c https://www.sqlite.org/src/file/ext/misc/appendvfs.c > This file implements a VFS shim that allows an SQLite database to be appended onto the end of some other file, such as an executable. (A quick search of their codebase reveals no results for "appendvfs", so I guess not. So single-file was a lie!)
- cess11 2y agoI'm no rustacean but to me it looks like start() in https://github.com/trailbaseio/trailbase/blob/main/trailbase-sqlite/src/connection.rs https://github.com/trailbaseio/trailbase/blob/main/trailbase... consumes a file and returns a database connection. If it were to step into the file and seek out an embedded file system I suspect that function would look different.
- notRobot 2y ago"single file" terminology in the context of applications does not typically include the DB. It is common for single file executables to use external config files and DB files.
- radiator 2y agoBut then how should redbean describe itself? There you have the executable plus any configuration files or other files you might possible need zipped inside one single file (and if you need a DB, also one more file for the sqlite database next to it, OK).
- Retr0id 2y agoI'm aware, the same definition was given in the comment I was replying to.