News for hackers. Stuff that matters.
Re:SQLite Is Serverless by cma on Sunday January 26, 2020 @01:25PM (#22153685)
SQLite is a whole library with complicated locking protocol options etc. and works with multiple files of different formats (e.g. separate transaction log).
Re:SQLite Is Serverless by bane on Sunday January 26, 2020 @01:47PM (#22153833)
Since the file format specification is available, you can write your own code that directly reads/writes to SQLite files. You can't even have to use the logs and journaling options. You don't even have to use SQL.
Re:SQLite Is Serverless by cma on Sunday January 26, 2020 @02:05PM (#22153967)
That’s the SQLite database file format. SQLite itself is a library that can deal with multiple files in different formats (transaction log and database file). It also reads .sqliterc and maybe others.
Re:SQLite Is Serverless by bane on Sunday January 26, 2020 @05:21PM (#22155206)
> That’s the SQLite database file format.

You got it! SQLite is a file format.

> SQLite itself is a library that can deal with multiple files in different formats (transaction log and database file). It also reads .sqliterc and maybe others.

Yup you also got it! SQLite is not an RDBMS and shouldn't be approached that way.

The more you try to ram RDBMS ideas into what SQLite is, the more it won't be that. The more you try to treat it like a file format, the more it will be what you want.