No server to start,
see the SQL first

IntelliJ IDEA plugin: see the exact SQL while you write it — Wrapper chains, XML/annotation/HQL dynamic SQL (incl. MPJ joins) previewed live. Once it runs, real parameters and durations are captured automatically with slow-query highlighting, EXPLAIN plans and one-click jumps back to the source line; SQL also converts back into Java code. No server to start, no logs to dig through, no parameters to hand-assemble.

  • Updates without restarting IDEA
  • Works offline on intranets
  • Reports no usage data · your code never leaves the machine
v2026.10.31-beta.2Latest version
2024.3+IDEA support
Apache-2.0License
UserService.javaJava
1LambdaQueryWrapper<DeviceInfoEntity> wrapper = new LambdaQueryWrapper<>()
2 .eq(DeviceInfoEntity::getId, 1001L)
3 .isNotNull(DeviceInfoEntity::getStationId);
Alt + Shift + Q
Live preview · generated SQLSQL
1SELECT id, station_id, share_scheme_id
2FROM device_info_entity
3WHERE id = 1001
4AND station_id IS NOT NULL
Core Capabilities

Debug SQL far faster

Simpler tooling, clearer logic. Every detail of the workflow is tuned so you get more done in less time.

Wrapper → SQL Live PreviewWrapper → SQL Live Preview
Wrapper Preview

Wrapper → SQL Live Preview

Static parsing for every wrapper type — LambdaQueryWrapper, MPJLambdaWrapper and more. No project launch, straight to the final SQL.

Static chain parsing
Preview the complete SQL without running the project
Toggle dynamic conditions
if / choose / where tags rendered on demand
14 pagination dialects
Pagination syntax for MySQL / PG / Oracle and the rest
One-Click Console Log RestoreOne-Click Console Log Restore
Log Restore

One-Click Console Log Restore

Enhanced capture is the default channel — real parameters and exact durations with no SQL logging setup, and console logs captured and restored automatically.

Enhanced capture by default
Captures out of the box with no per-run confirmation — real parameters, exact durations and affected rows
Per-thread log buckets
Preparing / Parameters recognised automatically; interleaved threads bucketed so parameters never mis-attach
Target database badges
Entries tagged [MySQL], [DM] and so on, across 14 dialects plus HSQL / GBASE
SQL Tracing · From Log to Source LineSQL Tracing · From Log to Source Line
Log Tracing

SQL Tracing · From Log to Source Line

Jump from any executed log entry straight back to the line that issued the SQL; the preview panel lists the full call stack frame by frame — click a frame, land on its source.

Exact landing
Right-click an entry to jump to the executing line; located by the real call stack, never guessed from table names
Frame-by-frame stack
Hover the preview panel for the full call chain, 12–64 frames configurable, infrastructure frames skipped automatically
Works on both channels
Enhanced capture needs zero configuration; the console channel is just as precise with the interceptor installed
SQL → Java Reverse ConversionSQL → Java Reverse Conversion
Reverse Conversion

SQL → Java Reverse Conversion

Select SQL and generate compilable MyBatis-Plus code in one click, in four output forms.

Four output forms
QueryWrapper / Lambda / Wrappers / MPJ
Full CRUD coverage
SELECT / INSERT / UPDATE / DELETE
Multi-table JOIN
Join queries generate an MPJLambdaWrapper automatically
One-Click CRUD SQL GenerationOne-Click CRUD SQL Generation
Code Generation

One-Click CRUD SQL Generation

Right-click an entity class or a database table for SELECT / INSERT / UPDATE / DELETE candidates; pick one and it opens in the preview, ready to edit or copy.

Three entry points
Entity class file, project view node, Database table node (Ultimate)
Filterable candidate popup
Type to filter, Enter or double-click to pick, ESC to close
Aligned with MP runtime
@Version goes into WHERE, auto-increment keys start unchecked, logic delete gets its own DELETE variant
XML / Annotation / MPJ CoverageXML / Annotation / MPJ Coverage
Multi-framework

XML / Annotation / MPJ Coverage

Every dynamic tag in mapper XML rendered with MyBatis semantics, with annotation SQL supported the same way.

XML dynamic tags
if / choose / foreach / bind and more
Annotation SQL
@Select / @Update / @Delete / @Insert
OGNL expressions
Toggle dynamic conditions in the panel and preview the result live
JPA / Hibernate SQL PreviewJPA / Hibernate SQL Preview
Cross-ecosystem

