MCPcopy Create free account
hub / github.com/tortoise/tortoise-orm / _progress_reporter

Function _progress_reporter

tortoise/cli/cli.py:497–507  ·  view source on GitHub ↗

Inline progress reporter for migration execution.

(event: str, app_label: str, name: str)

Source from the content-addressed store, hash-verified

495
496
497def _progress_reporter(event: str, app_label: str, name: str) -> None:
498 """Inline progress reporter for migration execution."""
499 label = f"{app_label}.{name}"
500 if event == "apply_start":
501 print(f" Applying {_CYAN}{label}{_RESET}...", end="", flush=True)
502 elif event == "apply_done":
503 print(f" {_GREEN}OK{_RESET}")
504 elif event == "rollback_start":
505 print(f" Rolling back {_YELLOW}{label}{_RESET}...", end="", flush=True)
506 elif event == "rollback_done":
507 print(f" {_GREEN}OK{_RESET}")
508
509
510async def _run_migrate(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…