📖
SQL Log Parameter Binder (MyBatis & JPA Log Parser) Guide
Combine placeholder question marks (?) or binding variables in SQL logs with their actual runtime values. Useful for debugging MyBatis, JPA, Hibernate, or Spring Framework logs instantly.
🔒Technical Specifications & Local Processing Architecture
Extracts values from parameter list lines using regular expressions, detects data types (e.g., String, Long, Integer, Boolean) based on syntax or type indicators (like `(String)`), and replaces target `?` placeholders safely.
✨ Core Capabilities
- •Auto-detect mode: parse standard MyBatis "Preparing/Parameters" or Hibernate "binding parameter" log dumps.
- •Split mode: Paste the raw SQL query with placeholders and the parameter values separately.
- •Proper type escaping: Automatically adds quotes to strings/dates while leaving numeric and null values unquoted.
- •SQL Beautification: Option to run the resulting bound SQL query through our built-in SQL Formatter.
🚀 Step-by-Step Guide
- 1Paste your server log dump containing the query and parameters in the SQL Log Input panel.
- 2For manual splitting, switch to "Split Mode" and paste the query into the SQL panel and parameter values in the Parameter panel.
- 3Click "Format Bound SQL" if you want the output query formatted and pretty-printed.
- 4Review the complete, executable query in the Output panel and click Copy.