Debian Codegraph @

beanie/migrations/controllers/base.py

raw
1 from abc import ABC, abstractmethod
2
3 from beanie.odm.documents import Document
4
5
6 class BaseMigrationController(ABC):
7 def __init__(self, function):
8 self.function = function
9
10 @abstractmethod
11 async def run(self, session):
12 pass
13
14 @property
15 @abstractmethod
16 def models(self) -> list[type[Document]]:
17 pass