# mybatis-log-format **Repository Path**: cpanmac/mybatis-log-format ## Basic Information - **Project Name**: mybatis-log-format - **Description**: mybatis打印SQL格式化 ,替换绑定变量为具体值,方便复制到数据库管理工具中执行。 - **Primary Language**: Java - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 2 - **Created**: 2021-11-02 - **Last Updated**: 2022-10-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mybatis-log-format #### 介绍 mybatis打印SQL格式化 ,替换绑定变量为具体值,方便复制到数据库管理工具中执行。 Convert selected Mybatis log to an executable SQL. ## Usage ### Method 1 (recommended): * Select the log containing `Preparing` and `Parameters` (extra lines will be filtered). * Right-click the mouse and select the `Copy as SQL` menu (shortcut key: `shift + alt + H`) to copy SQL. ### Method 2 * Select the log containing `Preparing` and `Parameters` (extra lines will be filtered). * Right-click and select the `Show SQL` menu (shortcut key: `ctrl + shift + H`) to display SQL. * Click the `COPY TO CLIPBOARD` button to copy the SQL. ## 使用 ### 方法1(推荐): * 选择包含 `Preparing` 和 `Parameters` 的日志(多余的行会被过滤)。 * 鼠标右键,选择 `Copy as SQL` 菜单(快捷键:`shift + alt + H`)复制 SQL。 ### 方法2 * 选择包含 `Preparing` 和 `Parameters` 的日志(多余的行会被过滤)。 * 鼠标右键,选择 `Show SQL` 菜单(快捷键:`ctrl + shift + H`)展示 SQL。 * 点击 `COPY TO CLIPBOARD` 按钮复制 SQL。 ## Installation - Using IDE built-in plugin system: Preferences > Plugins > Marketplace > Search for "Mybatis SQL OR mybatis-log-format" > Install Plugin - Manually: Download the [latest release](https://github.com/lurunze/mybatis-sql/releases/latest) and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk... --- Plugin based on the [IntelliJ Platform Plugin Template][template]. [template]: https://github.com/JetBrains/intellij-platform-plugin-template