Documentation
README
sql2er
Use the bundled CLI from the repo root:
AGENT=skills/sql2er/scripts/sql2er-agent.mjs
State lives in one JSON file passed with --state <path>; reuse the same state path for every command in a diagram session.
Core workflow
- Generate the diagram:
node $AGENT generate --input schema.sql --state er.json
Use --hide-attrs only when the user wants an overview/skeleton, the schema is dense, or attributes are not important. Attribute visibility is fixed at generate; export never adds or removes attributes. If fields, PKs, or column-level semantics matter, generate with attributes.
Use --comment when table/column/ref comments carry readable business labels. Set labels before tuning layout because regenerating resets positions.
This is the opening of the README. Read the full README on GitHub.