Signal-iOS/SignalServiceKit
Evan Hahn dc9637b127 Handle SQLite corruption during database initialization
GRDB executes some simple statements when initializing a `DatabasePool`
object (see [1][], [2][], [3][], [4][]). If any of those fail with a
corruption error, we should flag the database as corrupted. This will
let the user attempt recovery.

[1]: 23f4254ae3/GRDB/Core/Database.swift (L365)
[2]: 23f4254ae3/GRDB/Core/DatabasePool.swift (L75)
[3]: 23f4254ae3/GRDB/Core/DatabasePool.swift (L82)
[4]: 23f4254ae3/GRDB/Core/DatabasePool.swift (L91-L94)
2022-12-19 14:35:33 -06:00
..
Experience Upgrades Fix crash when fetching remote megaphones 2022-11-17 12:21:54 -08:00
Jobs Add all JobQueues to environment, via a wrapper 2022-11-09 14:08:44 -06:00
protobuf Add CDSv2 2022-12-14 16:30:35 -08:00
Resources Add CDSv2 2022-12-14 16:30:35 -08:00
src Handle SQLite corruption during database initialization 2022-12-19 14:35:33 -06:00
tests Add CDSv2 2022-12-14 16:30:35 -08:00
.clang-format Update clang-format with AllowShortEnumsOnASingleLine: false 2022-03-14 11:20:20 -07:00
.gitignore
.travis.yml
SignalServiceKit-Prefix.pch Change license to AGPL 2022-10-13 08:25:37 -05:00
SignalServiceKit.h Swiftify OWSDisappearingMessagesFinder 2022-12-13 17:11:50 -06:00