Initial commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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")
|
||||
Reference in New Issue
Block a user