https://github.com/autohomecorp/dbcheck
Mybatis 项目数据库规约检查工具,可以自定义规约
https://github.com/autohomecorp/dbcheck
Last synced: 4 months ago
JSON representation
Mybatis 项目数据库规约检查工具,可以自定义规约
- Host: GitHub
- URL: https://github.com/autohomecorp/dbcheck
- Owner: AutohomeCorp
- License: apache-2.0
- Created: 2019-12-05T13:41:28.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-12-11T09:38:59.000Z (about 6 years ago)
- Last Synced: 2025-04-23T15:23:53.108Z (9 months ago)
- Language: Java
- Size: 26.8 MB
- Stars: 8
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## dbCheck 当前版本 1.0.68
### 功能
#### 一、索引检查
> - 1) 解析Mapper文件关联字段和条件字段未加索引提示
> - 2) 索引规范:唯一索引必须以uniq_ 开头、普通索引必须以 idx_ 开头
> - 3) 条件字段增加函数提示 - 暂未加入
#### 二、复杂SQL分析
> - 1) 检测表关联查询超过三个的复杂SQL给出提示
#### 三、表中必加字段检查
> - 1) DBA规范中的必加字段 id,created_stime (datetime),modified_stime(datetime),is_del(tinyint)
> - 2) created_stime (datetime),modified_stime(datetime) 默认值和modified_stime 修改更新 - 暂未加入
#### 四、检查与提示
> - 1) 统一叫 AutoDBCheck
> - 2) 提供改动检测和全量检测
> - 3) 快捷键和菜单方式
> - 4) 显示结果,有问题字段或语句下划线提示 - 暂时仅支持控制台显示
#### 五、使用方法
> - 1) 下载地址:[AutoDBCheck](https://github.com/AutohomeCorp/dbCheck/releases)
> - 2) 打开IDEA Settings->plugins-> install plugin from disk,导入jar 包后(install),重启
> - 3) 配置数据库和项目信息:[配置说明](https://github.com/AutohomeCorp/dbCheck/wiki/配置说明)
> - 4) 自定义规则(自1.0.61版本支持):[自定义规则说明](https://github.com/AutohomeCorp/dbCheck/wiki/自定义规则说明)
> 
> > 3.3、结果

#### 六、规划
> - 1) 逐步支持DBA和能够检测的DB规范,实现工具化检查
> - 2) 提供Sql Server 数据库支持
#### 七、已知问题
> - 1) mybatis标签 `````` 只能提取到第一个表达式内条件 - 正在优化中