diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-03-07 12:21:06 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-03-07 13:51:52 +0100 |
commit | 543a5ea627984e20ccb0c3688165c4e579e1873d (patch) | |
tree | 276fcadb842fa35e61d884be00a47f20056c241f /platform/default/sqlite3.hpp | |
parent | e75814fb9a1a6056a9d36f6f148637c56a21411e (diff) | |
download | qtlocation-mapboxgl-upstream/offlinedb-test.tar.gz |
[core] harden OfflineDatabaseupstream/offlinedb-test
- gracefully handles unreadable or corrupt files
- gracefully handles temporary read or write errors, e.g. when the file system becomes unavailable
- gracefully handles full disks
- adds tests for all of these situations using a ramdisk for simulating full disks, or read only file systems
Diffstat (limited to 'platform/default/sqlite3.hpp')
-rw-r--r-- | platform/default/sqlite3.hpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/platform/default/sqlite3.hpp b/platform/default/sqlite3.hpp index 20d09b550c..6f54afb077 100644 --- a/platform/default/sqlite3.hpp +++ b/platform/default/sqlite3.hpp @@ -10,13 +10,8 @@ namespace mapbox { namespace sqlite { enum OpenFlag : int { - ReadOnly = 0x00000001, - ReadWrite = 0x00000002, - Create = 0x00000004, - NoMutex = 0x00008000, - FullMutex = 0x00010000, - SharedCache = 0x00020000, - PrivateCache = 0x00040000, + ReadOnly = 0b001, + ReadWriteCreate = 0b110, }; enum class ResultCode : int { |