Expose READ_ONLY_MODE_KEY property for DatabaseFileSource

This commit is contained in:
Mikhail Pozdnyakov
2020-02-06 23:27:33 +02:00
parent d915e7748a
commit c04551a4e3
4 changed files with 41 additions and 35 deletions

View File

@@ -94,8 +94,7 @@ public:
std::exception_ptr pack();
void runPackDatabaseAutomatically(bool autopack_) { autopack = autopack_; }
// For testing only
void reopenDatabaseReadOnlyForTesting();
void reopenDatabaseReadOnly(bool readOnly);
private:
void initialize();
@@ -113,6 +112,7 @@ private:
void cleanup();
bool disabled();
void vacuum();
void checkFlags();
mapbox::sqlite::Statement& getStatement(const char *);