[Server] Move the database lifecycle calls onto the interface (#7859)

This commit is contained in:
BruebachL 2026-11-10 12:16:34 +01:00 • committed by GitHub
parent 526d528e96
commit 0caacb27c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 24 additions and 6 deletions

View file

@ -816,6 +816,24 @@ public:
return false;
}
/** @brief Opens the server's main database connection; false when it cannot be opened. */
virtual bool openDatabase(const QString & /* type */,
const QString & /* hostName */,
const QString & /* databaseName */,
const QString & /* userName */,
const QString & /* password */)
{
return false;
}
/** @brief Drops expired deck shares; a no-op when persistence is unavailable. */
virtual void cleanupExpiredDeckShares()
{
}
/** @brief Purges expired legacy password backups; a no-op when persistence is unavailable. */
virtual void purgeExpiredLegacyBackups()
{
}
virtual void clearSessionTables()
{
}