🏷️ Tech Topics:#SQL2ERD#MermaidJS#DatabaseDiagram#DDL2Mermaid#EntityRelationship#MySQL#PostgreSQL#Oracle#SQLite#SVG_Export#ZeroUpload
📖

SQL DDL to Mermaid ERD & Database Diagram Guide

Transform CREATE TABLE SQL statements into interactive entity relationship diagrams (ERD) powered by Mermaid.js. Visualize table structures, primary keys, and foreign key relationships with zero server upload, and export high-resolution SVG, PNG, or Markdown code.

🔒Technical Specifications & Local Processing Architecture

DDL statements are parsed in client-side JavaScript using regex pattern matching that recognizes composite keys, constraint clauses, table quotes, and comments. Diagram rendering is performed locally by mermaid.js directly into browser SVG elements without calling any external rendering APIs.

✨ Core Capabilities

  • •Universal SQL compatibility: supports CREATE TABLE DDL from MySQL, PostgreSQL, Oracle, SQLite, and SQL Server.
  • •Automated relationship mapping: detects CONSTRAINT FOREIGN KEY and inline REFERENCES to draw one-to-many ERD lines.
  • •High-resolution export: download crisp vector SVG or 2x scaled PNG images ready for architectural presentations and documentation.
  • •1-click Markdown copy: export Mermaid syntax code directly for embedding into GitHub READMEs, PR reviews, Notion, and Obsidian.
  • •100% in-browser processing: your confidential database schemas and column definitions never leave local memory.

🚀 Step-by-Step Guide

  1. 1Paste your CREATE TABLE DDL statements into the left SQL editor, or click "Load Sample" to try the demo schema.
  2. 2View the rendered Mermaid ERD diagram in real-time on the right panel.
  3. 3Use the zoom controls (+ / -) to inspect complex schemas, or switch to the "Code" tab to view raw Mermaid markdown.
  4. 4Click "SVG 저장" or "PNG 저장" to download the diagram, or copy the Mermaid code to your clipboard.

💡Technical Deep-Dive & Detailed FAQ Guide

3 questions & detailed answers

Q1.Which SQL dialects are supported?

Standard CREATE TABLE DDL from MySQL, PostgreSQL, Oracle, SQLite, MariaDB, and MS-SQL Server is fully supported, including backticks, double quotes, and brackets.

Q2.How do I embed the generated diagram into GitHub Markdown or Notion?

Switch to the "Code" tab, click "Copy Code", and paste it inside a ```mermaid ... ``` code fence in GitHub READMEs, pull requests, Notion code blocks, or Obsidian notes.

Q3.Is my database schema uploaded to a server?

No. Parsing, relationship graph construction, and diagram rendering happen 100% inside your local browser memory. Zero bytes transmitted.