render_erd
Generate a Mermaid ERD from your database schema and write it directly to disk as .mmd, .md, and .html files for embedding in documentation.
Instructions
Generate a Mermaid ERD from a schema and WRITE it to disk so it can be embedded directly in a document with no copy-paste. Writes out_path (.mmd), a sibling .md with the fenced block, and a self-contained .html preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| out_path | Yes | Where to write the .mmd file, e.g. docs/erd.mmd | |
| source_path | No | ||
| source_text | No | ||
| source_type | No |