I just finished building an open-source project using SQLite, and this makes me a little nervous. Is SQLite generally considered a reliable system? I've only had one experience with the DB becoming corrupted and that was because I used the Task Manager to force kill the process while it was running under a heavy load, and I felt that was understandable.
How to corrupt an SQLite database file
31–40 of 45 posts
Re: How to corrupt an SQLite database file
#32Re: How to corrupt an SQLite database file
#33> One example of this occurred circa 2013-08-30 on the canonical repository for the Fossil DVCS. In that event, file descriptor 2 (standard error) was being erroneously closed (by stunnel, we suspect) prior to sqlite3_open_v2() so that the file descriptor used for the repository database file was 2. Later, an application bug caused an assert() statement to emit an error message by invoking write(2,...). But since fil…
POSIX compatibility > https://pubs.opengroup.org/onlinepubs/000095399/functions/op... > The open() function shall return a file descriptor for the named file that is the lowest file descriptor not currently open for that process.
Secondly nothing precludes defining '3' as the lowest file descriptor for open(), since stdin/stdout/stderr cannot be opened (they are opened before the process starts).
nb4 open("/dev/stdin"), that's not what I mean
Re: How to corrupt an SQLite database file
#34I just finished building an open-source project using SQLite, and this makes me a little nervous. Is SQLite generally considered a reliable system? I've only had one experience with the DB becoming corrupted and that was because I used the Task Manager to force kill the process while it was running under a heavy load, and I felt that was understandable.
> Is SQLite generally considered a reliable system? It is arguably the most battle-tested piece of software on the planet. It's deployed basically on every single piece of tech out there.
Re: How to corrupt an SQLite database file
#35I just finished building an open-source project using SQLite, and this makes me a little nervous. Is SQLite generally considered a reliable system? I've only had one experience with the DB becoming corrupted and that was because I used the Task Manager to force kill the process while it was running under a heavy load, and I felt that was understandable.
> Is SQLite generally considered a reliable system? It is arguably the most battle-tested piece of software on the planet. It's deployed basically on every single piece of tech out there.
Re: How to corrupt an SQLite database file
#36Earlier quoted context omitted.
It’s impressive. To admit fallibility is to be honest. It represents confidence.
Also represents good test coverage
Re: How to corrupt an SQLite database file
#37Interesting that it doesn't specifically call out Anti-Virus scanning (which does occasionally result in at least one of these scenarios). I've seen many SQLite database become corrupted and the best you can do is have a backup.
Re: How to corrupt an SQLite database file
#38Re: How to corrupt an SQLite database file
#39Re: How to corrupt an SQLite database file
#40Earlier quoted context omitted.
Not Sequel-lite?
Nope. A quote from Dr. Hipp: "How do I pronounce the name of the product? I say S-Q-L-ite, like a mineral."