diff options
author | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-06 23:27:33 +0200 |
---|---|---|
committer | Mikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com> | 2020-02-07 14:39:03 +0200 |
commit | c04551a4e3e1fd2d04b884d3a9b78caef93d1a9d (patch) | |
tree | b90901a5362c0edb6e68c5430d21a8576fcea68b /include | |
parent | d915e7748a759f3e04d274ca517767e23e0eef97 (diff) | |
download | qtlocation-mapboxgl-c04551a4e3e1fd2d04b884d3a9b78caef93d1a9d.tar.gz |
Expose READ_ONLY_MODE_KEY property for DatabaseFileSource
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/storage/database_file_source.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mbgl/storage/database_file_source.hpp b/include/mbgl/storage/database_file_source.hpp index 81e5315fd8..9fb9ccdb3e 100644 --- a/include/mbgl/storage/database_file_source.hpp +++ b/include/mbgl/storage/database_file_source.hpp @@ -7,6 +7,12 @@ namespace mbgl { +// Properties that may be supported by database file sources. + +// Property to set database mode. When set, database opens in read-only mode; database opens in read-write-create mode +// otherwise. type: bool +constexpr const char* READ_ONLY_MODE_KEY = "read-only-mode"; + class ResourceOptions; // TODO: Split DatabaseFileSource into Ambient cache and Database interfaces. |