Skip to content

fix: 加固只读 SQL 校验、Web/PG 安全及全链路配置与元数据优化 - #88

Merged
zx06 merged 3 commits into
mainfrom
fix/audit-security-and-optimizations
Nov 6, 2026
Merged

zx06 merged 3 commits into
mainfrom
fix/audit-security-and-optimizations

refactor(db): extract DescribeTableWithDetails to eliminate SonarClou…

b72085f
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Nov 6, 2026 in 1s

85.10% (+0.67%) compared to 28d7f6e

View this Pull Request on Codecov

85.10% (+0.67%) compared to 28d7f6e

Details

Codecov Report

❌ Patch coverage is 91.58879% with 36 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.10%. Comparing base (28d7f6e) to head (b72085f).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
cmd/xsql/stats.go 64.00% 5 Missing and 4 partials ⚠️
internal/web/handler.go 87.27% 6 Missing and 1 partial ⚠️
cmd/xsql/mcp.go 79.16% 4 Missing and 1 partial ⚠️
internal/db/schema.go 95.45% 2 Missing and 2 partials ⚠️
internal/ssh/reconnect.go 69.23% 3 Missing and 1 partial ⚠️
internal/db/readonly.go 90.32% 2 Missing and 1 partial ⚠️
cmd/xsql/root.go 88.23% 1 Missing and 1 partial ⚠️
internal/db/pg/schema.go 90.90% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
+ Coverage   84.42%   85.10%   +0.67%     
==========================================
  Files          63       63              
  Lines        5233     5336     +103     
==========================================
+ Hits         4418     4541     +123     
+ Misses        595      582      -13     
+ Partials      220      213       -7     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.