MCPcopy Index your code
hub / github.com/tortoise/tortoise-orm / __init__

Method __init__

tortoise/migrations/executor.py:40–45  ·  view source on GitHub ↗
(self, connection: BaseDBAsyncClient, apps_config: dict[str, dict])

Source from the content-addressed store, hash-verified

38
39class MigrationExecutor:
40 def __init__(self, connection: BaseDBAsyncClient, apps_config: dict[str, dict]) -> None:
41 self.connection = connection
42 self.recorder = MigrationRecorder(connection)
43 self.loader = MigrationLoader(apps_config, self.recorder, load=False)
44 self._full_plan_cache: list[MigrationKey] | None = None
45 self._logger = logging.getLogger(__name__)
46
47 async def migrate(
48 self,

Callers

nothing calls this directly

Calls 2

MigrationRecorderClass · 0.90
MigrationLoaderClass · 0.90

Tested by

no test coverage detected