music-kraken-core/src/music_kraken/database/temp_database.py
Lars Noack dee7f9f152 afdfa
2022-12-12 15:40:41 +01:00

20 lines
361 B
Python

from .new_database import Database
from ..utils.shared import (
TEMP_DATABASE_PATH,
DATABASE_LOGGER
)
logger = DATABASE_LOGGER
class TempDatabase(Database):
def __init__(self, reset_on_start: bool = True) -> None:
super().__init__(TEMP_DATABASE_PATH)
if reset_on_start:
self.reset()
temp_database = TempDatabase()