move all Databases into the database folder to not have storeage and Database when they are all Databases

This commit is contained in:
2026-04-06 16:24:28 +02:00
parent c4238d19e8
commit 01343472df
6 changed files with 14 additions and 14 deletions
+9
View File
@@ -1 +1,10 @@
from .GameplayDatabase import GameplayDatabase
from .LocalStorage import LocalStorage
from .EdgeDB import EdgeDB
class StorageLoader:
@classmethod
def build(self, selected_storage:str) -> LocalStorage|EdgeDB:
storage_module = __import__(f"server.storage.{selected_storage}", fromlist=[selected_storage])
storage_class = getattr(storage_module, selected_storage)
return storage_class