NetworkedApplications: live config generations and durable backup/restore (P-NETWORKED-05)

This commit is contained in:
faumaray committed 2026-12-04 10:13:31 +03:00
1 parent 3010b8a913
commit 03542d0d2f
7 files changed
+256 -4

No files matched your search

@@ -475,3 +475,20 @@ namespace NetworkedKv
return out;
}
} // namespace NetworkedKv
namespace NetworkedKv
{
Void::Result::Result<Void::Sqlite::BackupReport>
SqliteKvStore::backup_to(const std::filesystem::path& destination)
{
std::lock_guard lock{m_mutex};
return m_db.backup_to(destination);
}
Void::Result::Result<Void::Sqlite::BackupReport>
SqliteKvStore::restore_from(const std::filesystem::path& source)
{
std::lock_guard lock{m_mutex};
return m_db.restore_from(source);
}
} // namespace NetworkedKv