[Server] Create the worker database interfaces through the factory

This commit is contained in:
Lukas Brübach 2026-11-10 02:50:18 +01:00
parent cf2d9136f9
commit 4d7c5218e9
5 changed files with 62 additions and 29 deletions

View file

@ -833,6 +833,15 @@ public:
virtual void purgeExpiredLegacyBackups()
{
}
/** @brief Creates the database interface a worker connection pool runs on; nullptr when unsupported. */
virtual Server_DatabaseInterface *createWorkerInterface(int /* instanceId */)
{
return nullptr;
}
/** @brief Opens a worker interface's connection on its own thread; a no-op when unsupported. */
virtual void initialiseWorkerDatabase()
{
}
virtual void clearSessionTables()
{