/mybatis-sql

Primary LanguageJavaApache License 2.0Apache-2.0

Mybatis SQL

Build Version Downloads

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(推荐):

  • 选择包含 PreparingParameters 的日志(多余的行会被过滤)。
  • 鼠标右键,选择 Copy as SQL 菜单(快捷键:shift + alt + H)复制 SQL。

方法2

  • 选择包含 PreparingParameters 的日志(多余的行会被过滤)。
  • 鼠标右键,选择 Show SQL 菜单(快捷键:ctrl + shift + H)展示 SQL。
  • 点击 COPY TO CLIPBOARD 按钮复制 SQL。

##Screenshots

GitHub

Installation

  • Using IDE built-in plugin system:

    Preferences > Plugins > Marketplace > Search for "Mybatis SQL" > Install Plugin

  • Manually:

    Download the latest release and install it manually using Preferences > Plugins > ⚙️ > Install plugin from disk...


Plugin based on the IntelliJ Platform Plugin Template.