[Server] Move the database lifecycle calls onto the interface

This commit is contained in:
Lukas Brübach 2026-11-10 02:43:53 +01:00
parent b88f720cc3
commit cf2d9136f9
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()
{
}