Git Product home page Git Product logo

mybatislogsql's Introduction

MybatisLogSql

IDEA Plugin MyBatis Log Sql. from Clipboard mybatis log,By this Plugin Process create result sql will put to Clipboard.

English

Restore the mybatis generate sql to original whole sql.

It will generate sql statements with replace ? to the really param value.

Through the "Tools -> MyBatis Log Plugin" menu you can tail the sql log.

You can selected the "Filter" button on the left to filter the contents don't wanna display.

You can selected the "Format Sql" button on the left to format the generate sql statements.

You can select the console sql log and right click "Restore Sql from Selection" menu to restore sql.

Prerequisite: sql log must contain "Preparing:" and "Parameters:"

中文

把 mybatis 输出的sql日志还原成完整的sql语句

将日志输出的sql语句中的问号 ? 替换成真正的参数值

通过 "右键鼠标,菜单->MybatisLogSql" 菜单

把Mybatis log复制到剪贴板,然后鼠标右击菜单MybatisLogSql,这样sql语句结果就复制到剪贴板

注意:

剪贴板sql日志须包含"==> Preparing:"和"==> Parameters:"才能正常解析

Example: Clipboard mybatis log

==> Preparing: SELECT * from t_test where id = ? 12-28 17:22:05.102 [qtp1635985705-26] DEBUG org.apache.ibatis.logging.jdbc.BaseJdbcLogger.debug(BaseJdbcLogger.java:159) - ==> Parameters: 1(Long)
Github | Issues

mybatislogsql's People

Contributors

lyg123 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.