summaryrefslogtreecommitdiff
path: root/platform/default/mbgl/storage/offline_database.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-03-15 15:23:25 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-03-17 14:17:59 -0700
commit5130ca8843a342a1b708bb63263fd44c6c908120 (patch)
tree125ce7af31e47b603459977ddea0e8aaf9146bf1 /platform/default/mbgl/storage/offline_database.hpp
parentaa60d295346871bad0884238d13dcd9995d97151 (diff)
downloadqtlocation-mapboxgl-5130ca8843a342a1b708bb63263fd44c6c908120.tar.gz
[core] Implement a vacuum strategy for the offline database
Enable `PRAGMA auto_vacuum = INCREMENTAL`, and perform a `PRAGMA incremental_vacuum` when deleting an offline region.
Diffstat (limited to 'platform/default/mbgl/storage/offline_database.hpp')
-rw-r--r--platform/default/mbgl/storage/offline_database.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/default/mbgl/storage/offline_database.hpp b/platform/default/mbgl/storage/offline_database.hpp
index eb18cc18d2..1e77d560d4 100644
--- a/platform/default/mbgl/storage/offline_database.hpp
+++ b/platform/default/mbgl/storage/offline_database.hpp
@@ -58,8 +58,10 @@ public:
private:
void connect(int flags);
+ int userVersion();
void ensureSchema();
void removeExisting();
+ void migrateToVersion3();
class Statement {
public: