feat(data-dict): Phase 1 - 单文件脚本完成 smart-build 数据字典与首轮分析
第一阶段,针对 smart-build 数据库做一次性手工治理:
- fetch_data_dictionary.py:拉取 information_schema,输出 data_dictionary.json
- check_empty_fields.py:逐表扫 NULL/空字符串比例,输出高空字段报告
- verify_merge_redundancy.py + .sql:连库验证合并候选的实际行数
- validate_standard_fields.py:对身份证/手机/统一社会信用代码等抽样校验
- check_field_length.py:识别 VARCHAR 超出固定长度的字段(基于国标)
- check_uncommented_fields.py:扫描无注释字段,按字段名启发式推测
- generate_report.py:把以上 JSON 汇总成 Word 报告
Why:先把\"用什么工具看什么数据\"跑通,再抽象成可复用工作流。
How:每个脚本独立运行,输出落 JSON 到 data_dictionary/,最终由
generate_report.py 汇总成 数据治理报告_smart-build.docx。
Showing
data_dictionary/README.md
0 → 100644
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Please register or sign in to comment