17 lines
457 B
Python
17 lines
457 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
from typing import Self, Any
|
|
from abc import ABC, abstractmethod
|
|
from Abstracts.DatabaseAbstract import DatabaseAbstract
|
|
|
|
class DatabasesManagerInterface(ABC):
|
|
|
|
@abstractmethod
|
|
def get(self:Self, key:str) -> type[DatabaseAbstract]|None:pass
|
|
|
|
@abstractmethod
|
|
def add(self:Self, inputs:Any|None, overwrite:bool = False) -> None:pass
|
|
|
|
@abstractmethod
|
|
def close(self:Self) -> None:pass |