planter
🥺 Reference from https://github.com/achiku/planter
planter --help
usage: planter [<flags>] <conn>
Flags:
--help Show context-sensitive help (also try --help-long
and --help-man).
-d, --driver="mysql" driver mysql/postgres, Default mysql
-s, --schema="public" PostgreSQL schema name
-o, --output=OUTPUT output file path
-t, --table=TABLE ... target tables
-x, --exclude=EXCLUDE ... target tables
-T, --title=TITLE Diagram title
--svg gen svg
✌️ add MySQL generation for corresponding PlantUML (MySQL is the default driver)
planter --driver mysql root:123456@tcp(127.0.0.1:3306)/test -o test.uml
# use PostgreSQL
planter --driver postgres ...
✌️ add foreign key analysis (if your database doesn't have foreign keys).
✌️ add SVG generation
go install github.com/maocatooo/planter@latest
planter root:123456@tcp(127.0.0.1:3306)/test -o test.uml
planter root:123456@tcp(127.0.0.1:3306)/test -o test.svg --svg