Function
print_summary
(results: Sequence[TableCopyResult])
Source from the content-addressed store, hash-verified
| 255 | |
| 256 | |
| 257 | def 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 | |
| 266 | def main(argv: Sequence[str] | None = None) -> int: |
Tested by
no test coverage detected