Weftmap
SQL

SQL schema diagram generator

Paste SQL DDL and get an entity-relationship diagram. No connection string, no client, no read access to anything — just the CREATE TABLE statements.

Open the editor

Example

example.sql
CREATE TABLE authors (
  id INTEGER PRIMARY KEY,
  name TEXT NOT NULL
);

CREATE TABLE books (
  id INTEGER PRIMARY KEY,
  title TEXT NOT NULL,
  author_id INTEGER NOT NULL REFERENCES authors(id)
);

CREATE TABLE reviews (
  id INTEGER PRIMARY KEY,
  book_id INTEGER NOT NULL REFERENCES books(id),
  rating INTEGER NOT NULL
);

What the graph shows

This is the one language where Weftmap does not draw a call graph. Tables become nodes carrying their columns, primary and foreign keys are marked, and each foreign key becomes an arrow to the table it references, labelled with its cardinality.

Now try it with your own code

Paste a file, pick the language, hit Analyze. Nothing is stored.

Open the editor