{"id":14021682,"url":"https://github.com/lazzyfu/goInsight","last_synced_at":"2025-07-26T03:31:51.863Z","repository":{"id":37438684,"uuid":"119923438","full_name":"lazzyfu/goInsight","owner":"lazzyfu","description":"集MySQL数据库工单和数据查询的Web平台","archived":false,"fork":false,"pushed_at":"2024-04-10T03:58:47.000Z","size":89133,"stargazers_count":599,"open_issues_count":5,"forks_count":188,"subscribers_count":25,"default_branch":"master","last_synced_at":"2024-04-10T05:03:06.559Z","etag":null,"topics":["clickhouse","data-query-ui","gaudit","go","mysql","order","tidb"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lazzyfu.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}},"created_at":"2018-02-02T02:52:31.000Z","updated_at":"2024-06-11T10:41:14.346Z","dependencies_parsed_at":"2023-01-28T13:46:41.337Z","dependency_job_id":"9412995a-91f7-40e4-97be-497997a27182","html_url":"https://github.com/lazzyfu/goInsight","commit_stats":null,"previous_names":["lazzyfu/goinsight","lazzyfu/yasql"],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazzyfu%2FgoInsight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazzyfu%2FgoInsight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazzyfu%2FgoInsight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lazzyfu%2FgoInsight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lazzyfu","download_url":"https://codeload.github.com/lazzyfu/goInsight/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227646575,"owners_count":17798522,"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":["clickhouse","data-query-ui","gaudit","go","mysql","order","tidb"],"created_at":"2024-08-11T14:00:59.833Z","updated_at":"2024-12-01T23:31:51.470Z","avatar_url":"https://github.com/lazzyfu.png","language":"Go","funding_links":[],"categories":["Go","SQL审核"],"sub_categories":[],"readme":"## GoInsight\n![](https://img.shields.io/static/v1?label=License\u0026message=MIT\u0026color=green\u0026?style=flat-square)\n[![downloads](https://img.shields.io/github/downloads/lazzyfu/goInsight/total.svg)](https://github.com/lazzyfu/goInsight/releases)\n[![release](https://img.shields.io/github/v/release/lazzyfu/goInsight.svg)](https://github.com/lazzyfu/goInsight/releases)\n\u003cimg alt=\"Github Stars\" src=\"https://img.shields.io/github/stars/lazzyfu/goInsight?logo=github\"\u003e\n\n`GoInsight`是一个基于`Gin`和`Vue`开发的企业级前后端分离的WEB端平台，支持MySQL/TiDB/ClickHouse数据库，提供**工单管理**和**数据查询**功能。\n\n## 文档\n- [功能预览](https://github.com/lazzyfu/goInsight/wiki/Feature-Preview)\n- [使用文档](https://github.com/lazzyfu/goInsight/wiki)\n\n## 主要功能\n- **工单管理（管理工单的生命周期）**\n  - 支持提交DDL/DML/数据导出（CSV/XLSX格式）工单\n  - 支持工单审批、执行、回滚、HOOK等功能\n  - 支持钉钉/企业微信机器人/邮件推送工单消息\n\n- **SQL审计（规则拦得住）**\n  - 内置[gAudit](https://github.com/lazzyfu/gAudit)语法审核器，支持多达70种语法审核规则，可联系开发者定制更多规则\n  - 除全局审核参数外，可在DB实例级别自定义审核参数（优先级最高）\n\n- **数据查询**\n  - 强大的库表数据检索引擎，支持多大65种只读查询语句类型（SELECT、CTE、EXPLAIN、SHOW等）\n  - 支持用户库表级权限管理、支持数据字典、查询记录审计等功能\n\n- **组织管理**\n  - 支持用户组织和角色管理\n  - 支持DB实例绑定组织，实现用户访问权限控制\n\n- **自定义工单环境**\n  - 支持定义多个工单环境（如研发环境、预发布环境、测试环境、生产环境等）\n  - 支持不同环境绑定不同数据库实例，同一个工单可以在不同环境HOOK，避免重复提交\n\n- **其他功能** \n  - 支持管理员统一管理数据库实例\n  - 支持双因素身份认证登录\n  - 支持日志审计\n\n## 支持数据库\n| 数据库                                          | 版本 | 功能                                                                                                                                                                                      |\n| ----------------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| MySQL数据库（含分支、云厂商数据库、AWS Aurora） | \u003e= 5.7   | \u0026#9745; DML工单，支持生成DML回滚语句 \u003cbr\u003e \u0026#9745; DDL工单，支持ONLINE DDL（集成gh-ost工具） \u003cbr\u003e \u0026#9745; 导出工单，支持加密导出XLSX/CSV格式文件 \u003cbr\u003e \u0026#9745; 数据查询，支持库表级权限控制 |\n| TiDB                                            | \u003e= 4.0   | \u0026#9745; DML工单，暂时不支持生成DML回滚语句 \u003cbr\u003e \u0026#9745; DDL工单，TiDB原生支持ONLINE DDL \u003cbr\u003e \u0026#9745; 导出工单，支持加密导出XLSX/CSV格式文件 \u003cbr\u003e \u0026#9745; 数据查询，支持库表级权限控制     |\n| Clickhouse                                      | \u003e= 18.1  | \u0026#9745; 数据查询，支持库表级权限控制                                                                                                                                                      |\n\n\n## 快速部署\n\u003e [使用Supervisor管理服务](https://github.com/lazzyfu/goInsight/wiki/Service-Deployment)\n\n**1、下载二进制包**\n\n```\n# 下载前请更新下载链接中的`版本号`为最新的`发行版本`\nwget https://github.com/lazzyfu/goInsight/releases/download/v1.3.5/goinsight-linux-amd64-v1.3.5.tar.gz\n```\n\n**2、配置config.yaml**\n\n配置文件相对简单，请参考: [如何配置config.yaml](https://github.com/lazzyfu/goInsight/wiki/Config)\n\n**3、启动服务**\n\n```\n./goInsight -config config.yaml\n```\n\n**4、访问服务**\n\n\n服务启动后，请通过 \u003chttp://ip:port\u003e 访问，登录后请及时修改密码。生产使用时，强烈建议您在该服务前加一层HTTPS代理。\n - 默认管理员账号：`admin`\n - 默认管理员密码：`1234.Com!`\n\n## 联系作者\n- E-mail: [1126227133@qq.com](mailto:1126227133@qq.com)\n- 微信号: Lazzyfu","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazzyfu%2FgoInsight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flazzyfu%2FgoInsight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flazzyfu%2FgoInsight/lists"}