ToolAssay

Turn SQL CREATE TABLE statements into a Mermaid erDiagram with columns, PK/FK/UK

Turn SQL CREATE TABLE statements into a Mermaid erDiagram with columns, PK/FK/UK markers and relationship cardinalities derived from nullability and uniqueness. Parses DDL with node-sql-parser 5.4.0 (PostgreSQL, MySQL, MariaDB, SQLite, BigQuery, Snowflake, T-SQL, Redshift grammars): CREATE TABLE with inline and table-level PRIMARY KEY, UNIQUE, REFERENCES and FOREIGN KEY, ALTER TABLE ... ADD [CONSTRAINT] FOREIGN KEY and CREATE UNIQUE INDEX.

Answeringour last check, 2026-11-26
7 of 7checks answered this week
891 msmedian answer time
$0.003listed price per call
$0.003price it asked us

Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.

Endpoint

POST https://code.halowerk.com/v1/ddl-to-erd

CategoryCode and developer
Provider hostcode.halowerk.com
Networkseip155:8453
Payment schemesexact
Self-reported calls, 30 days1 from 1 payers (the provider's figure, not ours)

Our checks, last 30 days

DayResultHTTPAskedTime
2026-11-26 valid payment request 402$0.003 885 ms
2026-11-25 valid payment request 402$0.003 904 ms
2026-11-24 valid payment request 402$0.003 901 ms
2026-11-23 valid payment request 402$0.003 895 ms
2026-11-22 valid payment request 402$0.003 881 ms
2026-11-21 valid payment request 402$0.003 881 ms
2026-11-20 valid payment request 402$0.003 891 ms

Example input (from the provider)

{
  "body": {
    "ddl": "CREATE TABLE customer (id SERIAL PRIMARY KEY, email VARCHAR(255) NOT NULL UNIQUE);\nCREATE TABLE orders (id BIGINT PRIMARY KEY, customer_id INT NOT NULL REFERENCES customer(id), total NUMERIC(10,2));",
    "dialect": "postgres"
  },
  "bodyType": "json",
  "method": "POST",
  "type": "http"
}

Promised output schema (from the provider)

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "body": {
          "additionalProperties": false,
          "properties": {
            "ddl": {
              "maxLength": 500000,
              "minLength": 10,
              "type": "string"
            },
            "dialect": {
              "default": "postgres",
              "enum": [
                "postgres",
                "mysql",
                "mariadb",
                "sqlite",
                "bigquery",
                "snowflake",
                "transactsql",
                "redshift"
              ],
              "type": "string"
            },
            "include_columns": {
              "default": true,
              "type": "boolean"
            }
          },
          "required": [
            "ddl"
          ],
          "type": "object"
        },
        "bodyType": {
          "enum": [
            "json",
            "form-data",
            "text"
          ],
          "type": "string"
        },
        "method": {
          "enum": [
            "POST",
            "PUT",
            "PATCH"
          ],
          "type": "string"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method",
        "bodyType",
        "body"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}

This page as JSON