update to 1.0.2
This commit is contained in:
19
source/database/data_source_db.py
Normal file
19
source/database/data_source_db.py
Normal file
@@ -0,0 +1,19 @@
|
||||
"""Module containing an abstract class."""
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class DataSourceDb(ABC):
|
||||
"""Abstract class representing a data source."""
|
||||
|
||||
@abstractmethod
|
||||
def save_record(self):
|
||||
"""Transfer some data."""
|
||||
|
||||
raise NotImplementedError
|
||||
|
||||
@abstractmethod
|
||||
def bulk_save(self):
|
||||
"""Transfer multiple records of data."""
|
||||
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user