{"id":13525408,"url":"https://github.com/actiontech/sqle","last_synced_at":"2025-05-13T21:04:48.926Z","repository":{"id":36952022,"uuid":"319254323","full_name":"actiontech/sqle","owner":"actiontech","description":"一个支持多种不同类型数据库，覆盖事前控制、事后监督、标准发布场景，帮助您建立质量规范的SQL全生命周期质量管理平台","archived":false,"fork":false,"pushed_at":"2025-05-13T10:21:03.000Z","size":153800,"stargazers_count":1403,"open_issues_count":174,"forks_count":193,"subscribers_count":32,"default_branch":"main","last_synced_at":"2025-05-13T11:22:36.659Z","etag":null,"topics":["advisor","audit","jetbrains","mssql","mybatis","mysql","optimize","oracle","pg","postgresql","sql","sql-audit","suggestion"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actiontech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-12-07T08:36:10.000Z","updated_at":"2025-05-13T06:49:15.000Z","dependencies_parsed_at":"2024-01-02T04:21:18.532Z","dependency_job_id":"c5889867-6bbb-4064-bc21-1e0c8e746b8f","html_url":"https://github.com/actiontech/sqle","commit_stats":{"total_commits":3068,"total_committers":18,"mean_commits":"170.44444444444446","dds":0.8142112125162972,"last_synced_commit":"0e84cde06a7bba17b833a84e76e7fa9e0794d9d4"},"previous_names":[],"tags_count":181,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actiontech%2Fsqle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actiontech%2Fsqle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actiontech%2Fsqle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actiontech%2Fsqle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actiontech","download_url":"https://codeload.github.com/actiontech/sqle/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254028498,"owners_count":22002273,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advisor","audit","jetbrains","mssql","mybatis","mysql","optimize","oracle","pg","postgresql","sql","sql-audit","suggestion"],"created_at":"2024-08-01T06:01:18.453Z","updated_at":"2025-05-13T21:04:43.909Z","avatar_url":"https://github.com/actiontech.png","language":"Go","readme":"\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"img/SQLE_logo.png\"\u003e\n\n\n\u003cp align=\"center\"\u003e一个支持多种不同类型数据库，覆盖事前控制、事后监督、标准发布场景，帮助您建立质量规范的SQL全生命周期质量管理平台。\u003c/p\u003e\n\u003cp align=\"center\"\u003e每周发版，快速迭代中\u003c/p\u003e\n\n\n简体中文 | [English](./README_en.md)\n\n\n[![Release](https://img.shields.io/github/release/actiontech/sqle.svg?style=flat-square)](https://github.com/actiontech/sqle/releases)\n[![GitHub license](https://img.shields.io/github/license/actiontech/sqle.svg)](https://github.com/actiontech/sqle/blob/main/LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/actiontech/sqle.svg)](https://github.com/actiontech/sqle/stargazers)\n[![GitHub issues](https://img.shields.io/github/issues/actiontech/sqle.svg)](https://github.com/actiontech/sqle/issues)\n[![GitHub closed issues](https://img.shields.io/github/issues-closed-raw/actiontech/sqle.svg)](https://github.com/actiontech/sqle/issues?q=is%3Aissue+is%3Aclosed)\n[![Docker Pulls](https://img.shields.io/docker/pulls/actiontech/sqle-ce.svg)](https://hub.docker.com/r/actiontech/sqle-ce)\n\n\u003cimg src=\"img/image.png\"\u003e\n\n\n\u003c/div\u003e\n\n\n# 🔍 SQLE是什么\nSQLE 是爱可生自主研发支持多元数据库的 SQL 质量管理平台。应用于开发、测试、上线发布、生产运行阶段的 SQL 质量治理。通过 “建立规范、事前控制、事后监督、标准发布” 的方式，为企业提供 SQL 全生命周期质量管控能力，规避业务 SQL 不规范引起的生产事故，提高业务稳定性，也可推动企业内部开发规范快速落地。\n\n\n\n# 📌 功能特性\n### 🚀 数据库兼容主流拥抱国产\n\n  - 主流数据库：MySQL、PostgreSQL、Oracle 等十多种数据库高度兼容。\n  - 国产数据库：OceanBase、达梦、TDSQL、GoldenDB、ActionDB 等深度适配。\n  - 持续扩展中……\n\n### 🔍 专家级 SQL 诊断能力\n\n  - 规则丰富：内置规则库超 1000 条，支持自定义规则扩展。\n  - 场景匹配：覆盖性能优化/安全防护/合规审查等场景，源自各行业头部企业数据库专家的最佳实践。\n  \n### 🛡️ 变更安全双保险\n\n  - 版本追踪：支持 SQL 变更的版本化管理，完美对接 DevOps 流程。\n  - 备份恢复：自动生成变更备份，提供秒级数据恢复能力，显著降低误操作风险。\n  \n### 📊 SQL 全链路监控管家\n\n  - 智能采集：自动抓取慢日志、业务代码等场景 SQL，7x24 小时数据库监控。\n  - 深度治理：执行计划对比、索引优化建议、死锁根因分析，三招快速定位问题 SQL 并提供优化方案。\n  - 趋势洞察：可视化呈现 SQL 质量变化趋势，建立优化效果可衡量的闭环机制。\n  \n### ⚡ 审批流水线智能便捷\n\n  - 自定义审批流程：定制审批层级与自动化策略，减少人工介入，提升协作效率。\n  - 主流办公 IM 同步：打通飞书、钉钉等 IM 平台，实时同步审核状态与上线进度。\n  \n### 🛠️ 研发友好的数据工作台\n\n  - 高效率使用：快速 SQL 编辑，SQL 智能补全，批量操作。\n\n查看更多[社区版与企业版对比](https://actiontech.github.io/sqle-docs/docs/support/compare)。\n\n# 💡 使用场景\n\n\u003cdetails\u003e\n  \u003csummary\u003e没有数据库专家，SQL 优化从何下手？\u003c/summary\u003e\n\n- **用审核规则找到问题**：\n\n  SQLE 内置专家规则模板，自动扫描问题 SQL，生成可视化诊断报告，将排查时间从小时级缩短至分钟级。\n  \n- **从执行计划分析确认问题**\n\n  长期跟踪分析执行数据，通过资源消耗趋势定位性能劣化原因，精准锁定问题根源。\n   \n- **结合专家经验解决问题**：\n\n  问题自动匹配专家级知识库最佳实践，提供从索引优化到查询重构的完整解决方案，新手也能像专家一样调优。\n  \n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e数据变更总出问题，能否回滚并溯源？\u003c/summary\u003e\n\n- **版本变更可追踪**\n\n  可视化展示 SQL 完整变更历史，支持版本差异对比，实时掌握各团队发布进度。 \n\n- **数据变更有保障**\n  \n  自动生成回滚方案，并支持预发布环境验证。已帮助 95% 的客户降低变更风险。\n  \n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003eSQL 采集费时费力？风险 SQL 无法识别？\u003c/summary\u003e\n\n- **多源智能采集**\n\n  覆盖从慢查询到应用代码的 SQL 范围，告别手动提取。\n  \n- **研发流程集成**\n\n  无缝对接 Jenkins 等 CI/CD 工具，自动拦截问题 SQL。\n\n- **智能风险预警**\n\n  自动识别高频高资源消耗SQL，自动推送风险相关人，提高问题响应速度。\n\n  \n\u003c/details\u003e\n\n\u003cdetails\u003e\n  \u003csummary\u003e跨团队协作效率低？可视化流程全程透明 \u003c/summary\u003e\n\n\n- **一键配置工作流**\n\n  灵活适配企业组织架构，支持飞书/钉钉/企业微信等通知，实现掌上操作。\n  \n- **变更实时跟踪**\n\n  实时推送各阶段 SQL 变更动态，确保关键信息及时触达。\n  \n\u003c/details\u003e\n\n\n\u003cdetails\u003e\n  \u003csummary\u003eDBA 忙不开？开发自己来审核！\u003c/summary\u003e\n\n\n- **研发阶段自检**\n\n  IDE 实时 SQL 规范扫描，将风险消灭于萌芽状态。\n  \n- **自动化质量管控**\n\n  将 SQL 审核嵌入 CI/CD 流程，自动分析并反馈问题报告。\n  \n\u003c/details\u003e\n\n\n\n# 🧩 快速开始\n\n## 版本说明\n目前SQLE提供三个不同形态的版本，以满足不同的使用需求：\n\u003cimg src=\"img/compare.png\"\u003e\n\n* 如您需要体验社区版，可以在[试用环境](#在线试用)中体验，或直接[本地部署](#本地安装)；\n* 如您需要体验专业版功能，请在[填写问卷](https://www.wjx.cn/vm/tWgc0yP.aspx#)后获取安装包部署；\n* 如您需要体验企业版功能，可以在[试用环境](#在线试用)中体验，或[联系我们的商务](#📞-商业支持)。\n\n\n\n## 在线试用\n 我们同时提供了 SQLE 社区版 和  SQLE 企业版 的线上 DEMO 环境，登录后您可以轻松体验 SQLE 的丰富功能。\n \n- [SQLE 社区版](http://demo.sqle.actionsky.com/)\n- [SQLE 企业版](http://demo.sqle.actionsky.com:8889/)\n\n**登录信息**\n|user|password|\n|---|---|\n|admin|admin|\n\n**您可以连接MySQL实例，进行测试**\n\n|variable|value|\n|---|---|\n|地址| 20.20.20.3|\n|端口| 3306|\n|用户| root|\n|密码| test|\n\n\u003e 注意事项\n\u003e 1. 该服务仅用于在线功能体验，请勿在生产环境使用；\n\u003e 2. 该测试服务数据会定期清理。\n\n\n## 本地安装\nSQLE 提供了多种安装部署的方式，用户可以结合自己的环境和现状选择。初次体验或者测试使用的话建议使用docker-compose 或 docker 快速部署。\n\n部署方式：\n\n1. [源码安装](https://actiontech.github.io/sqle-docs/docs/deploy-manual/source)\n2. [RPM 部署](https://actiontech.github.io/sqle-docs/docs/deploy-manual/rpm)\n3. [Docker 部署](https://actiontech.github.io/sqle-docs/docs/deploy-manual/Docker)\n4. [Docker Compose部署](https://actiontech.github.io/sqle-docs/docs/deploy-manual/DockerCompose)\n\n## 插件开发\n目前支持其他种类数据库的审核插件:\n* [PostgreSQL](https://github.com/actiontech/sqle-pg-plugin)\n* [Oracle](https://github.com/actiontech/sqle-oracle-plugin)\n* [SQL Server](https://github.com/actiontech/sqle-ms-plugin)\n* [DB2](https://github.com/actiontech/sqle-db2-plugin)\n\n更多了解：《[功能说明及开发手册](https://actiontech.github.io/sqle-docs/docs/dev-manual/plugins/intro) 》\n\n\n# 🧑🏻‍💻社区支持\n我们感谢您的关注与贡献，社区将引导您了解如何使用和贡献。欢迎以下方式加入社区：\n* [官方网站](https://opensource.actionsky.com/sqle/)\n* [文档手册](https://actiontech.github.io/sqle-docs/)\n* 微信交流群：请添加管理员微信 ActionOpenSource\n* 微信公众号：爱可生开源社区\n  \n  ![QR_code](img/QR_code.png)\n  \n* 其他媒体 [Gitee](https://gitee.com/mirrors/SQLE?_from=gitee_search) | [思否](https://segmentfault.com/blog/sqle) | [开源中国](https://www.oschina.net/p/sqle) | [墨天轮](https://www.modb.pro/wiki/2759) | [CSDN](https://blog.csdn.net/ActionTech) | [稀土掘金](https://juejin.cn/column/7241238544252829753) | [知乎](https://www.zhihu.com/people/Actionsky-86-50/columns)\n\n🤗 欢迎将体验中产生的 Bug、问题和需求提交到 [SQLE GitHub Issue](https://github.com/actiontech/sqle/issues)。\n\n# 📞 商业支持\n如果想获得 SQLE 的商业支持, 您可以扫描下方的微信扫描小程序码，进行在线咨询预约：\n![commercial-support](img/commercial.png)\n\n此外，您也可以直接联系我们的商业支持团队获取更多信息，联系方式如下：\n\n400-820-6580 / 13916131869 / 18930110869\n","funding_links":[],"categories":["开源类库","Open source library","SQL审核","Go","开发工具\u0026框架"],"sub_categories":["数据库","Database"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiontech%2Fsqle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factiontech%2Fsqle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factiontech%2Fsqle/lists"}