14 lines
264 B
Python
14 lines
264 B
Python
from abc import ABC
|
|
|
|
|
|
class IDocumentStore(ABC):
|
|
|
|
async def save_to_db(self, collection: str, item):
|
|
pass
|
|
|
|
async def save_to_db_with_id(self, collection: str, item, id: str):
|
|
pass
|
|
|
|
async def get_all(self, collection: str):
|
|
pass
|