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

Function _format_steps

tortoise/migrations/api/plan.py:57–62  ·  view source on GitHub ↗
(steps: list[PlanStep], connection_name: str)

Source from the content-addressed store, hash-verified

55
56
57def _format_steps(steps: list[PlanStep], connection_name: str) -> list[str]:
58 lines = [f"# Connection: {connection_name}"]
59 for step in steps:
60 prefix = "-" if step.backward else "+"
61 lines.append(f"{prefix} {step.migration.app_label}.{step.migration.name}")
62 return lines
63
64
65def _parse_targets(target: str | None, app_labels: Sequence[str]) -> list[MigrationTarget]:

Callers 1

planFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…