MCPcopy
hub / github.com/tortoise/tortoise-orm / plan

Method plan

tortoise/migrations/executor.py:123–126  ·  view source on GitHub ↗
(self, targets: Iterable[MigrationTarget] | None = None)

Source from the content-addressed store, hash-verified

121 applied.add(key)
122
123 async def plan(self, targets: Iterable[MigrationTarget] | None = None) -> list[PlanStep]:
124 await self.loader.build_graph()
125 applied = set(await self.recorder.applied_migrations())
126 return self._migration_plan(targets, applied, self.loader.graph)
127
128 @staticmethod
129 def _emit(

Callers 5

planFunction · 0.95
migrateFunction · 0.95

Calls 3

_migration_planMethod · 0.95
build_graphMethod · 0.80
applied_migrationsMethod · 0.45