mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-10 03:53:26 -08:00
[Server] Move the database lifecycle calls onto the interface (#7859)
This commit is contained in:
parent
526d528e96
commit
0caacb27c1
4 changed files with 24 additions and 6 deletions
|
|
@ -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()
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue