Add DynamoDb support

This commit is contained in:
2020-04-30 22:25:20 -04:00
parent c85d5cada4
commit 7016926c3d
22 changed files with 84 additions and 20 deletions

15
db_service.py Normal file
View File

@@ -0,0 +1,15 @@
from abc import abstractmethod
class DbService:
def __init__(self) -> None:
super().__init__()
@abstractmethod
def get_fact(self):
raise NotImplementedError
@abstractmethod
def get_multiple_facts(self, count=5):
raise NotImplementedError