summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-02-06 23:27:33 +0200
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2020-02-07 14:39:03 +0200
commitc04551a4e3e1fd2d04b884d3a9b78caef93d1a9d (patch)
treeb90901a5362c0edb6e68c5430d21a8576fcea68b /include
parentd915e7748a759f3e04d274ca517767e23e0eef97 (diff)
downloadqtlocation-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.hpp6
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.