JPA / Hibernate SQL Preview

Repository derived methods, JPQL / HQL and Criteria chains parsed into SQL statically — no Spring container, no database connection.

Derived method parsing
All findByXxx naming rules; one click on the gutter icon
@Query fully supported
JPQL / native SQL / @Modifying DML previewed directly
Criteria chains and .hbm.xml
Static parsing, independent of container and database
MCP Server: SQL Tools for AI AgentsMCP Server: SQL Tools for AI Agents
AI Agent Integration

MCP Server: SQL Tools for AI Agents

Claude Code / Cursor / AI Assistant / Codex connect straight to the plugin through IDEA's built-in MCP Server — keep coding in the IDE while the agent works alongside.

Deterministic evidence
The agent gets the real executable SQL the renderer produced, not a confidence score
Eleven read-only tools
Render & restore, schema context, EXPLAIN, write-risk check, rollback plan, performance advice, history search (IDEA 2025.2+)
Controllable and auditable
Per-tool gating in settings takes effect instantly; SELECT whitelist plus an audit trail on every call
Live Preview
SQL Preview

Powerful SQL preview
across dialects and scenarios

Pagination rendered for 14 database dialects, parameters replaced with actual values, LIKE gets its percent signs automatically, and dynamic conditions toggle live in the panel.

Multi-dialect support
Pagination syntax for MySQL / PostgreSQL / Oracle / SQLServer and 7 more
Automatic parameter replacement
? placeholders replaced with actual values, quoted by field type
See preview capabilities
Wrapper → SQL 预览演示Wrapper → SQL 预览演示
Open Source
Open Source · Free Forever

Completely free
under Apache-2.0

Every SQL Visualizer feature is free forever. No sign-up, no login — install and go.

  • All features completely free
  • Open source, code auditable
  • Continuously updated, community-driven
  • No registration, works out of the box
Click · visit the source repository
TestimonialsTestimonials

How developers actually use it

Three notes from real use — each one tied to a concrete scenario.

Found a pagination bug without starting the project

Half the projects I inherit are MP and half are JdbcTemplate string SQL. Both styles show an icon at the start of the line now — one click gives me the SQL, and even StringBuilder-assembled queries restore.

夜
夜航船
Java Developer

Changing a query no longer needs a colleague to run the app

Our legacy Hibernate project maps entities in .hbm.xml, and Criteria chains never showed what finally ran. Now HQL, Criteria and hbm named queries all restore to SQL directly.

不
不写注释的人
Backend Developer

Picked out two queries missing their index during a load test

The SQL log window captures automatically when the project opens, parameters come pre-filled, slow queries flag red, and you can click back to the source line. No IDE restart after install.

半
半糖不加冰
Full-stack Developer
Free & Open Source

Completely Free

One tier only — there is no paid version. Every feature free forever, no sign-up, no login.

  • $0 forever
  • Apache-2.0 open source
  • Reports no usage data · code stays local
  • 14 database dialects

SQL preview

See the final SQL while writing code, without starting the project

  • Wrapper → SQL live preview
  • XML / annotation dynamic SQL preview
  • JPA / Hibernate (HQL · Criteria · hbm)
  • MPJ join reverse parsing
  • Other ORM chains (xbatis / Easy-Query etc.)
  • Dynamic conditions toggle and re-render

Runtime capture

Once the app runs, real parameters, durations and source lines arrive automatically

  • Enhanced capture: real parameters, exact durations
  • Console log restore (fallback channel)
  • Log SQL jumps back to source
  • Frame-by-frame call stack jumps
  • Slow-query flagging and same-shape clusters
  • Batch operation parameter panel

Generation & analysis

Generation, execution and checks for after-the-fact work

  • SQL → Java reverse conversion (four forms)
  • CRUD SQL generation
  • Real EXPLAIN plans
  • SQL code completion
  • No-WHERE warnings and logic-delete injection
  • Eleven MCP Server tools (IDEA 2025.2+)
Get Started

Ready to leave tedious
SQL debugging behind?

Join 1000+ developers getting a better SQL debugging experience in IntelliJ IDEA. Every feature is free forever.

Free forever·Works out of the box·No sign-up