summaryrefslogtreecommitdiff
path: root/platform/default/src/mbgl/storage/offline_database.cpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Calculate size of an ambient cache without offline resourcesupstream/kl-soucre-leakAlexander Shalamov2020-07-211-22/+113
|
* Expose READ_ONLY_MODE_KEY property for DatabaseFileSourceMikhail Pozdnyakov2020-07-211-36/+109
|
* [core] Introduce OfflineDatabase::runPackDatabaseAutomatically() APIMikhail Pozdnyakov2019-12-021-5/+5
| | | | | - added a unit test - Updated inline comments in default_file_source.hpp
* [core] OfflineDatabase pack APIMikhail Pozdnyakov2019-11-121-3/+13
| | | | | | - introduce `OfflineDatabase::pack()` standing for incremental vacuum - make pack optional at offline region deletion - update `OfflineDatabase.DeleteRegion` test accordingly to the items above
* [core] Improve OfflineDatabase error handlingMikhail Pozdnyakov2019-11-111-55/+61
| | | | | - fixes missing exception handlers (e.g. runtim error from the `initialize()` method) - introduces generic exception handling mechanism to reduce the repeated code
* [core] Enable incremental vacuum for Offline DBMikhail Pozdnyakov2019-10-221-5/+15
| | | | Thus we avoid re-creating the whole database and keeping the backup file as it happens on calling VACUUM.
* [ios, macos] Fix MGLOfflinePack invalidate crash (#15582)Julian Rex2019-09-181-0/+9
|
* [core] Mark offline region resources in batchesMikhail Pozdnyakov2019-08-291-16/+4
|
* [core] Add OfflineDatabase::markUsedResources()Mikhail Pozdnyakov2019-08-291-0/+13
|
* [core] Fix offline regions reporting the wrong number of tilesThiago Marcos P. Santos2019-06-191-8/+10
| | | | | | | | | | - The SQL query used for checking if the tile was already in the cache was wrong. - Tiles being refereed by two or more regions were not always counted as one. Fixes #13437.
* [core] Add method for setting a maximum size for the ambient cacheThiago Marcos P. Santos2019-06-181-4/+48
| | | | | | | - Removed this parameter from the constructor, now that we have a method to set it. - Add the method and enforce the limits if the ambient cache exceeds the size.
* [core] Clear/Invalidate should also work on non-tile resourcesThiago Marcos P. Santos2019-06-181-11/+48
| | | | | These methods were only affecting tiles, but they should really work on every resource like style, glyphs, etc.
* [core] Rename resetCache to resetDatabaseThiago Marcos P. Santos2019-06-181-1/+1
| | | | | Avoid confusion about what is being reset. In this case, the whole database and not only the ambient cache.
* [core] Fix bug of auto_vacuum not workingThiago Marcos P. Santos2019-06-131-6/+4
|
* [core] Add API for clearing tile cacheThiago Marcos P. Santos2019-06-131-0/+20
|
* [core] Add API for invalidating tilesThiago Marcos P. Santos2019-05-211-0/+41
| | | | | | | | | Add new APIs for invalidating tiles, effectively forcing Mapbox GL Native to check with the servers if the tiles are valid before using them. This is more efficient then deleting tiles, because in case of valid tiles, they won't get downloaded. Fixes #4376.
* [core] Introduce resetCache APISudarsana Babu Nagineni2019-04-291-0/+8
| | | | Add an API to delete existing database and re-initialize.
* [core] expose an option to change the db file path in runtimeŁukasz Paczos2019-03-131-10/+20
|
* [build] rework platform/default directory and add -files.txt for vendored libsKonstantin Käfer2018-12-141-0/+1129