NOTE: This package is not full. It cannot generate table relation, can only generate table definition. DB2mermaid is a tool to generate mermaid diagrams from a database schema.
- Python3.10
- sqlalchemy
- mysqlclient
- your MySQL database
Create a .env
file with a copy of .env.example
and replace the constant values with appropriate ones.
% brew install mysql pkg-config
% python3 -m venv .venv
% source .venv/bin/activate
% python3 -m pip install -r requirements.txt
er.md
will be generated.
% python3 main.py