Repository navigation
feat(v0.1.31): 按方言的最佳实践库与评审联动推荐 - #3
Merged
Merged
Conversation
…ggestions - Add 62 rule-like best-practice entries (16 general + per-dialect for MySQL/PostgreSQL/SQL Server/SQLite), sourced from ASDM MySQL performance best practices and adapted per engine. - New 'Best practices' UI tab: filter by dialect/category/keyword, with rationale, recommended practice, anti-pattern and before/after SQL. - Review results now surface related best practices linked from hit rules, jumpable to the full entry; Markdown export includes them. - New read-only MCP tool sql_best_practices (catalog + per-SQL suggestions). - Bump version to 0.1.31 across manifest/store/candidate; regenerate signed-ready 5-platform candidate metadata and package artifacts. - Update README (EN/zh-CN), store release notes and publish doc.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概述
参考 ASDM《MySQL 数据库性能优化最佳实践》(portal/practices/29),为 SQL Review 插件新增「最佳实践」标签页:把原文整理成规则化的最佳实践条目,按 SQL 方言展示,并在 SQL 评审命中规则时联动推荐相关条目。
变更内容
ruleIds与 61 条评审规则交叉引用。sql_best_practices:按方言/分类查目录,或传sql只返回与命中相关的建议。测试
go build/go vet/go test ./...全绿(新增 practices 单元测试:目录完整性、方言过滤、联动推荐、MCP 工具、规则 ID 提取)。🤖 Generated with WorkBuddy