summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/database_file_source.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/storage/database_file_source.hpp')
-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.