Allow updating some database settings.

This commit is contained in:
John Preston
2018-08-31 14:37:22 +03:00
parent 55fe977d54
commit 5733f4079f
5 changed files with 23 additions and 1 deletions
@@ -22,6 +22,12 @@ void Database::reconfigure(const Settings &settings) {
});
}
void Database::updateSettings(const SettingsUpdate &update) {
_wrapped.with([update](Implementation &unwrapped) mutable {
unwrapped.updateSettings(update);
});
}
void Database::open(EncryptionKey &&key, FnMut<void(Error)> &&done) {
_wrapped.with([
key = std::move(key),