Skip to content

Conversation

@winfredLIN
Copy link
Collaborator

关联的 issue

https://github.com/actiontech/sqle-ee/issues/2250
test: https://github.com/actiontech/sqle-ee/issues/2250#issuecomment-2709866299

描述你的变更

  1. 新增CSVBuilder,用于统一管理和构建SCV文件的逻辑
  2. 将CSV生成的相关调用处使用CSVBuilder代替

确认项(pr提交后操作)

Tip

请在指定复审人之前,确认并完成以下事项,完成后✅


  • 我已完成自测
  • 我已记录完整日志方便进行诊断
  • 我已在关联的issue里补充了实现方案
  • 我已在关联的issue里补充了测试影响面
  • 我已确认了变更的兼容性,如果不兼容则在issue里标记 not_compatible
  • 我已确认了是否要更新文档,如果要更新则在issue里标记 need_update_doc

…ibility

- Implement CSVBuilder struct with methods for creating CSV files
- Add support for UTF-8 BOM and Excel cell character limit
- Provide error handling for column count mismatch
- Include example usage in the CSVBuilder type comment
- Remove direct usage of bytes.Buffer and csv.Writer
- Introduce a new CSVBuilder utility for better CSV handling
- Improve code readability and maintainability
- Remove direct usage of csv.Writer from the standard library
- Introduce CSVBuilder from utils package to handle CSV creation
- Update CSV export functions in audit_plan, instance_audit_plan, and rule controllers
- Remove BOM writing as it's now handled by CSVBuilder
@actiontech-bot actiontech-bot requested a review from iwanghc March 10, 2025 09:15
@iwanghc iwanghc merged commit cd53c69 into main Mar 11, 2025
3 checks passed
@winfredLIN winfredLIN deleted the 2250 branch April 11, 2025 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants