mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 04:23:29 -08:00
[Server] Move the database lifecycle calls onto the interface
This commit is contained in:
parent
b88f720cc3
commit
cf2d9136f9
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