-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
70 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
--- | ||
title: Eclipse审核插件 | ||
--- | ||
|
||
Eclipse审核插件可以在开发阶段实时进行自助式的SQL审核,确保SQL开发符合规范并满足上线要求。 | ||
|
||
## 环境要求 | ||
|
||
* 推荐使用Java8版本 | ||
|
||
* Eclipse插件最低适配Eclipse 2015 mars版本 | ||
|
||
## 使用方式 | ||
|
||
### 获取安装包 | ||
参考:https://github.com/actiontech/sqle/releases/tag/v3.2401.0 | ||
|
||
### 安装插件 | ||
将下载的jar包,复制到Eclipse编辑器目录中的dropins文件夹中 | ||
![eclipse-install](img/eclipse-install.png) | ||
|
||
### 配置插件 | ||
1. 点击`Eclipse菜单栏`-`Window`-`Preferences`-`SQLE`。 | ||
2. 在SQLE Addr栏中输入SQLE服务的地址、用户名和密码以连接到SQLE。 | ||
3. 点击`Test Connection`按钮,确保能够成功连接到SQLE并获取项目和数据库类型列表。 | ||
4. 依次选择Project、DB Type、Data Source和Schema下拉框,配置要进行审核的数据库信息。 | ||
5. 点击`Apply and Close`按钮保存配置并退出配置界面,完成配置。 | ||
|
||
![eclipse-install-edit](img/eclipse-install-edit.png) | ||
|
||
#### 配置说明 | ||
|
||
| 配置项 | 配置项说明 | | ||
|-----------------|--------------------------------------------------| | ||
| SQLE Addr | SQLE 服务地址, 格式为 IP:Port | | ||
| HTTP | 指定连接SQLE的方式是通过HTTP还是HTTPS | | ||
| UserName | 登录SQLE使用的用户名 | | ||
| Password | 登录SQLE使用的密码 | | ||
| Test Connection | 测试连接是否成功, 将尝试登录SQLE | | ||
| Project | 项目名称 | | ||
| DB Type | 当其他配置正确时,该下拉菜单将自动获取支持审核的数据库实例类型,并使用该实例类型的审核规则进行审核 | | ||
| Data Source | 数据源名称 | | ||
| Schema | 数据库名称 | | ||
|
||
|
||
|
||
### 使用说明 | ||
按照以下步骤使用插件: | ||
|
||
1. 选中需要审核的SQL语句,可以同时选中多条。 | ||
2. 右键点击选中的SQL语句,选择[SQLE SQL Audit],插件将以视图的形式展示审核结果。 | ||
![eclipseaudit1](img/eclipseaudit1.gif) | ||
1. 若要审核MyBatis XML文件或SQL文件,选中对应的文件,右键点击,选择[SQLE MyBatis Audit]。 | ||
![eclipseauditxml](img/eclipseauditxml.gif) | ||
|
||
:::tip | ||
目前还支持对文件夹进行SQL审核,但仅支持审核文件夹中的XML文件。 | ||
::: | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file contains 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
Binary file not shown.
This file contains 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