Files
encoach_backend/app/repositories/abc/document_store.py

17 lines
343 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
async def get_doc_by_id(self, collection: str, doc_id: str):
pass