Files
settlements-admin/backend/code/modules/database/database.py
T
2026-11-05 08:28:15 +00:00

28 lines
788 B
Python

from abc import ABC, abstractmethod
class DatabaseModule(ABC):
@abstractmethod
def SelectById(self):
raise NotImplementedError("Select by id method not implemented")
@abstractmethod
def SelectByCode(self):
raise NotImplementedError("Select by code method not implemented")
@abstractmethod
def Filter(self, data):
raise NotImplementedError("Filter method not implemented")
@abstractmethod
def Register(self, data):
raise NotImplementedError("Register method not implemented")
@abstractmethod
def Edit(self, register, data):
raise NotImplementedError("Edit method not implemented")
@abstractmethod
def Disable(self, register):
raise NotImplementedError("Disable method not implemented")