MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / print_summary

Function print_summary

scripts/migrate_sqlite_to_postgres.py:257–263  ·  view source on GitHub ↗
(results: Sequence[TableCopyResult])

Source from the content-addressed store, hash-verified

255
256
257def print_summary(results: Sequence[TableCopyResult]) -> None:
258 total_rows = 0
259 print("迁移完成,表统计如下:")
260 for item in results:
261 total_rows += item.inserted_rows
262 print(f"- {item.name}: source={item.source_rows} inserted={item.inserted_rows} columns={len(item.columns)}")
263 print(f"总计插入 {total_rows} 行")
264
265
266def main(argv: Sequence[str] | None = None) -> int:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected